SlideShare a Scribd company logo
1 of 22
HYPOTHESIS TESTS. REGRESSION WITH
A SINGLE REGRESSOR
ECON 355 – Regression Analysis
REVIEW
• To find out the relationship between Y an X we
1. Collect a sample of data
2. Run a regression of Y on X
3. Find the beta
Problem: what if the sample we collected gave us an incorrect beta and in fact there is no
relationship between Y and X?
HYPOTHESIS TESTING
A BIG PICTURE REVIEW OF WHERE WE ARE GOING
We want to learn about the slope of the population regression line. We have data from a
sample, so there is sampling uncertainty. There are five steps towards this goal:
1. State the population object of interest
2. Provide an estimator of this population object
3. In large samples the distribution of the estimator will be normal, use that!
4. Find the standard error (estimator of the standard deviation) of the sampling
distribution of the estimator and use that to conduct tests
WHAT TESTS?
• The test that the beta (slope estimator) that we found is not zero.
• If in 𝑌𝑖 = 𝛽0 + 𝛽1 𝑋𝑖 + 𝑢𝑖 𝛽1 = 0 then there is no relationship between Y and X. Case
closed
• Basically we will assume that 𝛽1 = 0 and prove that from that assumption we are
getting something that can not be true
• If we do not have enough evidence to prove the above then 𝛽1 = 0 and there is no
relationship between Y and X
MORE ON STANDARD ERROR
• Remember we ask a question about a population and then try to find the answer by
drawing repeated samples.
Example: what is the relationship between the amount of caffeinated drinks one consumes
and the number of hours they sleep?
The standard deviation of the betas you found is 0.24 and the mean is -0.26114
• In reality we only have one sample, hence can’t calculate the standard deviation, we will
instead estimate it and call it standard error
EXAMPLE
1. Population object of interest: the relationship between class size and test scores
𝑡𝑒𝑠𝑡𝑠𝑐𝑟𝑖 = 𝛽0 + 𝛽1 𝑆𝑇𝑅𝑖 + 𝑢𝑖
• Estimator 𝛽1, estimate -2.28
• Sample size – large?
HYPOTHESIS TEST
• We are going to assume that the relationship between class size and test score is zero
(we hypothesize that 𝛽1 = 0) . The mean of the sampling distribution is then 0
• The standard error is the estimator of the standard deviation
• If the estimate is too far away from the mean, this means that there is a very low chance
of getting that estimate, our earlier assumption is incorrect
• To calculate the distance we will compare
𝛽1−𝛽1𝐻
𝑆𝐸
(called t-statistic) to one of the t-critical
values: 1.65; 1.96; 2.58
EXAMPLE CONT’D
• The standard error is 0.479
• The t-stat is then (-2.58-0)/0.479=-4.75
• This is less than all three of the critical values.
• We will always pick the critical value furthest away from zero to describe the results
• Hence here we will build our conclusion on -2.58 since it is the farthest from zero.
• The conclusion is that the “coefficient on student-teacher ratio is statistically significant
at 1%” or “we reject the null hypothesis at 1% level)
• This means that the probability of falsely rejecting our assumption/hypothesis (𝛽1 = 0)
given that it is true is 1%
• Note that this also means that the coefficient on student-teacher ratio is statistically
significant at 5% and 10%. Because it is significant at 1%, 5% and 10% significance levels
are implied
LANGUAGE
• Notice that we either
• Reject the null hypothesis or
• Fail to reject the null hypothesis (if the estimated beta is too close to the hypothesized
value of zero)/we don’t have enough evidence to reject the null hypothesis
• We never accept the null hypothesis
• If we fail to reject the null then we do not interpret the beta. The beta in this case is
not statistically different from zero.
EXAMPLE
• Let’s imagine we are asking the same question but we get a slightly different standard
error, standard error = 1.29
• What is the null hypothesis?
• What is the alternative hypothesis?
• What is the t-stat?
• Which t-critical value should we compare it to?
• What is our conclusion?
EXAMPLE 2
• Let’s imagine we are asking the same question but we get a slightly different standard
error, standard error = 1.43
• What is the null hypothesis?
• What is the alternative hypothesis?
• What is the t-stat?
• Which t-critical value should we compare it to?
• What is our conclusion?
EXAMPLE 3
• Let’s imagine we are asking the same question but we get a slightly different standard
error, standard error = 1.15
• What is the null hypothesis?
• What is the alternative hypothesis?
• What is the t-stat?
• Which t-critical value should we compare it to?
• What is our conclusion?
T-STATS AND LEVELS OF SIGNIFICANCE
• If you find the t-stat to be
1. -0.7
2. 3.25
3. 1.14
4. -1.88
5. 2.08
What corresponding levels of statistical significance would you chose?
A NEW EXAMPLE!
• We are asking what is the relationship between GDP and mortality.
• What is our population of interest? Parameter? Estimator?
• What is the null hypothesis?
• Alternative hypothesis?
• Run the regression of mortality on GDP in Stata
• The standard error is printed in Stata output
• What is the t-stat?
• What critical value should we compare it to?
• What is our conclusion?
• To make your life easier, Stata also prints out the t-stat so you do not have to calculate it
each time you run a regression
DIGRESSION BUT AN IMPORTANT ONE
• How do we interpret the beta on GDP? (GDP is in dollars, mortality is in infant deaths
per 1000 live births)
• Is this interesting?
• What is the mean and standard deviation of GDP?
• How can we make our interpretation sound more interesting?
BACK TO HYPOTHESIS TESTING
• Use the real estate data set, please find the t-stat and corresponding significance level in
the regressions of price of a house on the
• Number of bedrooms
• Age of the house
• Please interpret the coefficients
P-VALUE
• P-value is your best friend!
• It is printed in Stata output
• The smallest significance level at which the null hypothesis could be rejected, based on
the test statistic actually observed
• For example, p-value lower than 1 percent (0.01) means that the null hypothesis would
be rejected at the 1 percent level, p-value between 0.01 and 0.05 means that the null
hypothesis would be rejected at the 5 percent level
P-VALUE EXAMPLE
P-VALUE, EXAMPLE
• In the regression of test score on class size the P-value is 0.000. This means it is less than
0.01 (1%). Thus, we can reject the null hypothesis at 1% level
• By the way, what is the null hypothesis?
• If P-value is between 0.01 and 0.05 then we can reject the null hypothesis at 5% level
• If P-value is between 0.05 and 0.1 then we can reject the null hypothesis at 10% level
• If P-value is 0.1 or greater then we fail to reject the null
• What are the p-values in the regressions of price of the house on its age and on the
number of bedrooms?
IN THE REAL WORLD
• You will meet two types of people
• Those who know of hypothesis testing (for example, if you go to graduate school). If you
write a paper and you use regression analysis in that paper no need to discuss what
your null and alternative hypotheses are. You only need to interpret statistically
significant betas, mention that they are statistically significant (and at what level) and
mention if betas are not statistically significant
• Those who have no idea what hypothesis testing is (for example, your client at work).
You only then need to interpret statistically significant betas. Make sure your
interpretation is coherent
PRACTICE
• Please use California schools dataset and regress test scores on
• Number of computers
• Number of computers per student
• Average income
• Number of teachers
• Based on the results of the regressions interpret the coefficients and state the level of
their statistical significance
REVIEW
• What is the default hypothesized value?
• What happens if we hypothesize the relationship between two variables to be
something else?
• T-critical values and corresponding significance levels. Please give an example.
• How to use p-value. Please give an example.
• Do you interpret a coefficient if it is not statistically significant?

