This m-file returns the covariance of a multinomial distribution with parameters N and P.
The Coariance is:
Covariance = -N × Pi × Pj; i,j = 1,2, ... ,k.
Covariance =
[np1(1-p1) -np1p2 ... -np1pk
-np1p2 np2(1-p2) ... -np2pk
. . . . .
. . . . .
-np1pk -np2pk ... npk(1-pk)].
It need to inputs n-number of trials, and p-vector of associated probabilities.
It Outputs the C-multinomial covariance matrix.
引用格式
Antonio Trujillo-Ortiz (2025). multcov (https://www.mathworks.com/matlabcentral/fileexchange/7375-multcov), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R11
兼容任何版本
平台兼容性
Windows macOS Linux类别
- AI and Statistics > Statistics and Machine Learning Toolbox > Probability Distributions > Discrete Distributions > Multinomial Distribution >
在 Help Center 和 MATLAB Answers 中查找有关 Multinomial Distribution 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 | Text was improved. |