Probability distribution (between zero and 1)
조회 수: 6 (최근 30일)
I have a 9216000*1 column of acceleration data, and I want to plot the acceleration vs probability (which is between 0 and 1) graph, similar to these (ignore the red area):
I tried several commands but none of them gave me what I wanted.
[f,xi] = ksdensity(x1);
[p,x] = hist(x1,length(N));
sz = 25;
c = linspace(1,10,length(x));
I want something similar to figure 2 or 4, where I can compare my data distribution with normal distribution, but not as histograms. And I want the y axis to be probability.
Torsten 2022년 5월 7일
편집: Torsten 님. 2022년 5월 7일
Figure 2 with the ksdensity command is exactly what you need.
The y-axis never represents probability in the plot of probability density functions - probability is the area under the curves. The "normal distribution curve" you show above (with the red area) is wrong since the area under the curve does not equal 1.