More Related Content

What's hot

Statistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statisticsStatistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statisticsUniversity of North Texas
 
Chi square test
Chi square testChi square test
Chi square testcallr
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statisticsMaria Theresa
 
Basic Statistical Concepts & Decision-Making
Basic Statistical Concepts & Decision-MakingBasic Statistical Concepts & Decision-Making
Basic Statistical Concepts & Decision-MakingPenn State University
 
Hypothesis Testing. Inferential Statistics pt. 2
Hypothesis Testing. Inferential Statistics pt. 2Hypothesis Testing. Inferential Statistics pt. 2
Hypothesis Testing. Inferential Statistics pt. 2John Labrador
 
Causal Inference in Data Science and Machine Learning
Causal Inference in Data Science and Machine LearningCausal Inference in Data Science and Machine Learning
Causal Inference in Data Science and Machine LearningBill Liu
 
Correlational research - Research Methodology - Manu Melwin Joy
Correlational research - Research Methodology - Manu Melwin JoyCorrelational research - Research Methodology - Manu Melwin Joy
Correlational research - Research Methodology - Manu Melwin Joymanumelwin
 
Types of analytics & the structures of data
Types of analytics & the structures of dataTypes of analytics & the structures of data
Types of analytics & the structures of dataRupak Roy
 
