Error distribution using poisson distribution
Show older comments
I want to plot error distribution using Poisson distribution. X and Y are the random binary strings, but not identical. Break string into blocks and compute the parity for those blocks then compare each X and Y blocks parity. If the parity doesn't match (odd parity) which mean the block has an error. I can able to see the error distribution but Is there any way I could use the Poisson distribution in this scenario.
clear all; clc;
close all;
for loop = 1:1
X=randi([0 1], 1000,1);
Y=bsc(X,0.03);
block = 100;
ct = 0; % Count for Histogram / Stem
for i = 1:block :length(X)
ct = ct + 1;
ind =[i:i+block-1];
R = (sum(X(ind))== sum(Y(ind)));
E = ~R;
data(loop,ct) = E;
end
figure(loop)
stem(data(loop,:))
str = sprintf('For Loop %d',loop);
title(str);
end

Answers (0)
Categories
Find more on Poisson Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!