+ Specify 1 tail / 2 tail

Similar documents
Population Variance. Concepts from previous lectures. HUMBEHV 3HB3 one-sample t-tests. Week 8

1/24/2008. Review of Statistical Inference. C.1 A Sample of Data. C.2 An Econometric Model. C.4 Estimating the Population Variance and Other Moments

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

Lecture 26: Chapter 10, Section 2 Inference for Quantitative Variable Confidence Interval with t

Lecture 2: Basic Concepts and Simple Comparative Experiments Montgomery: Chapter 2

9-6. Testing the difference between proportions /20

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

The Chi-Square Distributions

Testing for Normality

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

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

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

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

Chapter 23: Inferences About Means

Hypothesis Testing hypothesis testing approach formulation of the test statistic

Stat 427/527: Advanced Data Analysis I

Comparing Means from Two-Sample

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

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

Testing for Normality

The Chi-Square Distributions

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

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

Advanced Experimental Design

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

Chapter 24. Comparing Means

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

10/31/2012. One-Way ANOVA F-test

STAT 135 Lab 6 Duality of Hypothesis Testing and Confidence Intervals, GLRT, Pearson χ 2 Tests and Q-Q plots. March 8, 2015

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

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

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

CBA4 is live in practice mode this week exam mode from Saturday!

Lecture 18: Analysis of variance: ANOVA

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

F3: Classical normal linear rgression model distribution, interval estimation and hypothesis testing

Data Analysis and Statistical Methods Statistics 651

Acknowledge error Smaller samples, less spread

Data analysis and Geostatistics - lecture VII

Hypothesis testing. 1 Principle of hypothesis testing 2

One-Sample and Two-Sample Means Tests

Lecture 8. Using the CLR Model

Semester 2, 2015/2016

Business Statistics. Lecture 10: Course Review

Sampling Distributions: Central Limit Theorem

10.2: The Chi Square Test for Goodness of Fit

Introduction to Business Statistics QM 220 Chapter 12

z and t tests for the mean of a normal distribution Confidence intervals for the mean Binomial tests

Econ 3790: Business and Economic Statistics. Instructor: Yogesh Uppal

Example: Four levels of herbicide strength in an experiment on dry weight of treated plants.

Hypothesis Testing. Week 04. Presented by : W. Rofianto

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.

Difference between means - t-test /25

STAT 135 Lab 5 Bootstrapping and Hypothesis Testing

:the actual population proportion are equal to the hypothesized sample proportions 2. H a

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

Two-Sample Inferential Statistics

Review of Statistics

Functional Form. So far considered models written in linear form. Y = b 0 + b 1 X + u (1) Implies a straight line relationship between y and X

Keppel, G. & Wickens, T.D. Design and Analysis Chapter 2: Sources of Variability and Sums of Squares

Lecture 9 Two-Sample Test. Fall 2013 Prof. Yao Xie, H. Milton Stewart School of Industrial Systems & Engineering Georgia Tech

The goodness-of-fit test Having discussed how to make comparisons between two proportions, we now consider comparisons of multiple proportions.

Statistical Analysis for QBIC Genetics Adapted by Ellen G. Dow 2017

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

Review of Statistics 101

MATH 240. Chapter 8 Outlines of Hypothesis Tests

Hypothesis Testing hypothesis testing approach

Content by Week Week of October 14 27

Student s t-distribution. The t-distribution, t-tests, & Measures of Effect Size

Hypothesis Testing One Sample Tests

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

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

2011 Pearson Education, Inc

Financial Econometrics and Quantitative Risk Managenent Return Properties

8/23/2018. One-Way ANOVA F-test. 1. Situation/hypotheses. 2. Test statistic. 3.Distribution. 4. Assumptions

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

1. What does the alternate hypothesis ask for a one-way between-subjects analysis of variance?

Regression Analysis. y t = β 1 x t1 + β 2 x t2 + β k x tk + ϵ t, t = 1,..., T,

Hint: The following equation converts Celsius to Fahrenheit: F = C where C = degrees Celsius F = degrees Fahrenheit

Economics 471: Econometrics Department of Economics, Finance and Legal Studies University of Alabama

CHAPTER 13: F PROBABILITY DISTRIBUTION

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

Chapter 3. Comparing two populations

Chapter 7 Comparison of two independent samples

Question. Hypothesis testing. Example. Answer: hypothesis. Test: true or not? Question. Average is not the mean! μ average. Random deviation or not?

Review. One-way ANOVA, I. What s coming up. Multiple comparisons

Introduction to hypothesis testing

Chapter 7: Statistical Inference (Two Samples)

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

Statistics for Managers Using Microsoft Excel Chapter 9 Two Sample Tests With Numerical Data

POLI 443 Applied Political Research

Hypothesis testing: Steps

Inference for Distributions Inference for the Mean of a Population

CHAPTER 13: F PROBABILITY DISTRIBUTION

PHP2510: Principles of Biostatistics & Data Analysis. Lecture X: Hypothesis testing. PHP 2510 Lec 10: Hypothesis testing 1

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

Statistics Part IV Confidence Limits and Hypothesis Testing. Joe Nahas University of Notre Dame

Heteroskedasticity. Part VII. Heteroskedasticity

Chapter 7. Inference for Distributions. Introduction to the Practice of STATISTICS SEVENTH. Moore / McCabe / Craig. Lecture Presentation Slides

Lecture 15: Inference Based on Two Samples

Transcription:

Week 2: Null hypothesis Aeroplane seat designer wonders how wide to make the plane seats. He assumes population average hip size μ = 43.2cm Sample size n = 50 Question : Is the assumption μ = 43.2cm reasonable? 1. Write down all information given μ = 43.2cm, n = 50, n 1 = 49 + Specify 1 tail / 2 tail H 0 : μ = 43.2cm H A : μ = / 43.2cm 2 tail test 2 tail test because he wants not too wide, not too narrow 3. Determine test statistic AND sampling distribution Pop variance not known t statistics 4. Calculate the test statistic value AND p value Use Eviews to find sample statistics using Histogram Use sample stats to calc t value: P value (EViews) ***p value for 2 tail test = total probability on both tails IF t value is positive(>0) 2 x probability on upper tail IF t value is negative(<0) 2 x probability on lower tail 5. Determine significance level & critical value: α = 0.05 P(t > t 0.025, 49 ) = 0.025 t 0.025, 49 = 2.009, t 0.025, 49 = 2.009 (use t table) MUST write BOTH crit values 6. Define decision rule: 1. Reject H 0 if t value < 2.009 or t value > 2.009 2. Reject H 0 if p value < 0.05 7. Conclude & Answer the question Since 2.010 < 0.5893 < 2.010, H 0 is not rejected. There is not sufficient evidence that the designer s assumption of population average hip size = 43.2cm is not reasonable 7

How wide should the aeroplane seats be? Designer wants to make seats wide enough so that 98% of population can fit. Hip size of 98% population Find the 98% quantile ***Quantile: X Value given the probability of the lower tail 3 assumptions: 1. The population of hip size X is normally distributed (means we can use Z stat) 2. Population mean μ = 43.2 3. Population sd = Sample sd σ = s = 4.584 To find the 98% quantile: 1. Find Z value of 98% quantile P(Z < Z 0 ) = 0.98 Z 0 = 2.054 2. Use the formula of Z value to find X 0. 3. 98% of population can fit into a 52.6cm seat. 8

Interval estimate for population standard deviation How do we know how accurate is Assumption 3: σ = s = 4.584? Finding 95% interval estimate for population sd σ : (n 1)s 2 (n 1)s = Sqrt of (, 2 ) upper χ2 value lower χ2 value *** Lower range limit Use upper χ 2 value, Upper range limit Use lower χ 2 value **MEMORISE: Chisq dist: What is the proportion of population that can fit into a 52.6cm seat, if 4.584? σ = 5.712 instead of Initially, 98% of population can fit into a 52.6cm seat, when σ = 4.584: BUT as σ increases to 5.712, only 95% of population can fit The higher sd, the more data spreads out, the lower the probability of lower tail 9

Testing equality of 2 populations using Independent samples Hypothesis testing steps for comparing 2 populations: 1. Write down all info given + DEFINE all variables + Specify 1 tail/2 tail 3. Determine test statistics 4. Calculate the value of test statistics AND sampling distribution 5. Determine α & critical value 6. Define the decision rule 7. Conclude & Answer the question hypotheses H 0 : H A : (use this) 3. **Test statistics to test the equality of 2 pop means: INDEPENDENT t stat / t stat with pooled var MATCHED PAIRS test 1 pop mean u D with t stat Test statistics to test the equality of 2 pop variances F statistics Test statistics to test whether X is normally distributed Jarque Bera statistics 2 types of test statistics to test 2 pop means for INDEPENDENT samples: 1. UNEQUAL pop variances T stat **df(v): (NO need memorise) S.E. MUST be addition!!! Total variability of both populations 2. EQUAL pop variances T stat with Pooled Variance Pooled variance s 2 P = Weighted average of sample variances 1 & 2 i. s 2 = [(n 1)Sample var 1 + (n P 1 2 1)sample var 2] / df **Degree of freedom(v) in t stats = n 1 + n 2 2 10

