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
  distribution fit Glaucio 1 205 Apr-07-2024, 12:30 AM
Last Post: Larz60+
  Weight Distribution 11drk9 11 629 Mar-13-2024, 06:08 AM
Last Post: Pedroski55
Information Best distribution method inovermyhead100 0 548 Jul-19-2023, 07:39 AM
Last Post: inovermyhead100
  Fitting data to a curve daaegp 1 597 Jun-30-2023, 08:06 PM
Last Post: Gribouillis
  How do I use a whl puython distribution? barryjo 6 1,755 Aug-15-2022, 03:00 AM
Last Post: barryjo
  Evaluating arithmetic expression with recursion. muddybucket 3 2,821 Dec-17-2021, 08:31 AM
Last Post: deanhystad
  Returning values from Gaussian fitting Laplace12 0 1,567 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,108 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Fitting Gaussian curve to data file Laplace12 0 2,722 Jun-09-2021, 10:45 AM
Last Post: Laplace12
  Using Dictionary to Test Evenness of Distribution Generated by Randint Function new_coder_231013 6 3,246 Feb-23-2021, 01:29 PM
Last Post: new_coder_231013

Forum Jump:

User Panel Messages

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