The Wayback Machine - https://web.archive.org/web/20220824081121/https://www.geeksforgeeks.org/p-value/
Skip to content
Related Articles

Related Articles

P-value

View Discussion
Improve Article
Save Article
  • Last Updated : 22 Jan, 2021
View Discussion
Improve Article
Save Article

Prerequisite: Hypothesis testing

P-value is used to find extreme values when the null hypothesis (h0) is true. In simpler words, it is used to reject or support the null hypothesis during hypothesis testing. In data science, it gives valuable insights on the statistical significance of an independent variable in predicting the dependent variable. 

Working with p-value:

During hypothesis testing, we assume a significance level (α), generally 5% (α = 0.05). It is the probability of rejecting the null hypothesis when it is true. It is observed that lower the p-value, higher is the probability of rejecting the null hypothesis. When:

  • p ≤ (α = 0.05) : reject h0.
  • p > (α = 0.05) : reject h1 (or accept h0)

In case the significance level is not specified, consider the below general inferences while interpreting your results. 

  • If p > .10: not significant
  • If p ≤ .10: slightly significant
  • If p ≤ .05: significant
  • If p ≤ .001: highly significant

Graphical representation:

Graphically, the p-value is located at the tails of any confidence interval. [As shown in fig 1]

Fig 1: Graphical Representation 

P-value in hypothesis testing:

The table given below shows the importance of p-value and shows the various kinds of errors that occur during hypothesis testing.

Truth /Decision

Accept h0

Reject h0

h0 -> true

Correct decision based 
on the given p-value
(1-α)

Type I error (α)

h0 -> false

Type II error (β)

Incorrect decision based 
on the given p-value
(1-β)

Type I error: Incorrect rejection of the null hypothesis. It is denoted by α (significance level).
Type II error: Incorrect acceptance of the null hypothesis. It is denoted by β (power level)

Common uses of the p-value: 

  1. During Forward and Backward propagation: When fitting a model (say a Multiple Linear Regression model), we use the p-value in order to find the most significant variables that contribute significantly in predicting the output.
  2. Effects of various drug medicines: It is highly used in the field of medical research in determining whether the constituents of any drug will have the desired effect on humans or not. P-value is a very strong statistical tool used in hypothesis testing. It provides a plethora of valuable information while making an important decision like making a business intelligence inference or determining whether a drug should be used on humans or not, etc. For any doubt/query, comment below.
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!