AMS7: WEEK 7. CLASS 1. More on Hypothesis Testing Monday May 11th, 2015

Similar documents
Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

Chapter 9 Inferences from Two Samples

An inferential procedure to use sample data to understand a population Procedures

CIVL /8904 T R A F F I C F L O W T H E O R Y L E C T U R E - 8

POLI 443 Applied Political Research

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

Introduction to Business Statistics QM 220 Chapter 12

Lecture Slides. Elementary Statistics. by Mario F. Triola. and the Triola Statistics Series

Visual interpretation with normal approximation

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

The t-statistic. Student s t Test

Chapter 7 Comparison of two independent samples

Sampling Distributions: Central Limit Theorem

PSY 216. Assignment 9 Answers. Under what circumstances is a t statistic used instead of a z-score for a hypothesis test

Chapter 22. Comparing Two Proportions. Bin Zou STAT 141 University of Alberta Winter / 15

Chapter 9. Inferences from Two Samples. Objective. Notation. Section 9.2. Definition. Notation. q = 1 p. Inferences About Two Proportions

Two-Sample Inferential Statistics

Classroom Activity 7 Math 113 Name : 10 pts Intro to Applied Stats

The One-Way Repeated-Measures ANOVA. (For Within-Subjects Designs)

Lecture Slides. Elementary Statistics Eleventh Edition. by Mario F. Triola. and the Triola Statistics Series 9.1-1

Hypothesis testing: Steps

Probability theory and inference statistics! Dr. Paola Grosso! SNE research group!! (preferred!)!!

Statistics Primer. ORC Staff: Jayme Palka Peter Boedeker Marcus Fagan Trey Dejong

Acknowledge error Smaller samples, less spread

Difference between means - t-test /25

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

Hypothesis testing: Steps

Single Sample Means. SOCY601 Alan Neustadtl

Inferences for Regression

Chapter 24. Comparing Means. Copyright 2010 Pearson Education, Inc.

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

Section 9.5. Testing the Difference Between Two Variances. Bluman, Chapter 9 1

Chapter 23: Inferences About Means

# of 6s # of times Test the null hypthesis that the dice are fair at α =.01 significance

Tables Table A Table B Table C Table D Table E 675

The One-Way Independent-Samples ANOVA. (For Between-Subjects Designs)

10.4 Hypothesis Testing: Two Independent Samples Proportion

T test for two Independent Samples. Raja, BSc.N, DCHN, RN Nursing Instructor Acknowledgement: Ms. Saima Hirani June 07, 2016

χ test statistics of 2.5? χ we see that: χ indicate agreement between the two sets of frequencies.

Questions 3.83, 6.11, 6.12, 6.17, 6.25, 6.29, 6.33, 6.35, 6.50, 6.51, 6.53, 6.55, 6.59, 6.60, 6.65, 6.69, 6.70, 6.77, 6.79, 6.89, 6.

Math 101: Elementary Statistics Tests of Hypothesis

STA Module 10 Comparing Two Proportions

Statistics Introductory Correlation

Chapter 23. Inferences About Means. Monday, May 6, 13. Copyright 2009 Pearson Education, Inc.

Linear Correlation and Regression Analysis

HYPOTHESIS TESTING II TESTS ON MEANS. Sorana D. Bolboacă

The Chi-Square Distributions

Advanced Experimental Design

Last week: Sample, population and sampling distributions finished with estimation & confidence intervals

The Chi-Square Distributions

CH.9 Tests of Hypotheses for a Single Sample

Two Sample Problems. Two sample problems

hypotheses. P-value Test for a 2 Sample z-test (Large Independent Samples) n > 30 P-value Test for a 2 Sample t-test (Small Samples) n < 30 Identify α

ANOVA TESTING 4STEPS. 1. State the hypothesis. : H 0 : µ 1 =

INTRODUCTION TO ANALYSIS OF VARIANCE

Two sided, two sample t-tests. a) IQ = 100 b) Average height for men = c) Average number of white blood cells per cubic millimeter is 7,000.

Purposes of Data Analysis. Variables and Samples. Parameters and Statistics. Part 1: Probability Distributions

LECTURE 12 CONFIDENCE INTERVAL AND HYPOTHESIS TESTING

Chapter 24. Comparing Means

For tests of hypotheses made about population, we consider. only tests having a hypothesis of. Note that under the assumption of

Inferences for Correlation

HYPOTHESIS TESTING. Hypothesis Testing

Inferences About Two Proportions

Hypothesis Testing. ECE 3530 Spring Antonio Paiva

Inferential statistics

Last two weeks: Sample, population and sampling distributions finished with estimation & confidence intervals

STAT Chapter 9: Two-Sample Problems. Paired Differences (Section 9.3)

The t-test: A z-score for a sample mean tells us where in the distribution the particular mean lies

Comparing Means from Two-Sample

Soc 3811 Basic Social Statistics Second Midterm Exam Spring Your Name [50 points]: ID #: ANSWERS

Business Statistics: Lecture 8: Introduction to Estimation & Hypothesis Testing

Statistical Inference for Means

Statistical inference provides methods for drawing conclusions about a population from sample data.

GROUPED DATA E.G. FOR SAMPLE OF RAW DATA (E.G. 4, 12, 7, 5, MEAN G x / n STANDARD DEVIATION MEDIAN AND QUARTILES STANDARD DEVIATION

Inference About Two Means: Independent Samples

STAT 515 fa 2016 Lec Statistical inference - hypothesis testing

A3. Statistical Inference

10/4/2013. Hypothesis Testing & z-test. Hypothesis Testing. Hypothesis Testing

Hypothesis Testing. Hypothesis: conjecture, proposition or statement based on published literature, data, or a theory that may or may not be true

Lab #12: Exam 3 Review Key

Ch. 7. One sample hypothesis tests for µ and σ

Psychology 282 Lecture #4 Outline Inferences in SLR

1 Descriptive statistics. 2 Scores and probability distributions. 3 Hypothesis testing and one-sample t-test. 4 More on t-tests

EXAM 3 Math 1342 Elementary Statistics 6-7

HYPOTHESIS TESTING: THE CHI-SQUARE STATISTIC

Hypothesis Testing hypothesis testing approach formulation of the test statistic

Review: General Approach to Hypothesis Testing. 1. Define the research question and formulate the appropriate null and alternative hypotheses.

PSY 305. Module 3. Page Title. Introduction to Hypothesis Testing Z-tests. Five steps in hypothesis testing

Chapter. Hypothesis Testing with Two Samples. Copyright 2015, 2012, and 2009 Pearson Education, Inc. 1

Inferences about central values (.)

Review 6. n 1 = 85 n 2 = 75 x 1 = x 2 = s 1 = 38.7 s 2 = 39.2

MBA 605, Business Analytics Donald D. Conant, Ph.D. Master of Business Administration

GEOMETRIC -discrete A discrete random variable R counts number of times needed before an event occurs

INTERVAL ESTIMATION AND HYPOTHESES TESTING

Hypothesis Tests and Estimation for Population Variances. Copyright 2014 Pearson Education, Inc.

Stat 529 (Winter 2011) Experimental Design for the Two-Sample Problem. Motivation: Designing a new silver coins experiment

Chapter 9. Hypothesis testing. 9.1 Introduction

Sociology 6Z03 Review II

Chapter 10: Inferences based on two samples

4.1 Hypothesis Testing

Transcription:

AMS7: WEEK 7. CLASS 1 More on Hypothesis Testing Monday May 11th, 2015

Testing a Claim about a Standard Deviation or a Variance We want to test claims about or 2 Example: Newborn babies from mothers taking a Vitamin Supplement have weights with a standard deviation equal to 0.4 Kg. Requirements for the test: - The sample is a random sample - The population has a normal distribution (more strict condition than when testing claims for the mean)

Test Statistic for the Variance or the Standard Deviation = P-value and critical values are found from the Chi-square ( ) table with n-1 degrees of freedom Properties of the Chi-square: All the values are non-negative and the distribution is nonsymmetric There is a different distribution for each number of degrees of freedom Values are in Table A-4. The table gives the critical values for different areas to the right of the value

Distribution

Example IQ scores of statistics students are normally distributed with mean 100 and a standard deviation of 15. A simple random sample of 13 students yields a standard deviation of s=7.2. A psychologist thinks that the standard deviation of IQ should be higher than 15. Assume that IQ scores for statistics students is normally distributed and use a significance level of 0.05 to test this claim. 1) Hypothesis in symbolic form: Ho: =15 H1: >15 (Original claim) We have a right-tailed test.