2016 Symposium Poster - statistics - Final
2016 Symposium Poster - statistics - Final2016 Symposium Poster - statistics - Final
2016 Symposium Poster - statistics - FinalBrian Lin
 
Basic statistics for algorithmic trading
Basic statistics for algorithmic tradingBasic statistics for algorithmic trading
Basic statistics for algorithmic tradingQuantInsti
 

What's hot (16)

Variable inferential statistics
Variable inferential statisticsVariable inferential statistics
Variable inferential statistics
 
Statistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statisticsStatistics for Librarians, Session 3: Inferential statistics
Statistics for Librarians, Session 3: Inferential statistics
 
Chi square test
Chi square testChi square test
Chi square test
 
Inferential statistics
Inferential statisticsInferential statistics
Inferential statistics
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Basic Statistical Concepts & Decision-Making
Basic Statistical Concepts & Decision-MakingBasic Statistical Concepts & Decision-Making
Basic Statistical Concepts & Decision-Making
 
Estimating a Population Proportion
Estimating a Population ProportionEstimating a Population Proportion
Estimating a Population Proportion
 
Hypothesis Testing. Inferential Statistics pt. 2
Hypothesis Testing. Inferential Statistics pt. 2Hypothesis Testing. Inferential Statistics pt. 2
Hypothesis Testing. Inferential Statistics pt. 2
 
P1 Stroop
P1 StroopP1 Stroop
P1 Stroop
 
Causal Inference in Data Science and Machine Learning
Causal Inference in Data Science and Machine LearningCausal Inference in Data Science and Machine Learning
Causal Inference in Data Science and Machine Learning
 
Inferential Statistics
Inferential StatisticsInferential Statistics
Inferential Statistics
 
Correlational research - Research Methodology - Manu Melwin Joy
Correlational research - Research Methodology - Manu Melwin JoyCorrelational research - Research Methodology - Manu Melwin Joy
Correlational research - Research Methodology - Manu Melwin Joy
 
Chapter14
Chapter14Chapter14
Chapter14
 
Types of analytics & the structures of data
Types of analytics & the structures of dataTypes of analytics & the structures of data
Types of analytics & the structures of data
 
2016 Symposium Poster - statistics - Final
2016 Symposium Poster - statistics - Final2016 Symposium Poster - statistics - Final
2016 Symposium Poster - statistics - Final
 
Basic statistics for algorithmic trading
Basic statistics for algorithmic tradingBasic statistics for algorithmic trading
Basic statistics for algorithmic trading
 

Similar to Topic 2 - More on Hypothesis Testing

probability.pptx
probability.pptxprobability.pptx
probability.pptxbisan3
 
Topic 3 (Stats summary)
Topic 3 (Stats summary)Topic 3 (Stats summary)
Topic 3 (Stats summary)Ryan Herzog
 
BASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdf
BASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdfBASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdf
BASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdfAdamu Mohammad
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxNELVINNOOL1
 
De-Mystifying Stats: A primer on basic statistics
De-Mystifying Stats: A primer on basic statisticsDe-Mystifying Stats: A primer on basic statistics
De-Mystifying Stats: A primer on basic statisticsGillian Byrne
 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excelParag Shah
 
Lect w6 hypothesis_testing
Lect w6 hypothesis_testingLect w6 hypothesis_testing
Lect w6 hypothesis_testingRione Drevale
 
Presentation research- chapter 10-11 istiqlal
Presentation research- chapter 10-11 istiqlalPresentation research- chapter 10-11 istiqlal
Presentation research- chapter 10-11 istiqlalIstiqlalEid
 
