Statistics Toolbox | ![]() ![]() |
Mean and Variance as a Function of Parameters
The mean and variance of a probability distribution are generally simple functions of the parameters of the distribution. The Statistics Toolbox functions ending in "stat"
all produce the mean and variance of the desired distribution for the given parameters.
The example below shows a contour plot of the mean of the Weibull distribution as a function of the parameters.
x = (0.5:0.1:5); y = (1:0.04:2); [X,Y] = meshgrid(x,y); Z = weibstat(X,Y); [c,h] = contour(x,y,Z,[0.4 0.6 1.0 1.8]); clabel(c);
![]() | Random Number Generator | Overview of the Distributions | ![]() |