Example (Cont.) 2) Use test statistic = deviation) (for variance or standard = = (. ) = 2.765 (Assume Ho is True) 3) Use table with 12 degrees of freedom Area to the right of the critical value is 0.05. Critical value is = 21.026. The critical region are all the values greater than 21.026. 4) Since the test statistic is not in the critical region we fail to reject Ho. We do not have enough evidence from the sample to claim that the standard deviation of IQ scores o statistics students is greater than 15.

Hypothesis testing to compare properties from two populations We will: 1) Compare two proportions p 1 and p 2 (assuming independent populations) where p 1 is the proportion in population 1 and p 2 proportion in population 2. is the 2) Compare two means 1 and 2 (assuming independent populations) where 1 is the population 1 mean and 2 is the population 2 mean.

Comparing two proportions Null hypothesis and alternative hypotheses: Ho: p 1 = p 2 Ho: p 1 - p 2 =0 (is the same as) H1: p 1 < p 2 or p 1 > p 2 or p 1 p 2 H1: p 1 - p 2 <0 or p 1 - p 2 >0 or p 1 - p 2 0 Left-tailed Right-tailed Two-tailed Requirements: For each sample check: - Number of successes is at least five - Number of failures is at least five

Example In a study of women and heart disease, the following sample results were obtained: among 10,239 women with low level of physical activity (less than 200 kcal/wk), there were 101 cases of heart disease. Among 9,877 women with physical activity between 200 and 600 kcal/wk, there were 56 cases of heart disease. Use a 0.05 significance level to test the claim that the rate of heart disease is higher for women with lower levels of physical activity.

Example (Cont.) p 1 : Proportion of cases of heart disease in women with low level of physical activity p 2 : Proportion of cases of heart disease in women with higher level of physical activity Problem data: x1=101 x2=56 n1= 10,239 n2=9,877 = = =0.00986 = = = 0.00567 = 1 =0.99014 = 1 =0.99433

Setting the Hypothesis Test Pooled estimate of p 1 and p 2 (Mixing the two samples) 1 + 2 = 1 + 2 = 1 Test statistic: We want to test a hypothesis or claim on (p 1 - p 2 ) : Sample estimate of (p 1 - p 2 ) (p 1 - p 2 ): Mean of ( )

Test Statistics We assume Ho is True. Normally Ho:(p 1 - p 2 )=0 This is zero!!! = ( ) 1 + 2 The denominator is the standard deviation of ( assuming p 1 = p 2 Since Ho is assumed to be true before hand, p 1 - p 2 is zero. The test statistics is: = 1 + 2 )

Example (Cont.) In the example: Claim: p 1 > p 2 1) Hypothesis: Ho: p 1 = p 2 Ho: p 1 - p 2 =0 H1: p 1 > p 2 H1: p 1 - p 2 >0 (Right-Tailed Test) 2) Critical values: =0.05; z = 1.645. Critical region: Values of the test statistic > 1.645

Example (Cont.) Pooled proportion estimates: = = =0.0078 = 1 = 0.9922 ( )= + =.. +.. =0.00124 z= = =.. = 3.38

Example (Cont.) 3) Decision: - Observed z statistics (3.38) is in the critical region REJECT Ho. Using the p-value method: - P-value=P(z>3.38)=1-0.9996=0.0004 < 0.05 REJECT Ho ( Results are expected to be identical) - The sample data support the claim that the proportion of heart disease cases in the group of women with low level of physical activity is significantly higher than the cases in the high activity group.

Confidence Interval of the difference (p 1 - p 2 ) ( ) E < p 1 -p 2 < ( ) + E Where E = + / In this example we find the 90% confidence interval or (1-2 ) 100% CI with =0.05 E = + / = 1.645 = 0.00203.. +..

Confidence Interval of the difference (p 1 - p 2 ) (Cont.) C.I. 0.00419-0.0023< p 1 -p 2 < 0.00419+0.00203 0.00216 < p 1 -p 2 < 0.00622 The interval does not contain the Zero REJECT Ho

Inferences about two means We want to test hypothesis about ( 1-2 ) Requirements 1) Independent samples 2) Simple random samples 3) n1>30, n2>30 and/or both samples come from normally distributed populations We normally do not know the population standard deviations

Test statistics for comparing two population means Student t distribution: = 1 2 ( ) = 1 2 1 + 2 Degrees of Freedom (df): This book assumes df= smaller value between (n1-1) y (n2-1) (See page 390 in the Textbook) Confidence Interval: ( ) E < 1-2 < ( ) + E Where E = / + between (n1-1) and (n2-1).. Degrees of freedom= smaller value