Probability Project 1 Final
Probability Project 1 Final
Probability
Project (1): Special Functions
Sec. B.N.
Solution:
Code in Matlab:
Solution:
Code in Matlab:
Solution:
Code in Matlab:
With a 10% chance of containing the pollutant in each sample, the most likely outcome is
that 4-6 samples out of 50 will contain the pollutant, with a very low probability of all 50
samples containing the pollutant. On the other hand, with a 90% chance of containing the
pollutant, the most likely outcome is that 45-50 samples will contain the pollutant, with a
very low probability of none of the samples containing the pollutant.
In general, as the number of samples increases, the distribution becomes more spread out
and symmetrical, with a higher likelihood of values closer to the mean. Therefore, it's
important to consider the sample size when analyzing the binomial distribution.
Solution:
Code in Matlab:
% Calculate the PDF (probability density function) and CDF (cumulative distribution
function)
PDF = f * ones(size(X));
CDF = (X - a) / (b - a);