discrete joint probability distribution
13 ビュー (過去 30 日間)
古いコメントを表示
Hi
I want to build the discrete joint probability distribution for two set of data. data are two groups of random numbers (wind speed) and (wind direction degree). the final results must be like table below.
Pij in the Table are numbers (probability values).
Which function should I use to do this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156837/image.png)
0 件のコメント
採用された回答
Peng Liu
2016 年 10 月 2 日
You need to compute the histogram count for every pair (theta_i, v_j), and then normalize it by the sample size. Thus, histcounts2 will help.
2 件のコメント
Peng Liu
2016 年 10 月 5 日
You can specify any specific edges you want using the syntax: [N,Xedges,Yedges] = histcounts2(X,Y,Xedges,Yedges)
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!