The Seven Habits of Highly Effective Statisticians
The Seven Habits of Highly Effective StatisticiansThe Seven Habits of Highly Effective Statisticians
The Seven Habits of Highly Effective StatisticiansStephen Senn
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in StatisticsVikash Keshri
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notesBob Smullen
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss Subodh Khanal
 
7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdf7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdfezaldeen2013
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethicsAbhishek Thakur
 
teast mean one and two sample
teast mean one and two sampleteast mean one and two sample
teast mean one and two sampleMuzamil Hussain
 

Similar to Topic 2 - More on Hypothesis Testing (20)

probability.pptx
probability.pptxprobability.pptx
probability.pptx
 
Topic 3 (Stats summary)
Topic 3 (Stats summary)Topic 3 (Stats summary)
Topic 3 (Stats summary)
 
Hypothesis testing
Hypothesis testingHypothesis testing
Hypothesis testing
 
BASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdf
BASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdfBASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdf
BASIC STATISTICS AND THEIR INTERPRETATION AND USE IN EPIDEMIOLOGY 050822.pdf
 
Chapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptxChapter 18 Hypothesis testing (1).pptx
Chapter 18 Hypothesis testing (1).pptx
 
De-Mystifying Stats: A primer on basic statistics
De-Mystifying Stats: A primer on basic statisticsDe-Mystifying Stats: A primer on basic statistics
De-Mystifying Stats: A primer on basic statistics
 
Basic stat analysis using excel
Basic stat analysis using excelBasic stat analysis using excel
Basic stat analysis using excel
 
T test
T test T test
T test
 
How to do the maths
How to do the mathsHow to do the maths
How to do the maths
 
Lect w6 hypothesis_testing
Lect w6 hypothesis_testingLect w6 hypothesis_testing
Lect w6 hypothesis_testing
 
Presentation research- chapter 10-11 istiqlal
Presentation research- chapter 10-11 istiqlalPresentation research- chapter 10-11 istiqlal
Presentation research- chapter 10-11 istiqlal
 
The Seven Habits of Highly Effective Statisticians
The Seven Habits of Highly Effective StatisticiansThe Seven Habits of Highly Effective Statisticians
The Seven Habits of Highly Effective Statisticians
 
Test of significance in Statistics
Test of significance in StatisticsTest of significance in Statistics
Test of significance in Statistics
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
1. complete stats notes
1. complete stats notes1. complete stats notes
1. complete stats notes
 
univariate and bivariate analysis in spss
univariate and bivariate analysis in spss univariate and bivariate analysis in spss
univariate and bivariate analysis in spss
 
7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdf7- Quantitative Research- Part 3.pdf
7- Quantitative Research- Part 3.pdf
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
T test^jsample size^j ethics
T test^jsample size^j ethicsT test^jsample size^j ethics
T test^jsample size^j ethics
 
teast mean one and two sample
teast mean one and two sampleteast mean one and two sample
teast mean one and two sample
 

More from Ryan Herzog

Chapter 14 - Great Recession
Chapter 14 - Great RecessionChapter 14 - Great Recession
Chapter 14 - Great RecessionRyan Herzog
 
Chapter 13 - AD/AS
Chapter 13 - AD/ASChapter 13 - AD/AS
Chapter 13 - AD/ASRyan Herzog
 
Chapter 12 - Monetary Policy
Chapter 12 - Monetary PolicyChapter 12 - Monetary Policy
Chapter 12 - Monetary PolicyRyan Herzog
 
Chapter 11 - IS Curve
Chapter 11 - IS CurveChapter 11 - IS Curve
Chapter 11 - IS CurveRyan Herzog
 
Chapter 10 - Great Recession
Chapter 10 - Great RecessionChapter 10 - Great Recession
Chapter 10 - Great RecessionRyan Herzog
 
Chapter 9 - Short Run
Chapter 9 - Short RunChapter 9 - Short Run
Chapter 9 - Short RunRyan Herzog
 
Chapter 8 - Inflation
Chapter 8 - InflationChapter 8 - Inflation
Chapter 8 - InflationRyan Herzog
 
Chapter 7 - Labor Market
Chapter 7 - Labor MarketChapter 7 - Labor Market
Chapter 7 - Labor MarketRyan Herzog
 
