PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, October 6, 2022

[FIXED] How to set significance level for scipy.stats test

 October 06, 2022     data-analysis, data-science, python, scipy, statistics     No comments   

Issue

I'm using scipy.stats.ttest_ind and scipy.stats.wilcoxon to perform t test and the Wilcoxon test, but I have no idea how can I set the significant level for them. In the official documents, nothing about it is mentioned and it seems like no arguments of these two methods are about it. Does anyone know how to set it?

The official documents:

https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_ind.html


Solution

The tests also report the p-value to the user. This p-value can be used to test a hypothesis at the significance level of your choice. We reject the null hypothesis if the p-value is less than the significance level. For example, with a p-value of 0.073 we reject at the significance level of 10% but do not reject at a significance level of 5%.



Answered By - Hanno Reuvers
Answer Checked By - Timothy Miller (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing