How to graphically present the statistical interpretations when using Kolmogorov–Smirnov test (K-S) test? The Next CEO of Stack Overflow2019 Community Moderator ElectionAny suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?How does Seaborn calculate error bars when using estimators other than the arithmetic mean?Using Diebold-Mariano testInterpreting statistical formulas using python (mu + sigma * data)statistical significance test between binary label featuresHow to select a model based on statistical analyses?How to load this data from .dat into dataframe using pythonAppropriate statistical testStatistical test for machine learningHow to test the influence of a feature on conversion?Any suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?

pgfplots: How to draw a tangent graph below two others?

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

Can Sri Krishna be called 'a person'?

Compilation of a 2d array and a 1d array

Can this transistor (2n2222) take 6V on emitter-base? Am I reading datasheet incorrectly?

How can a day be of 24 hours?

Another proof that dividing by 0 does not exist -- is it right?

Why did early computer designers eschew integers?

How dangerous is XSS

How do I keep Mac Emacs from trapping M-`?

What happens if you break a law in another country outside of that country?

How should I connect my cat5 cable to connectors having an orange-green line?

Direct Implications Between USA and UK in Event of No-Deal Brexit

Can you teleport closer to a creature you are Frightened of?

Does Germany produce more waste than the US?

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

Is it possible to make a 9x9 table fit within the default margins?

Is it OK to decorate a log book cover?

Compensation for working overtime on Saturdays

How can I separate the number from the unit in argument?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Is it okay to majorly distort historical facts while writing a fiction story?

Calculate the Mean mean of two numbers

Why was Sir Cadogan fired?



How to graphically present the statistical interpretations when using Kolmogorov–Smirnov test (K-S) test?



The Next CEO of Stack Overflow
2019 Community Moderator ElectionAny suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?How does Seaborn calculate error bars when using estimators other than the arithmetic mean?Using Diebold-Mariano testInterpreting statistical formulas using python (mu + sigma * data)statistical significance test between binary label featuresHow to select a model based on statistical analyses?How to load this data from .dat into dataframe using pythonAppropriate statistical testStatistical test for machine learningHow to test the influence of a feature on conversion?Any suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?










0












$begingroup$


I am referring to my previous question (Any suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?) related to visualising the Pandas dataframes to show that they have a similar distribution.



I have come to know that Kolmogorov–Smirnov test (K-S Test) can help decide whether the 2 distributions of dataframes are similar and how similar they are based on p-values etc. Based on the answer by Tasos in the referred question,



from scipy import stats
p_value = 0.05
rejected = 0
for col in df1:
test = stats.ks_2samp(df1[col], df2[col])
if test[1] < p_value:
rejected += 1
print("We rejected",rejected,"columns in total")


It is possible to understand the context as to whether the distributions of the dataframes df1 and df2 are similar or not. However, I would like to present this information visually/graphically (such as Wikipedia have a graph for K-S test statistic: https://en.wikipedia.org/wiki/Kolmogorov–Smirnov_test). Any suggestions regarding a suitable method to visualise the K-S test statistical interpretation in Python would be highly appreciated. Cheers!










share|improve this question









$endgroup$
















    0












    $begingroup$


    I am referring to my previous question (Any suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?) related to visualising the Pandas dataframes to show that they have a similar distribution.



    I have come to know that Kolmogorov–Smirnov test (K-S Test) can help decide whether the 2 distributions of dataframes are similar and how similar they are based on p-values etc. Based on the answer by Tasos in the referred question,



    from scipy import stats
    p_value = 0.05
    rejected = 0
    for col in df1:
    test = stats.ks_2samp(df1[col], df2[col])
    if test[1] < p_value:
    rejected += 1
    print("We rejected",rejected,"columns in total")


    It is possible to understand the context as to whether the distributions of the dataframes df1 and df2 are similar or not. However, I would like to present this information visually/graphically (such as Wikipedia have a graph for K-S test statistic: https://en.wikipedia.org/wiki/Kolmogorov–Smirnov_test). Any suggestions regarding a suitable method to visualise the K-S test statistical interpretation in Python would be highly appreciated. Cheers!










    share|improve this question









    $endgroup$














      0












      0








      0





      $begingroup$


      I am referring to my previous question (Any suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?) related to visualising the Pandas dataframes to show that they have a similar distribution.



      I have come to know that Kolmogorov–Smirnov test (K-S Test) can help decide whether the 2 distributions of dataframes are similar and how similar they are based on p-values etc. Based on the answer by Tasos in the referred question,



      from scipy import stats
      p_value = 0.05
      rejected = 0
      for col in df1:
      test = stats.ks_2samp(df1[col], df2[col])
      if test[1] < p_value:
      rejected += 1
      print("We rejected",rejected,"columns in total")


      It is possible to understand the context as to whether the distributions of the dataframes df1 and df2 are similar or not. However, I would like to present this information visually/graphically (such as Wikipedia have a graph for K-S test statistic: https://en.wikipedia.org/wiki/Kolmogorov–Smirnov_test). Any suggestions regarding a suitable method to visualise the K-S test statistical interpretation in Python would be highly appreciated. Cheers!










      share|improve this question









      $endgroup$




      I am referring to my previous question (Any suitable way to describe the distributions of 2 Pandas Dataframes visually/graphically?) related to visualising the Pandas dataframes to show that they have a similar distribution.



      I have come to know that Kolmogorov–Smirnov test (K-S Test) can help decide whether the 2 distributions of dataframes are similar and how similar they are based on p-values etc. Based on the answer by Tasos in the referred question,



      from scipy import stats
      p_value = 0.05
      rejected = 0
      for col in df1:
      test = stats.ks_2samp(df1[col], df2[col])
      if test[1] < p_value:
      rejected += 1
      print("We rejected",rejected,"columns in total")


      It is possible to understand the context as to whether the distributions of the dataframes df1 and df2 are similar or not. However, I would like to present this information visually/graphically (such as Wikipedia have a graph for K-S test statistic: https://en.wikipedia.org/wiki/Kolmogorov–Smirnov_test). Any suggestions regarding a suitable method to visualise the K-S test statistical interpretation in Python would be highly appreciated. Cheers!







      python pandas statistics dataframe descriptive-statistics






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      JChatJChat

      305




      305




















          0






          active

          oldest

          votes












          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2fdatascience.stackexchange.com%2fquestions%2f48375%2fhow-to-graphically-present-the-statistical-interpretations-when-using-kolmogorov%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Data Science Stack Exchange!


          • 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.

          Use MathJax to format equations. MathJax reference.


          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%2fdatascience.stackexchange.com%2fquestions%2f48375%2fhow-to-graphically-present-the-statistical-interpretations-when-using-kolmogorov%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

          Ружовы пелікан Змест Знешні выгляд | Пашырэнне | Асаблівасці біялогіі | Літаратура | НавігацыяДагледжаная версіяправерана1 зменаДагледжаная версіяправерана1 змена/ 22697590 Сістэматыкана ВіківідахВыявына Вікісховішчы174693363011049382

          ValueError: Error when checking input: expected conv2d_13_input to have shape (3, 150, 150) but got array with shape (150, 150, 3)2019 Community Moderator ElectionError when checking : expected dense_1_input to have shape (None, 5) but got array with shape (200, 1)Error 'Expected 2D array, got 1D array instead:'ValueError: Error when checking input: expected lstm_41_input to have 3 dimensions, but got array with shape (40000,100)ValueError: Error when checking target: expected dense_1 to have shape (7,) but got array with shape (1,)ValueError: Error when checking target: expected dense_2 to have shape (1,) but got array with shape (0,)Keras exception: ValueError: Error when checking input: expected conv2d_1_input to have shape (150, 150, 3) but got array with shape (256, 256, 3)Steps taking too long to completewhen checking input: expected dense_1_input to have shape (13328,) but got array with shape (317,)ValueError: Error when checking target: expected dense_3 to have shape (None, 1) but got array with shape (7715, 40000)Keras exception: Error when checking input: expected dense_input to have shape (2,) but got array with shape (1,)

          Illegal assignment from SObject to ContactFetching String, Id from Map - Illegal Assignment Id to Field / ObjectError: Compile Error: Illegal assignment from String to BooleanError: List has no rows for assignment to SObjectError on Test Class - System.QueryException: List has no rows for assignment to SObjectRemote action problemDML requires SObject or SObject list type error“Illegal assignment from List to List”Test Class Fail: Batch Class: System.QueryException: List has no rows for assignment to SObjectMapping to a user'List has no rows for assignment to SObject' Mystery