Issues with using parameters for a K-S test and understand the result





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I'm trying to run a K-S test on some data. Now I have the code working, but I'm not sure I understaned whats going on, and I also get an error when trying to set the loc. Essentially I get both the KS and P-test value. But I'm not sure I fully grasp it, enough to use the result.



I'm using the scipy.stats.ks_2samp module found here.



This is the code I am running



from scipy import stats

np.random.seed(12345678) #fix random seed to get the same result
n1 = len(low_ni_sample) # size of first sample
n2 = len(high_ni_sample) # size of second sample

# Scale is standard deviation
scale = 3

rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, scale=scale)
rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, scale=scale)
ksresult = stats.ks_2samp(rvs1, rvs2)
ks_val = ksresult[0]
p_val = ksresult[1]

print('K-S Statistics ' + str(ks_val))
print('P-value ' + str(p_val))


Which gives this:



K-S Statistics 0.04507948306145837
P-value 0.8362207851676332


Now for those examples I've seen, the loc is added in as this:



rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)
rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, loc=0.5, scale=scale)


If I do that however, I get this error:



Traceback (most recent call last):

File "<ipython-input-342-aa890a947919>", line 13, in <module>
rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)

File "/home/kongstad/anaconda3/envs/tensorflow/lib/python3.6/site-packages/scipy/stats/_distn_infrastructure.py", line 937, in rvs
args, loc, scale, size = self._parse_args_rvs(*args, **kwds)

TypeError: _parse_args_rvs() got multiple values for argument 'loc'


Here is a snapshot, showing the content of the two datasets being used.
low_ni_sample, high_ni_sample.
enter image description here



So my questions are:




  1. Why cant I add a loc value and what does it represent?

  2. Changing the scale changes the result significantly, why and what to go by?

  3. How would I plot this out in such a way it makes sense?


After running Silma's suggestion I stumbled upon a new error.



from scipy import stats

np.random.seed(12345678) #fix random seed to get the same result
n1 = len(low_ni_sample) # size of first sample
n2 = len(high_ni_sample) # size of second sample

# Scale is standard deviation
scale = 3

ndist = stats.norm(loc=0., scale=scale)

rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)
rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2)

#rvs1 = stats.norm.rvs(low_ni_sample[:,2], size=n1, scale=scale)
#rvs2 = stats.norm.rvs(high_ni_sample[:,2], size=n2, scale=scale)
ksresult = stats.ks_2samp(rvs1, rvs2)
ks_val = ksresult[0]
p_val = ksresult[1]

print('K-S Statistics ' + str(ks_val))
print('P-value ' + str(p_val))


With this error message



    rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)

TypeError: rvs() got multiple values for argument 'size'









share|improve this question































    1















    I'm trying to run a K-S test on some data. Now I have the code working, but I'm not sure I understaned whats going on, and I also get an error when trying to set the loc. Essentially I get both the KS and P-test value. But I'm not sure I fully grasp it, enough to use the result.



    I'm using the scipy.stats.ks_2samp module found here.



    This is the code I am running



    from scipy import stats

    np.random.seed(12345678) #fix random seed to get the same result
    n1 = len(low_ni_sample) # size of first sample
    n2 = len(high_ni_sample) # size of second sample

    # Scale is standard deviation
    scale = 3

    rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, scale=scale)
    rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, scale=scale)
    ksresult = stats.ks_2samp(rvs1, rvs2)
    ks_val = ksresult[0]
    p_val = ksresult[1]

    print('K-S Statistics ' + str(ks_val))
    print('P-value ' + str(p_val))


    Which gives this:



    K-S Statistics 0.04507948306145837
    P-value 0.8362207851676332


    Now for those examples I've seen, the loc is added in as this:



    rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)
    rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, loc=0.5, scale=scale)


    If I do that however, I get this error:



    Traceback (most recent call last):

    File "<ipython-input-342-aa890a947919>", line 13, in <module>
    rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)

    File "/home/kongstad/anaconda3/envs/tensorflow/lib/python3.6/site-packages/scipy/stats/_distn_infrastructure.py", line 937, in rvs
    args, loc, scale, size = self._parse_args_rvs(*args, **kwds)

    TypeError: _parse_args_rvs() got multiple values for argument 'loc'


    Here is a snapshot, showing the content of the two datasets being used.
    low_ni_sample, high_ni_sample.
    enter image description here



    So my questions are:




    1. Why cant I add a loc value and what does it represent?

    2. Changing the scale changes the result significantly, why and what to go by?

    3. How would I plot this out in such a way it makes sense?


    After running Silma's suggestion I stumbled upon a new error.



    from scipy import stats

    np.random.seed(12345678) #fix random seed to get the same result
    n1 = len(low_ni_sample) # size of first sample
    n2 = len(high_ni_sample) # size of second sample

    # Scale is standard deviation
    scale = 3

    ndist = stats.norm(loc=0., scale=scale)

    rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)
    rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2)

    #rvs1 = stats.norm.rvs(low_ni_sample[:,2], size=n1, scale=scale)
    #rvs2 = stats.norm.rvs(high_ni_sample[:,2], size=n2, scale=scale)
    ksresult = stats.ks_2samp(rvs1, rvs2)
    ks_val = ksresult[0]
    p_val = ksresult[1]

    print('K-S Statistics ' + str(ks_val))
    print('P-value ' + str(p_val))


    With this error message



        rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)

    TypeError: rvs() got multiple values for argument 'size'









    share|improve this question



























      1












      1








      1








      I'm trying to run a K-S test on some data. Now I have the code working, but I'm not sure I understaned whats going on, and I also get an error when trying to set the loc. Essentially I get both the KS and P-test value. But I'm not sure I fully grasp it, enough to use the result.



      I'm using the scipy.stats.ks_2samp module found here.



      This is the code I am running



      from scipy import stats

      np.random.seed(12345678) #fix random seed to get the same result
      n1 = len(low_ni_sample) # size of first sample
      n2 = len(high_ni_sample) # size of second sample

      # Scale is standard deviation
      scale = 3

      rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, scale=scale)
      rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, scale=scale)
      ksresult = stats.ks_2samp(rvs1, rvs2)
      ks_val = ksresult[0]
      p_val = ksresult[1]

      print('K-S Statistics ' + str(ks_val))
      print('P-value ' + str(p_val))


      Which gives this:



      K-S Statistics 0.04507948306145837
      P-value 0.8362207851676332


      Now for those examples I've seen, the loc is added in as this:



      rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)
      rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, loc=0.5, scale=scale)


      If I do that however, I get this error:



      Traceback (most recent call last):

      File "<ipython-input-342-aa890a947919>", line 13, in <module>
      rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)

      File "/home/kongstad/anaconda3/envs/tensorflow/lib/python3.6/site-packages/scipy/stats/_distn_infrastructure.py", line 937, in rvs
      args, loc, scale, size = self._parse_args_rvs(*args, **kwds)

      TypeError: _parse_args_rvs() got multiple values for argument 'loc'


      Here is a snapshot, showing the content of the two datasets being used.
      low_ni_sample, high_ni_sample.
      enter image description here



      So my questions are:




      1. Why cant I add a loc value and what does it represent?

      2. Changing the scale changes the result significantly, why and what to go by?

      3. How would I plot this out in such a way it makes sense?


      After running Silma's suggestion I stumbled upon a new error.



      from scipy import stats

      np.random.seed(12345678) #fix random seed to get the same result
      n1 = len(low_ni_sample) # size of first sample
      n2 = len(high_ni_sample) # size of second sample

      # Scale is standard deviation
      scale = 3

      ndist = stats.norm(loc=0., scale=scale)

      rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)
      rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2)

      #rvs1 = stats.norm.rvs(low_ni_sample[:,2], size=n1, scale=scale)
      #rvs2 = stats.norm.rvs(high_ni_sample[:,2], size=n2, scale=scale)
      ksresult = stats.ks_2samp(rvs1, rvs2)
      ks_val = ksresult[0]
      p_val = ksresult[1]

      print('K-S Statistics ' + str(ks_val))
      print('P-value ' + str(p_val))


      With this error message



          rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)

      TypeError: rvs() got multiple values for argument 'size'









      share|improve this question
















      I'm trying to run a K-S test on some data. Now I have the code working, but I'm not sure I understaned whats going on, and I also get an error when trying to set the loc. Essentially I get both the KS and P-test value. But I'm not sure I fully grasp it, enough to use the result.



      I'm using the scipy.stats.ks_2samp module found here.



      This is the code I am running



      from scipy import stats

      np.random.seed(12345678) #fix random seed to get the same result
      n1 = len(low_ni_sample) # size of first sample
      n2 = len(high_ni_sample) # size of second sample

      # Scale is standard deviation
      scale = 3

      rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, scale=scale)
      rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, scale=scale)
      ksresult = stats.ks_2samp(rvs1, rvs2)
      ks_val = ksresult[0]
      p_val = ksresult[1]

      print('K-S Statistics ' + str(ks_val))
      print('P-value ' + str(p_val))


      Which gives this:



      K-S Statistics 0.04507948306145837
      P-value 0.8362207851676332


      Now for those examples I've seen, the loc is added in as this:



      rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)
      rvs2 = stats.norm.rvs(high_ni_sample[:,0], size=n2, loc=0.5, scale=scale)


      If I do that however, I get this error:



      Traceback (most recent call last):

      File "<ipython-input-342-aa890a947919>", line 13, in <module>
      rvs1 = stats.norm.rvs(low_ni_sample[:,0], size=n1, loc=0., scale=scale)

      File "/home/kongstad/anaconda3/envs/tensorflow/lib/python3.6/site-packages/scipy/stats/_distn_infrastructure.py", line 937, in rvs
      args, loc, scale, size = self._parse_args_rvs(*args, **kwds)

      TypeError: _parse_args_rvs() got multiple values for argument 'loc'


      Here is a snapshot, showing the content of the two datasets being used.
      low_ni_sample, high_ni_sample.
      enter image description here



      So my questions are:




      1. Why cant I add a loc value and what does it represent?

      2. Changing the scale changes the result significantly, why and what to go by?

      3. How would I plot this out in such a way it makes sense?


      After running Silma's suggestion I stumbled upon a new error.



      from scipy import stats

      np.random.seed(12345678) #fix random seed to get the same result
      n1 = len(low_ni_sample) # size of first sample
      n2 = len(high_ni_sample) # size of second sample

      # Scale is standard deviation
      scale = 3

      ndist = stats.norm(loc=0., scale=scale)

      rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)
      rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2)

      #rvs1 = stats.norm.rvs(low_ni_sample[:,2], size=n1, scale=scale)
      #rvs2 = stats.norm.rvs(high_ni_sample[:,2], size=n2, scale=scale)
      ksresult = stats.ks_2samp(rvs1, rvs2)
      ks_val = ksresult[0]
      p_val = ksresult[1]

      print('K-S Statistics ' + str(ks_val))
      print('P-value ' + str(p_val))


      With this error message



          rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1)

      TypeError: rvs() got multiple values for argument 'size'






      python scipy statistics kolmogorov-smirnov






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 26 '18 at 18:01







      Mars

















      asked Nov 26 '18 at 15:35









      MarsMars

      816




      816
























          1 Answer
          1






          active

          oldest

          votes


















          1














          The error comes from the fact that you should first create an instance of the normal distribution before using it:



          ndist = stats.norm(loc=0., scale=scale)


          then do



          rvs1 = ndist.rvs(size=n1)


          to generate n1 samples drawn from a normal distribution centered on 0 and with a standard deviation scale.
          The location is therefore the mean of your distribution.



          Changing the scale changes the variance of your distribution (you get more variability), so this obviously impacts the KS test...



          As for the plot, I'm not sure I see what you mean... if you want to plot the histograms, then do



          import matplotlib.pyplot as plt
          plt.hist(rvs1)
          plt.show()


          Or even better, install seaborn and use their distplot methods, for instance the KDE.



          Overall I would advise you to try to read a little more on distributions and KS tests before you go any further, see for instance the wikipedia page.



          EDIT
          the code shown above is used to generate random samples from a standard distribution (which I assumed was your goal, to compare with your samples).



          If what you want to do is directly compare your two sample data, then all you need is



          ksresult = stats.ks_2samp(low_ni_sample[:,0], high_ni_sample[:,0])


          again, this is assuming that low_ni_sample[:,0]and high_ni_sample[:,0] are 1D-arrays containing many measurements of the quantity of interest, cf. ks_2samp documentation






          share|improve this answer


























          • Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

            – Mars
            Nov 26 '18 at 17:33











          • it is indeed ;)

            – Silmathoron
            Nov 26 '18 at 17:36











          • I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

            – Mars
            Nov 26 '18 at 17:55








          • 1





            You'll need to be more specific... can you add an edit to your question with the new error?

            – Silmathoron
            Nov 26 '18 at 17:56






          • 1





            see edit for additional explanation

            – Silmathoron
            Nov 26 '18 at 18:28












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53484481%2fissues-with-using-parameters-for-a-k-s-test-and-understand-the-result%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The error comes from the fact that you should first create an instance of the normal distribution before using it:



          ndist = stats.norm(loc=0., scale=scale)


          then do



          rvs1 = ndist.rvs(size=n1)


          to generate n1 samples drawn from a normal distribution centered on 0 and with a standard deviation scale.
          The location is therefore the mean of your distribution.



          Changing the scale changes the variance of your distribution (you get more variability), so this obviously impacts the KS test...



          As for the plot, I'm not sure I see what you mean... if you want to plot the histograms, then do



          import matplotlib.pyplot as plt
          plt.hist(rvs1)
          plt.show()


          Or even better, install seaborn and use their distplot methods, for instance the KDE.



          Overall I would advise you to try to read a little more on distributions and KS tests before you go any further, see for instance the wikipedia page.



          EDIT
          the code shown above is used to generate random samples from a standard distribution (which I assumed was your goal, to compare with your samples).



          If what you want to do is directly compare your two sample data, then all you need is



          ksresult = stats.ks_2samp(low_ni_sample[:,0], high_ni_sample[:,0])


          again, this is assuming that low_ni_sample[:,0]and high_ni_sample[:,0] are 1D-arrays containing many measurements of the quantity of interest, cf. ks_2samp documentation






          share|improve this answer


























          • Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

            – Mars
            Nov 26 '18 at 17:33











          • it is indeed ;)

            – Silmathoron
            Nov 26 '18 at 17:36











          • I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

            – Mars
            Nov 26 '18 at 17:55








          • 1





            You'll need to be more specific... can you add an edit to your question with the new error?

            – Silmathoron
            Nov 26 '18 at 17:56






          • 1





            see edit for additional explanation

            – Silmathoron
            Nov 26 '18 at 18:28
















          1














          The error comes from the fact that you should first create an instance of the normal distribution before using it:



          ndist = stats.norm(loc=0., scale=scale)


          then do



          rvs1 = ndist.rvs(size=n1)


          to generate n1 samples drawn from a normal distribution centered on 0 and with a standard deviation scale.
          The location is therefore the mean of your distribution.



          Changing the scale changes the variance of your distribution (you get more variability), so this obviously impacts the KS test...



          As for the plot, I'm not sure I see what you mean... if you want to plot the histograms, then do



          import matplotlib.pyplot as plt
          plt.hist(rvs1)
          plt.show()


          Or even better, install seaborn and use their distplot methods, for instance the KDE.



          Overall I would advise you to try to read a little more on distributions and KS tests before you go any further, see for instance the wikipedia page.



          EDIT
          the code shown above is used to generate random samples from a standard distribution (which I assumed was your goal, to compare with your samples).



          If what you want to do is directly compare your two sample data, then all you need is



          ksresult = stats.ks_2samp(low_ni_sample[:,0], high_ni_sample[:,0])


          again, this is assuming that low_ni_sample[:,0]and high_ni_sample[:,0] are 1D-arrays containing many measurements of the quantity of interest, cf. ks_2samp documentation






          share|improve this answer


























          • Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

            – Mars
            Nov 26 '18 at 17:33











          • it is indeed ;)

            – Silmathoron
            Nov 26 '18 at 17:36











          • I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

            – Mars
            Nov 26 '18 at 17:55








          • 1





            You'll need to be more specific... can you add an edit to your question with the new error?

            – Silmathoron
            Nov 26 '18 at 17:56






          • 1





            see edit for additional explanation

            – Silmathoron
            Nov 26 '18 at 18:28














          1












          1








          1







          The error comes from the fact that you should first create an instance of the normal distribution before using it:



          ndist = stats.norm(loc=0., scale=scale)


          then do



          rvs1 = ndist.rvs(size=n1)


          to generate n1 samples drawn from a normal distribution centered on 0 and with a standard deviation scale.
          The location is therefore the mean of your distribution.



          Changing the scale changes the variance of your distribution (you get more variability), so this obviously impacts the KS test...



          As for the plot, I'm not sure I see what you mean... if you want to plot the histograms, then do



          import matplotlib.pyplot as plt
          plt.hist(rvs1)
          plt.show()


          Or even better, install seaborn and use their distplot methods, for instance the KDE.



          Overall I would advise you to try to read a little more on distributions and KS tests before you go any further, see for instance the wikipedia page.



          EDIT
          the code shown above is used to generate random samples from a standard distribution (which I assumed was your goal, to compare with your samples).



          If what you want to do is directly compare your two sample data, then all you need is



          ksresult = stats.ks_2samp(low_ni_sample[:,0], high_ni_sample[:,0])


          again, this is assuming that low_ni_sample[:,0]and high_ni_sample[:,0] are 1D-arrays containing many measurements of the quantity of interest, cf. ks_2samp documentation






          share|improve this answer















          The error comes from the fact that you should first create an instance of the normal distribution before using it:



          ndist = stats.norm(loc=0., scale=scale)


          then do



          rvs1 = ndist.rvs(size=n1)


          to generate n1 samples drawn from a normal distribution centered on 0 and with a standard deviation scale.
          The location is therefore the mean of your distribution.



          Changing the scale changes the variance of your distribution (you get more variability), so this obviously impacts the KS test...



          As for the plot, I'm not sure I see what you mean... if you want to plot the histograms, then do



          import matplotlib.pyplot as plt
          plt.hist(rvs1)
          plt.show()


          Or even better, install seaborn and use their distplot methods, for instance the KDE.



          Overall I would advise you to try to read a little more on distributions and KS tests before you go any further, see for instance the wikipedia page.



          EDIT
          the code shown above is used to generate random samples from a standard distribution (which I assumed was your goal, to compare with your samples).



          If what you want to do is directly compare your two sample data, then all you need is



          ksresult = stats.ks_2samp(low_ni_sample[:,0], high_ni_sample[:,0])


          again, this is assuming that low_ni_sample[:,0]and high_ni_sample[:,0] are 1D-arrays containing many measurements of the quantity of interest, cf. ks_2samp documentation







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 26 '18 at 18:27

























          answered Nov 26 '18 at 17:26









          SilmathoronSilmathoron

          1,0861921




          1,0861921













          • Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

            – Mars
            Nov 26 '18 at 17:33











          • it is indeed ;)

            – Silmathoron
            Nov 26 '18 at 17:36











          • I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

            – Mars
            Nov 26 '18 at 17:55








          • 1





            You'll need to be more specific... can you add an edit to your question with the new error?

            – Silmathoron
            Nov 26 '18 at 17:56






          • 1





            see edit for additional explanation

            – Silmathoron
            Nov 26 '18 at 18:28



















          • Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

            – Mars
            Nov 26 '18 at 17:33











          • it is indeed ;)

            – Silmathoron
            Nov 26 '18 at 17:36











          • I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

            – Mars
            Nov 26 '18 at 17:55








          • 1





            You'll need to be more specific... can you add an edit to your question with the new error?

            – Silmathoron
            Nov 26 '18 at 17:56






          • 1





            see edit for additional explanation

            – Silmathoron
            Nov 26 '18 at 18:28

















          Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

          – Mars
          Nov 26 '18 at 17:33





          Thank you @Silmathoron. I will take you up on that advise. Oh and I already use seaborn, lovely module.

          – Mars
          Nov 26 '18 at 17:33













          it is indeed ;)

          – Silmathoron
          Nov 26 '18 at 17:36





          it is indeed ;)

          – Silmathoron
          Nov 26 '18 at 17:36













          I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

          – Mars
          Nov 26 '18 at 17:55







          I'm getting an error on the size now. ndist = stats.norm(loc=0., scale=scale) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) rvs2 = ndist.rvs(high_ni_sample[:,0],size=n2) rvs1 = ndist.rvs(low_ni_sample[:,0],size=n1) TypeError: rvs() got multiple values for argument 'size'

          – Mars
          Nov 26 '18 at 17:55






          1




          1





          You'll need to be more specific... can you add an edit to your question with the new error?

          – Silmathoron
          Nov 26 '18 at 17:56





          You'll need to be more specific... can you add an edit to your question with the new error?

          – Silmathoron
          Nov 26 '18 at 17:56




          1




          1





          see edit for additional explanation

          – Silmathoron
          Nov 26 '18 at 18:28





          see edit for additional explanation

          – Silmathoron
          Nov 26 '18 at 18:28




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53484481%2fissues-with-using-parameters-for-a-k-s-test-and-understand-the-result%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wiesbaden

          Marschland

          Dieringhausen