Testing the equality of 2 pop means μ 1 and μ 2 using independent samples: Do people who talk on phones while driving have slower reaction? μ 1 = Average reaction time of all phone talking (PT) drivers X 1 = Average reaction time of a sample of phone talking(pt) drivers μ 2 = Average reaction time of all non phone talking (NPT) drivers = Average reaction time of a sample of non phone talking(npt) drivers X 2 1. Write down all info given + DEFINE all variables AND specify 1 tail/2 tail (UPPER) (slower = longer time) 3. Determine test statistics AND sampling distribution Assume pop variances σ 2 are equal T statistics with pooled variance ~ t 268 4. Calculate test statistics values AND p value When H 0 is true = 0 μ 1 μ 2 Degree of freedom = 125 + 145 2 = 268 (EViews) 5. Determine significance level & critical value α = 0.05, t 0.05, 268 = 1.651 6. Define decision rule Reject H 0 if t value > 1.651 OR if p value < 0.05 7. Conclude & Answer the question Since 7.44 > 1.651 and 0.00000000068 < 0.05, H 0 is rejected. There is sufficient evidence that phone talking drivers have slower reaction. 11

F distribution for testing the equality of 2 pop variances F statistics : Derived by comparing the chisq values of 2 pop var, each divided by its own df F stat = Ratio of sample variance 1 & 2 ** Center = 1 (Z stats & t stats = 0) ASSUME independent samples Notation F (prob of upper tail, v1, v2) v 1 = numerator df v 2 = denominator df Question : Is it reasonable to assume that pop var 1 = pop var 2? Testing the equality of 2 pop variances: 1. Write all info given + DEFINE all variables + Specify 1 tail/2 tail (2 tail test) 3. Determine test statistics Test equality of 2 pop variances F statistics 4. Calculate test statistic value Finding P value in F statistics for 2 tail test: If F value > 1 2 x probability on upper tail If F value < 1 2 x probability on lower tail 12

5. *Determine significance level & critical value: α = 0.05 Finding upper critical value: **Use F table that has probability of upper tail F (probability on upper tail, v1, v2) = F (0.025, 124, 144) = 1.41 **Finding lower critical value: ( skewed dist, cannot put ve sign) 2 steps: 1. Write the notation F (probability on upper tail, v1, v2) 2. Do 3 flipping a. Flip the F value 1 / F value b. Flip the probability Probability of lower tail c. Flip degree of freedom v 2, v 1 F (0.975, 124, 144) = 1 / F (0.025, 144,124) = 0.70 6. Define decision rule: Reject H 0 if F value > 1.41 OR F value < 0.70 7. Conclude & Answer the question: Since 0.70 < 0.728 < 1.41, H 0 is not rejected. There is sufficient evidence that the pop variances are equal 13

Testing whether or not data observations are normally distributed 3 Definitions: 1. Variance of a random variable X = 2. Skewness(SK) Tips: Similar to variance, but not squared difference Triple difference + divided by pop sd^3 When random variable X is normally distributed SK = 0 Finding sample skewness: Average of sum of triple difference between X and mean + divided by sample sd 3. Kurtosis(K): The sharpness of the peak of a distribution curve Tips : Quadruple difference + divided by pop sd^4 When random variable X is normally distributed K = 3 Normal dist Finding sample kurtosis: Average of sum of quadruple difference between X and mean + divided by sample sd To test whether random variable X is normally distributed: 1. Set up H 0 H 0 : X is normally distributed 2. Determine test statistics Jarque Bera (JB) statistic: Test whether or not data observations are normally distributed (NO need memorise) 1. Large JB = SK is far from 0 / K is far from 3 X is NOT normally distributed Only reject H 0 if JB > a specific value ALWAYS upper tail test!! 2. **When X is normally distributed JB s χ 2 has df = 2 Only need df & α to find critical value χ 2 (2, α ) 3. Calc test statistic values Sample SK & K, and JB value 4. Determine α = 0.05, critical value: Critical value of JB = 5. Define decision rule Reject H 0 if JB > 5.99 14