i 06 p values
play

I 06 - p -values STAT 587 (Engineering) Iowa State University - PowerPoint PPT Presentation

I 06 - p -values STAT 587 (Engineering) Iowa State University September 27, 2020 p -values p -value A p -value is the probability of observing a statistic as or more extreme than observed if the model is true. A p -value is the probability of


  1. I 06 - p -values STAT 587 (Engineering) Iowa State University September 27, 2020

  2. p -values p -value A p -value is the probability of observing a statistic as or more extreme than observed if the model is true. A p -value is the probability of observing a statistic as or more extreme than the one you observed if the model is true when the data are considered random .

  3. p -values Binomial model Binomial model Let H 0 : Y ∼ Bin (13 , 0 . 5) and observe y = 3 . Choos statistic is 3 , its sampling distribution when the model is true is Y ∼ Bin (13 , 0 . 5) , and there are three as or more extreme regions : Y ≤ 3 Y ≥ 3 | Y − 13 · 0 . 5 | ≥ | 3 − 13 · 0 . 5 |

  4. p -values Binomial model as or more extreme regions as or more extreme regions As or more extreme regions for Y ~ Bin(13,0.5) with y = 3 less_than outside greater_than 0.20 Probability mass function 0.15 0.10 0.05 0.00 0 5 10 0 5 10 0 5 10 Y fill No Yes

  5. p -values Binomial model p -value calculation R Calculation One-sided p -values: P ( Y ≤ y ) : pbinom(y, size = n, prob = p) [1] 0.04614258 P ( Y ≥ y ) = 1 − P ( Y < y ) = 1 − P ( Y ≤ y − 1) : 1-pbinom(y-1, size = n, prob = p) [1] 0.9887695 Two-sided p -value: P ( | Y − nθ | ≤ | y − nθ | ) = 2 P ( Y ≤ y ) 2*pbinom(y, size = n, prob = p) [1] 0.09228516

  6. p -values Normal model Normal model Let H 0 : Y i ∼ N (3 , 4 2 ) for i = 1 , . . . , 6 and you observe y = 6 . 3 , s = 4 . 1 , and t = y − 3 s/ √ n = 6 . 3 − 3 √ 6 = 1 . 97 . 4 . 1 / Choose t -statistic t = 1 . 97 , its sampling distribution when the model is true is T 5 ∼ t 5 , and there are three as or more extreme regions : T 5 ≤ 1 . 97 T 5 ≥ 1 . 97 | T 5 | ≥ | 1 . 97 |

  7. p -values Normal model as or more extreme regions as or more extreme regions As or more extreme regions for t = 1.97 with 5 degrees of freedom less_than outside greater_than 0.3 Probability density function 0.2 0.1 0.0 −5.0 −2.5 0.0 2.5 5.0 −5.0 −2.5 0.0 2.5 5.0 −5.0 −2.5 0.0 2.5 5.0 T

  8. p -values Normal model R calculation R Calculation One-sided p -values: P ( T 5 ≤ t ) : pt(t, df = n-1) [1] 0.9471422 P ( T 5 ≥ t ) = 1 − P ( T 5 < t ) = 1 − P ( T 5 ≤ t ) : 1-pt(t, df = n-1) [1] 0.05285775 Two-sided p -value: P ( | T 5 | ≥ | t | ) = 2 P ( T 5 ≥ t ) 2*(1-pt(t, df = n-1)) [1] 0.1057155

  9. p -values Interpretation Interpretation Small p -values provide evidence that the data are incompatible with the model. Recall ind ∼ N ( µ, σ 2 ) Y i indicates the data are independent, are normally distributed, have a common mean, and have a common variance.

  10. p -values Summary Summary p -value: the probability of observing a statistic as or more extreme than observed if the model is true small p -values provide evidence that the data are incompatible with the model

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend