Triangular distribution created using makedist function is the input argument for the random function to create data to use to create a histogram. The minimum and mode values of the histogram are equal. Is this result to be expected??
이전 댓글 표시
I created a triangular distribution "pd" using the makedist function. The parameters of the triangular pd function are as follows: minimum value = 6, most likely value = 9, maximum value = 20, and n = 200. Then I use the random function with the triangular pd the input argument; i.e., random(myTriangularDist,N,1) to create the data to display in a histogram. Then I use the histogram function to create a histogram of the data. The minimum and the mode of the distribution displayed in the histogram is consistently exactly the same (to 4 decimal places). The result is the same if I change n to 5000. Is this result normal? Also, the median does not approach my most likely value of 9 after I increase n from 200 to 5000. The median remains approximately 11. Is it normal for the median not to approach 9 initially specified as the "most likely value" as n is increased? I would appreciate any comments.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Triangular Distribution에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!