Chapter 6 - Romer Model
Chapter 6 - Romer Model Chapter 6 - Romer Model
Chapter 6 - Romer Model Ryan Herzog
 
Chapter 5 - Solow Model for Growth
Chapter 5 - Solow Model for GrowthChapter 5 - Solow Model for Growth
Chapter 5 - Solow Model for GrowthRyan Herzog
 
Chapter 4 - Model of Production
Chapter 4 - Model of ProductionChapter 4 - Model of Production
Chapter 4 - Model of ProductionRyan Herzog
 
Chapter 3 - Long-Run Economic Growth
Chapter 3 - Long-Run Economic GrowthChapter 3 - Long-Run Economic Growth
Chapter 3 - Long-Run Economic GrowthRyan Herzog
 
Chapter 2 - Measuring the Macroeconomy
Chapter 2 - Measuring the MacroeconomyChapter 2 - Measuring the Macroeconomy
Chapter 2 - Measuring the MacroeconomyRyan Herzog
 
Topic 7 (questions)
Topic 7 (questions)Topic 7 (questions)
Topic 7 (questions)Ryan Herzog
 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)Ryan Herzog
 
Topic 6 (model specification)
Topic 6 (model specification)Topic 6 (model specification)
Topic 6 (model specification)Ryan Herzog
 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)Ryan Herzog
 
Topic 4 (binary)
Topic 4 (binary)Topic 4 (binary)
Topic 4 (binary)Ryan Herzog
 

More from Ryan Herzog (20)

Chapter 14 - Great Recession
Chapter 14 - Great RecessionChapter 14 - Great Recession
Chapter 14 - Great Recession
 
Chapter 13 - AD/AS
Chapter 13 - AD/ASChapter 13 - AD/AS
Chapter 13 - AD/AS
 
Chapter 12 - Monetary Policy
Chapter 12 - Monetary PolicyChapter 12 - Monetary Policy
Chapter 12 - Monetary Policy
 
Chapter 11 - IS Curve
Chapter 11 - IS CurveChapter 11 - IS Curve
Chapter 11 - IS Curve
 
Chapter 10 - Great Recession
Chapter 10 - Great RecessionChapter 10 - Great Recession
Chapter 10 - Great Recession
 
Chapter 9 - Short Run
Chapter 9 - Short RunChapter 9 - Short Run
Chapter 9 - Short Run
 
Chapter 8 - Inflation
Chapter 8 - InflationChapter 8 - Inflation
Chapter 8 - Inflation
 
Chapter 7 - Labor Market
Chapter 7 - Labor MarketChapter 7 - Labor Market
Chapter 7 - Labor Market
 
Chapter 6 - Romer Model
Chapter 6 - Romer Model Chapter 6 - Romer Model
Chapter 6 - Romer Model
 
Chapter 5 - Solow Model for Growth
Chapter 5 - Solow Model for GrowthChapter 5 - Solow Model for Growth
Chapter 5 - Solow Model for Growth
 
Chapter 4 - Model of Production
Chapter 4 - Model of ProductionChapter 4 - Model of Production
Chapter 4 - Model of Production
 
Chapter 3 - Long-Run Economic Growth
Chapter 3 - Long-Run Economic GrowthChapter 3 - Long-Run Economic Growth
Chapter 3 - Long-Run Economic Growth
 
Chapter 2 - Measuring the Macroeconomy
Chapter 2 - Measuring the MacroeconomyChapter 2 - Measuring the Macroeconomy
Chapter 2 - Measuring the Macroeconomy
 
Topic 7 (data)
Topic 7 (data)Topic 7 (data)
Topic 7 (data)
 
Inequality
InequalityInequality
Inequality
 
Topic 7 (questions)
Topic 7 (questions)Topic 7 (questions)
Topic 7 (questions)
 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)
 
Topic 6 (model specification)
Topic 6 (model specification)Topic 6 (model specification)
Topic 6 (model specification)
 
Topic 5 (multiple regression)
Topic 5 (multiple regression)Topic 5 (multiple regression)
Topic 5 (multiple regression)
 
Topic 4 (binary)
Topic 4 (binary)Topic 4 (binary)
Topic 4 (binary)
 

Recently uploaded

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 

Recently uploaded (20)

