Is there a function to determine the non-exceedance probability of each value in the table?
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Table = readtable("practice3.xlsx");
x = Table.values
0 Commenti
Risposta accettata
the cyclist
il 12 Feb 2023
Modificato: the cyclist
il 12 Feb 2023
Using info from your near-duplicate of this question:
Table = readtable("https://www.mathworks.com/matlabcentral/answers/uploaded_files/1293540/practice3.xlsx");
x = Table.values
nonExceedanceProbability = sum(x'<=x,2)/numel(x)
This assumes that you are trying only to do the purely empirical non-exceedance for this particular set of values. If, instead, this is a sample and you are trying to estimate something about a population, you'll need to provide the info that @Torsten mentions.
Più risposte (1)
Torsten
il 12 Feb 2023
Modificato: Torsten
il 12 Feb 2023
You will first have to tell us the type of distribution the values are supposed to follow (e.g. log-normal distribution).
After this, you will have to determine the parameters of this distribution from your measurement data.
After this, you will be able to plot a non-exceedance probability curve.
e.g.
Table = readtable("practice3.xlsx");
x = Table.values
params = mle(x,'Distribution','LogNormal')
hold on
y = linspace(0,max(x));
plot(y,logncdf(y,params(1),params(2)))
legend('Non-Exceedance Probability')
hold off
grid on
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!