KStest for unimodal and bimodal models
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Thomas PLOCOSTE
il 4 Ago 2019
Risposto: Jyotsna Talluri
il 7 Ago 2019
Hi, i would like to perform a KStest of an unimodal and bimodal models with observed data X.
Please find an example of X in attachement.
The unimodal model is a lognormal distribution defined as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/233009/image.png)
where
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232550/image.png)
The bimodal model is a lognormal & lognormal PDF defined as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/233010/image.png)
where
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232552/image.png)
How can i use the KStest for evaluate the goodness of fit of both models with observed data?
Is there a quick way to evaluate this with KS statistic?
T PLOCOSTE
0 Commenti
Risposta accettata
Jyotsna Talluri
il 7 Ago 2019
Hi,
Kstest(x) returns a test decision for the null hypothesis that the data in vector x comes from a specified standard normal distribution or it does not come from such a distribution
If the result is one the test rejects the null hypothesis at default significance level(5%)
From your data
Data=ObservedData(:,1);
x=(Data-3.2)/0.44; %specified mean and standard deviation
r=kstest(x) ;
Similarly ,for a bimodal distribution, check the kstest for each distribution seperately
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Hypothesis Tests in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!