How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 

Topic 2 - More on Hypothesis Testing

  • 1. HYPOTHESIS TESTS. REGRESSION WITH A SINGLE REGRESSOR ECON 355 – Regression Analysis
  • 2. REVIEW • To find out the relationship between Y an X we 1. Collect a sample of data 2. Run a regression of Y on X 3. Find the beta Problem: what if the sample we collected gave us an incorrect beta and in fact there is no relationship between Y and X?
  • 3. HYPOTHESIS TESTING A BIG PICTURE REVIEW OF WHERE WE ARE GOING We want to learn about the slope of the population regression line. We have data from a sample, so there is sampling uncertainty. There are five steps towards this goal: 1. State the population object of interest 2. Provide an estimator of this population object 3. In large samples the distribution of the estimator will be normal, use that! 4. Find the standard error (estimator of the standard deviation) of the sampling distribution of the estimator and use that to conduct tests
  • 4. WHAT TESTS? • The test that the beta (slope estimator) that we found is not zero. • If in 𝑌𝑖 = 𝛽0 + 𝛽1 𝑋𝑖 + 𝑢𝑖 𝛽1 = 0 then there is no relationship between Y and X. Case closed • Basically we will assume that 𝛽1 = 0 and prove that from that assumption we are getting something that can not be true • If we do not have enough evidence to prove the above then 𝛽1 = 0 and there is no relationship between Y and X
  • 5. MORE ON STANDARD ERROR • Remember we ask a question about a population and then try to find the answer by drawing repeated samples. Example: what is the relationship between the amount of caffeinated drinks one consumes and the number of hours they sleep? The standard deviation of the betas you found is 0.24 and the mean is -0.26114 • In reality we only have one sample, hence can’t calculate the standard deviation, we will instead estimate it and call it standard error
  • 6. EXAMPLE 1. Population object of interest: the relationship between class size and test scores 𝑡𝑒𝑠𝑡𝑠𝑐𝑟𝑖 = 𝛽0 + 𝛽1 𝑆𝑇𝑅𝑖 + 𝑢𝑖 • Estimator 𝛽1, estimate -2.28 • Sample size – large?
  • 7. HYPOTHESIS TEST • We are going to assume that the relationship between class size and test score is zero (we hypothesize that 𝛽1 = 0) . The mean of the sampling distribution is then 0 • The standard error is the estimator of the standard deviation • If the estimate is too far away from the mean, this means that there is a very low chance of getting that estimate, our earlier assumption is incorrect • To calculate the distance we will compare 𝛽1−𝛽1𝐻 𝑆𝐸 (called t-statistic) to one of the t-critical values: 1.65; 1.96; 2.58
  • 8. EXAMPLE CONT’D • The standard error is 0.479 • The t-stat is then (-2.58-0)/0.479=-4.75 • This is less than all three of the critical values. • We will always pick the critical value furthest away from zero to describe the results • Hence here we will build our conclusion on -2.58 since it is the farthest from zero. • The conclusion is that the “coefficient on student-teacher ratio is statistically significant at 1%” or “we reject the null hypothesis at 1% level) • This means that the probability of falsely rejecting our assumption/hypothesis (𝛽1 = 0) given that it is true is 1% • Note that this also means that the coefficient on student-teacher ratio is statistically significant at 5% and 10%. Because it is significant at 1%, 5% and 10% significance levels are implied
  • 9. LANGUAGE • Notice that we either • Reject the null hypothesis or • Fail to reject the null hypothesis (if the estimated beta is too close to the hypothesized value of zero)/we don’t have enough evidence to reject the null hypothesis • We never accept the null hypothesis • If we fail to reject the null then we do not interpret the beta. The beta in this case is not statistically different from zero.
  • 10. EXAMPLE • Let’s imagine we are asking the same question but we get a slightly different standard error, standard error = 1.29 • What is the null hypothesis? • What is the alternative hypothesis? • What is the t-stat? • Which t-critical value should we compare it to? • What is our conclusion?
  • 11. EXAMPLE 2 • Let’s imagine we are asking the same question but we get a slightly different standard error, standard error = 1.43 • What is the null hypothesis? • What is the alternative hypothesis? • What is the t-stat? • Which t-critical value should we compare it to? • What is our conclusion?
  • 12. EXAMPLE 3 • Let’s imagine we are asking the same question but we get a slightly different standard error, standard error = 1.15 • What is the null hypothesis? • What is the alternative hypothesis? • What is the t-stat? • Which t-critical value should we compare it to? • What is our conclusion?
  • 13. T-STATS AND LEVELS OF SIGNIFICANCE • If you find the t-stat to be 1. -0.7 2. 3.25 3. 1.14 4. -1.88 5. 2.08 What corresponding levels of statistical significance would you chose?
  • 14. A NEW EXAMPLE! • We are asking what is the relationship between GDP and mortality. • What is our population of interest? Parameter? Estimator? • What is the null hypothesis? • Alternative hypothesis? • Run the regression of mortality on GDP in Stata • The standard error is printed in Stata output • What is the t-stat? • What critical value should we compare it to? • What is our conclusion? • To make your life easier, Stata also prints out the t-stat so you do not have to calculate it each time you run a regression
  • 15. DIGRESSION BUT AN IMPORTANT ONE • How do we interpret the beta on GDP? (GDP is in dollars, mortality is in infant deaths per 1000 live births) • Is this interesting? • What is the mean and standard deviation of GDP? • How can we make our interpretation sound more interesting?
  • 16. BACK TO HYPOTHESIS TESTING • Use the real estate data set, please find the t-stat and corresponding significance level in the regressions of price of a house on the • Number of bedrooms • Age of the house • Please interpret the coefficients
  • 17. P-VALUE • P-value is your best friend! • It is printed in Stata output • The smallest significance level at which the null hypothesis could be rejected, based on the test statistic actually observed • For example, p-value lower than 1 percent (0.01) means that the null hypothesis would be rejected at the 1 percent level, p-value between 0.01 and 0.05 means that the null hypothesis would be rejected at the 5 percent level
  • 19. P-VALUE, EXAMPLE • In the regression of test score on class size the P-value is 0.000. This means it is less than 0.01 (1%). Thus, we can reject the null hypothesis at 1% level • By the way, what is the null hypothesis? • If P-value is between 0.01 and 0.05 then we can reject the null hypothesis at 5% level • If P-value is between 0.05 and 0.1 then we can reject the null hypothesis at 10% level • If P-value is 0.1 or greater then we fail to reject the null • What are the p-values in the regressions of price of the house on its age and on the number of bedrooms?
  • 20. IN THE REAL WORLD • You will meet two types of people • Those who know of hypothesis testing (for example, if you go to graduate school). If you write a paper and you use regression analysis in that paper no need to discuss what your null and alternative hypotheses are. You only need to interpret statistically significant betas, mention that they are statistically significant (and at what level) and mention if betas are not statistically significant • Those who have no idea what hypothesis testing is (for example, your client at work). You only then need to interpret statistically significant betas. Make sure your interpretation is coherent
  • 21. PRACTICE • Please use California schools dataset and regress test scores on • Number of computers • Number of computers per student • Average income • Number of teachers • Based on the results of the regressions interpret the coefficients and state the level of their statistical significance
  • 22. REVIEW • What is the default hypothesized value? • What happens if we hypothesize the relationship between two variables to be something else? • T-critical values and corresponding significance levels. Please give an example. • How to use p-value. Please give an example. • Do you interpret a coefficient if it is not statistically significant?

Editor's Notes

  1. Lets imagine we had big enough samples. Then if I drew the normal curve the mean would be in the middle, betas from 90% of the samples will lie in between -1.65*standard deviation and 1.65*standard deviation. 95% of the observations will lie in between -1.96*standard deviation and 1.96*standard deviation, and 99% of the observations will lie between -2.58*sd and 2.58*sd
  2. Hopefully the sample size is large enough so that the distritbution of our beta is normal. Graph the normal distribution curve. Show that most of the observations will lie around the mean. Most of them will be zero, in fact betas from 90% of the samples will lie in between -1.65*standard deviation and 1.65*standard deviation. 95% of the observations will lie in between -1.96*standard deviation and 1.96*standard deviation, and 99% of the observations will lie between -2.58*sd and 2.58*sd
  3. If there is no s