discrete joint probability distribution
조회 수: 11 (최근 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?
댓글 수: 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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Histograms에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!