discrete joint probability distribution
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
shahrouz Kabiri
am 2 Okt. 2016
Kommentiert: Peng Liu
am 5 Okt. 2016
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?
0 Kommentare
Akzeptierte Antwort
Peng Liu
am 2 Okt. 2016
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 Kommentare
Peng Liu
am 5 Okt. 2016
You can specify any specific edges you want using the syntax: [N,Xedges,Yedges] = histcounts2(X,Y,Xedges,Yedges)
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!