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
#1
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

İmage


İmage
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Weight Distribution 11drk9 11 510 Mar-13-2024, 06:08 AM
Last Post: Pedroski55
Information Best distribution method inovermyhead100 0 528 Jul-19-2023, 07:39 AM
Last Post: inovermyhead100
  Fitting data to a curve daaegp 1 565 Jun-30-2023, 08:06 PM
Last Post: Gribouillis
  WARNING: Ignoring invalid distribution kucingkembar 1 24,298 Sep-02-2022, 06:49 AM
Last Post: snippsat
  How do I use a whl puython distribution? barryjo 6 1,693 Aug-15-2022, 03:00 AM
Last Post: barryjo
  Pyinstaller distribution file seems too large hammer 4 2,629 Mar-31-2022, 02:33 PM
Last Post: snippsat
  Evaluating arithmetic expression with recursion. muddybucket 3 2,759 Dec-17-2021, 08:31 AM
Last Post: deanhystad
  Returning values from Gaussian fitting Laplace12 0 1,548 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 3,063 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Fitting Gaussian curve to data file Laplace12 0 2,669 Jun-09-2021, 10:45 AM
Last Post: Laplace12

Forum Jump:

User Panel Messages

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