필터 지우기
필터 지우기

Trying to produce a proper pdf, cdf and histogram from data

조회 수: 1 (최근 30일)
Nathaniel Porter
Nathaniel Porter 2022년 2월 24일
댓글: Nathaniel Porter 2022년 2월 24일
load InsulinReadings.mat
xX2 = InsulinReadings;
xX2(xX2==0)=missing;
A2 = mean(xX2,'all',"omitnan")
A2 = 296.9102
B2 = median(xX2,'all',"omitnan")
B2 = 86.4899
C2 = max(xX2,[],'all',"omitnan")
C2 = 1.0226e+04
D2 = min(xX2,[],'all', "omitnan")
D2 = 3.6900e-07
histogram(xX2)
[D PD] = allfitdist(xX2,'PDF');
Unrecognized function or variable 'allfitdist'.
xlabel('Insulin');
%Now get the CDF
[D PD] = allfitdist(xX2,'CDF');
xlabel('Insulin')
Using the data presented I am trying to produce better diagrams as seen in my code

답변 (1개)

Benjamin Thompson
Benjamin Thompson 2022년 2월 24일
You could use the Curve Fitting Tool if you have that toolbox, to find the best set of parameters for some standard type of distribution. If you are asking about the allfitdist function, there is another post on the Community site about allfitdist being replaced by fitmethis.

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by