First shape parameter, specified as a positive scalar value or an array of positive
scalar values. If both a and b are arrays,
they must be the same size. If either a or b
is a scalar, then betastat expands the scalar argument into a
constant array of the same size as the other argument.
Data Types: single | double
Second shape parameter, specified as a positive scalar value or an array of positive
scalar values. If both a and b are arrays,
they must be the same size. If either a or b
is a scalar, then betastat expands the scalar argument into a
constant array of the same size as the other argument.
Mean for the beta distribution, returned as a numeric scalar or an array of numeric
scalars. m is the same size as a and
b. Each element in m is the mean of the beta
distribution specified by the corresponding elements in a and
b. If a(i) or b(i) is
less than or equal to zero, then m(i) is
NaN.
The mean of the beta distribution with parameters a and
b is a / (a +
b).
Variance for the beta distribution, returned as a numeric scalar or an array of
numeric scalars. v is the same size as a and
b. Each element in v is the variance of the
beta distribution specified by the corresponding elements in a and
b. If a(i) or b(i) is
less than or equal to zero, then v(i) is
NaN.
The variance of the beta distribution with parameters a and
b is
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.