SciPy the P-value and the _scipy of some statistics

Source: Internet
Author: User

There are a number of sub modules in the Scipy.stats module that involve computational statistics
Such as
Scipy.stats.uniform
Scipy.stats.norm
scipy.stats.t
Scipy.stats.chi2
Scipy.stats.f
More sub modules see here

The following methods are included in the SCIPY.STATS.F:

Come from here

These methods are similar in other child modules. In this paper, we introduce the P-value and the chi-square of f statistic, t statistic, the normal state, and the method of calculation is basically similar.

Example 1: Ask Pr (f4,58>1.67) =? , that is, a known critical value for P value

>>> from scipy.stats import F
>>> f.sf (1.67, 4)
0.16927935111708425
>>> 1-f . CDF (1.67, 4, 0.16927935111708448)

Example 2: Ask F (1−0.17) 4,58=? , that is, the known P value for the critical value

>>> from scipy.stats import F
>>> F.ISF (0.17, 4,)
1.666945416681088
>>> F.PPF (1-0.17, 4, 1.666945416681088)

Among them, ISF is the inverse of SF, PPF is the inverse of CDF. See above for specific explanation. Similar to other statistical methods, the difference is that fewer degrees of freedom are used as parameters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.