Python Forum
Scipy kolmogorov smirnov test for evaluating the fitting of a non-normal distribution
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scipy kolmogorov smirnov test for evaluating the fitting of a non-normal distribution
Hi thank you in advance for reading this

Can Scipy kolmogorov smirnov (KS) test be used for evaluating the fitting of a non-normal distribution like the Exponnorm, to a continuous variable?

My observed data is a series of 2083 observed daily flow records.

I´m using the following code to test the fitting:

test=kstest(x,'exponnorm', {15.423611244139217, 5.930740266809032, 1.799877032067283})
,and these are the results:
KstestResult(statistic=0.8600795890927582, pvalue=0.0)

Considering the critical value for the KS test = 0.0289 the null hypothesis would be rejected.
Nevertheless when I look at the probability plot, the fitting seems ok. I´m doing something wrong? Thank you so much



Possibly Related Threads…
Thread Author Replies Views Last Post
  Returning values from Gaussian fitting Laplace12 0 187 Aug-05-2021, 08:09 AM
Last Post: Laplace12
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 701 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Fitting Gaussian curve to data file Laplace12 0 504 Jun-09-2021, 10:45 AM
Last Post: Laplace12
  Using Dictionary to Test Evenness of Distribution Generated by Randint Function new_coder_231013 6 951 Feb-23-2021, 01:29 PM
Last Post: new_coder_231013
  random fiber distribution for composite analysis pvdivakarraju 1 416 Jan-21-2021, 07:42 PM
Last Post: Larz60+
  search of a curve fitting function bluffy5 2 997 Dec-13-2020, 09:53 AM
Last Post: ndc85430
  Need learning resources for Python distribution gretchenfrage 2 717 Nov-12-2020, 06:42 PM
Last Post: gretchenfrage
  Coin Toss - Distribution lasek723 6 1,034 Oct-04-2020, 01:36 PM
Last Post: deanhystad
  ModuleNotFoundError: No module named 'scipy.optimize'; 'scipy' is not a package AaronKR 1 3,902 Jul-09-2020, 02:36 AM
Last Post: bowlofred
  How to write test cases for a init function by Unit test in python? binhduonggttn 2 1,466 Feb-24-2020, 12:06 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020