Statistik II - Exercise session &

Similar documents
The Purpose of Hypothesis Testing

HYPOTHESIS TESTING SAMPLING DISTRIBUTION. the sampling distribution for di erences of means is. 2 is known. normal if.

HYPOTHESIS TESTING SAMPLING DISTRIBUTION

Introductory Econometrics

Political Science 236 Hypothesis Testing: Review and Bootstrapping

CHAPTER 9, 10. Similar to a courtroom trial. In trying a person for a crime, the jury needs to decide between one of two possibilities:

Definition 3.1 A statistical hypothesis is a statement about the unknown values of the parameters of the population distribution.

Hypothesis Testing: One Sample

MTMS Mathematical Statistics

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

CH.9 Tests of Hypotheses for a Single Sample

Tests about a population mean

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

Introductory Econometrics. Review of statistics (Part II: Inference)

Announcements. Unit 3: Foundations for inference Lecture 3: Decision errors, significance levels, sample size, and power.

Statistical Inference

Mathematical Statistics

9-7: THE POWER OF A TEST

Null Hypothesis Significance Testing p-values, significance level, power, t-tests Spring 2017

Sampling Distributions: Central Limit Theorem

CHAPTER 8. Test Procedures is a rule, based on sample data, for deciding whether to reject H 0 and contains:

8.1-4 Test of Hypotheses Based on a Single Sample

Chapter 12: Inference about One Population

280 CHAPTER 9 TESTS OF HYPOTHESES FOR A SINGLE SAMPLE Tests of Statistical Hypotheses

What p values really mean (and why I should care) Francis C. Dane, PhD

Partitioning the Parameter Space. Topic 18 Composite Hypotheses

Roberto s Notes on Linear Algebra Chapter 1: Geometric vectors Section 8. The dot product

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

Review. December 4 th, Review

Statistical Inference

Parameter Estimation, Sampling Distributions & Hypothesis Testing

Hypotheses Test Procedures. Is the claim wrong?

Chapter 5: HYPOTHESIS TESTING

ECO220Y Review and Introduction to Hypothesis Testing Readings: Chapter 12

M(t) = 1 t. (1 t), 6 M (0) = 20 P (95. X i 110) i=1

Hypothesis Test. The opposite of the null hypothesis, called an alternative hypothesis, becomes

Econ 325: Introduction to Empirical Economics

Empirical Risk Minimization Algorithms

Summary: the confidence interval for the mean (σ 2 known) with gaussian assumption

exp{ (x i) 2 i=1 n i=1 (x i a) 2 (x i ) 2 = exp{ i=1 n i=1 n 2ax i a 2 i=1

Hypothesis Testing and Confidence Intervals (Part 2): Cohen s d, Logic of Testing, and Confidence Intervals

STAT 135 Lab 5 Bootstrapping and Hypothesis Testing

Chapters 10. Hypothesis Testing

4 Hypothesis testing. 4.1 Types of hypothesis and types of error 4 HYPOTHESIS TESTING 49

Section 6.2 Hypothesis Testing

Introduction to Probability with MATLAB Spring 2014

Testing Research and Statistical Hypotheses

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

Chapter 7: Hypothesis Testing - Solutions

Mathematical statistics

Statistical inference

Chapters 10. Hypothesis Testing

NON-PARAMETRIC METHODS IN ANALYSIS OF EXPERIMENTAL DATA

POLI 443 Applied Political Research

Lecture Testing Hypotheses: The Neyman-Pearson Paradigm

Relating Graph to Matlab

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

Lecture notes on statistical decision theory Econ 2110, fall 2013

Section 10.1 (Part 2 of 2) Significance Tests: Power of a Test

Hypothesis Testing. ECE 3530 Spring Antonio Paiva

PAC-learning, VC Dimension and Margin-based Bounds

Section 9.1 (Part 2) (pp ) Type I and Type II Errors

Final Exam (Solution) Economics 501b Microeconomic Theory

Null Hypothesis Significance Testing p-values, significance level, power, t-tests

Difference between means - t-test /25

Economics 520. Lecture Note 19: Hypothesis Testing via the Neyman-Pearson Lemma CB 8.1,

HYPOTHESIS TESTING. Hypothesis Testing

STAT 515 fa 2016 Lec Statistical inference - hypothesis testing

Scalar multiplication and algebraic direction of a vector

Permutation Tests. Noa Haas Statistics M.Sc. Seminar, Spring 2017 Bootstrap and Resampling Methods

Hypothesis Testing One Sample Tests

Math 494: Mathematical Statistics

PSY 307 Statistics for the Behavioral Sciences. Chapter 20 Tests for Ranked Data, Choosing Statistical Tests

Quantitative Methods for Economics, Finance and Management (A86050 F86050)

44.2. Two-Way Analysis of Variance. Introduction. Prerequisites. Learning Outcomes

Chi-Squared Tests. Semester 1. Chi-Squared Tests

SMAM 314 Exam 3d Name

STAT Chapter 8: Hypothesis Tests

Hypothesis testing: Steps

20 Hypothesis Testing, Part I

Wilcoxon Test and Calculating Sample Sizes

Problem Set 4 - Solutions

Hypothesis Testing. ) the hypothesis that suggests no change from previous experience

STAT 135 Lab 9 Multiple Testing, One-Way ANOVA and Kruskal-Wallis

Preliminary Statistics. Lecture 5: Hypothesis Testing

The t-distribution. Patrick Breheny. October 13. z tests The χ 2 -distribution The t-distribution Summary

Mathematical statistics

Statistik II - Exercise session &

Harvard University. Rigorous Research in Engineering Education

Probability. We will now begin to explore issues of uncertainty and randomness and how they affect our view of nature.

Hypothesis testing: Steps

Let us first identify some classes of hypotheses. simple versus simple. H 0 : θ = θ 0 versus H 1 : θ = θ 1. (1) one-sided

Estadística I Exercises Chapter 4 Academic year 2015/16

Week 12 Hypothesis Testing, Part II Comparing Two Populations

2. What are the tradeoffs among different measures of error (e.g. probability of false alarm, probability of miss, etc.)?

Statistical Inference. Hypothesis Testing

41.2. Tests Concerning a Single Sample. Introduction. Prerequisites. Learning Outcomes

ANOVA - analysis of variance - used to compare the means of several populations.

Hypotheses and Errors

Please give details of your answer. A direct answer without explanation is not counted.

Transcription:

Statistik II - Exercise session 6 7.1.2015 & 14.1.2015 Info Classroom: SPA1 203 Time: Wednesdays, 16:15-17:45 in English Assignments on webpage (lb>staff>pb) Contact: Petra Burdejoa petra.burdejoa@hu-berlin.de Office: SPA1 R400 (upon agreement) Schedule: Date Week Exercises 15.10.14 E1 4-11, 4-18, 4-19 22.10.14 E1 4-11, 4-18, 4-19 29.10.14 E2 5-6, 5-10, 5-11, 5-14,5-16 5.11.14 E2 5-6, 5-10, 5-11, 5-14,5-16 12.11.14 E3 5-16, 5-21, 5-23, 6-1 19.11.14 E3 5-16, 5-21, 5-23, 6-1 26.11.14 E4 6-3, 6-9, 6-13, 7-1 03.12.14 E4 6-3, 6-9, 6-13, 7-1 10.12.14 E5 7-3, 7-5, 7-26, 7-45 17.12.14 E5 7-3, 7-5, 7-26, 7-45 07.01.15 E6 (7-45), 8-1, 8-4, 8-7 14.01.15 E6 (7-45), 8-1, 8-4, 8-7 21.01.15 E7 TBA 28.01.15 04.02.15 E8 Reiew for exam 11.02.15 E8 Reiew for exam 1

Reiew week 11 & week 12 Slides: Testing of Hypotheses Statistical hypothesis - A statement about the parameters describing a population (not a sample). Null hypothesis (H 0 ) - A simple hypothesis associated with a contradiction to a theory one would like to proe. Statistic - A sample function V = V (X 1,..., X n ), often to summarize the sample for comparison purposes. Region of rejection / Critical region -The set of alues of the test statistic for which the null hypothesis is rejected. Critical alue -The threshold alue delimiting the regions of acceptance and rejection for the test statistic.!notation: H 1 - reject H 0 H 0 - not reject H 0 H 1 H 0 - reject H 0 when it is true H 0 H 1 - not reject H 0 when H 1 is not true Power of a test (1β) - The test s probability of correctly rejecting the null hypothesis. The complement of the false negatie rate, β=p( H 0 H 1 ). Size / Significance leel of a test (α) For simple hypotheses, this is the test s probability of incorrectly rejecting the null hypothesis. P( H 1 H 0 ) Type I. Error - reject H 0 when it is true Type II. Error - not rejecting H 0 when it is wrong Test Null hypothesis H 0 Alternatie hypothesis H 1 Both-sided ϑ = ϑ 0 ϑ ϑ 0 One-sided (left-sided ) ϑ ϑ 0 ϑ > ϑ 0 Test for µ Variance σ 2 known unknown Test statistic V X µ 0 X µ 0 S/ n X i N(µ; σ) n 30 N(0, 1) t n 1 n > 30 N(0, 1) any distr. n > 30 N(0, 1) Note: t-distribution as a result of normal / chi-squared / sqrt(n) 2

Zweiseitiger Test: H 0 : ϑ = ϑ 0 s. H 1 : ϑ ϑ 0 Nicht-Ablehnungsbereich H 0 Ablehnungsbereich H 0 Teststatistik V f() c o ϑ 0 c u Rechtsseitiger Test: H 0 : ϑ ϑ 0 s. H 1 : ϑ > ϑ 0 Teststatistik V Nicht-Ablehnungsbereich H 0 Ablehnungsbereich H 0 f() ϑ 0 c Linksseitiger Test: H 0 : ϑ ³ ϑ 0 s. H 1 : ϑ < ϑ 0 Nicht-Ablehnungsbereich H 0 Ablehnungsbereich H 0 Teststatistik V f() c ϑ 0 Zweiseitiger Test: H 0 : ϑ = ϑ 0 s. H 1 : ϑ ϑ 0 Fehler 1. Art: α=p("h 1" H 0) Fehler 2. Art: β=p("h 0" H 1) V ϑ 1 Teststatistik V ϑ 0 f() c o ϑ 1 ϑ 0 c u Rechtsseitiger Test: H 0 : ϑ ϑ 0 s. H 1 : ϑ > ϑ 0 Fehler 1. Art: α=p("h 1" H 0) Fehler 2. Art: β=p("h 0" H 1) V ϑ 1 Teststatistik V ϑ 0 f() ϑ 1 ϑ 0 c Linksseitiger Test: H 0 : ϑ ³ ϑ 0 s. H 1 : ϑ < ϑ 0 Fehler 1. Art: α=p("h 1" H 0) Fehler 2. Art: β=p("h 0" H 1) V ϑ 1 Teststatistik V ϑ 0 f() c ϑ 1 ϑ 0 3

Power function function of parameter, giing probability of rejection (based on the settings of hypothesis) G(ϑ) = P ( H 1 ϑ) with { G(ϑ) α for all ϑ Θ0 G(ϑ) = 1 β(ϑ) for all ϑ Θ 1 Power function for test of µ 1 [ ( P V z 1 α µ µ 0 2 G(µ) for left-sided Test ( P V < z 1 α µ µ ) 0 G(µ) for both-sided Test ) P ( V < z 1 α 2 µ µ 0 )] G(µ) for right-sided Test ( 1 P V z 1 α µ µ ) 0 4

Exercises Exercise 8-1 - Special refrigerators A company produces special refrigerators to consere certain goods. The wished temperature for that type of refrigerators is -25 degrees. When goods are insufficiently cooled, they go bad ery easily and since the client base of the company is not big, a defectie products would cause the worst case-the ruin of the company. That is why the cooling performance of 100 randomly chosen produced refrigerators shall be tested on a significance leel of 2,275% in order to decide whether the production can be carried on or if constructional changes on the refrigerators need to be made. Experience shows that the cooling temperature is normally distributed with standard deiation 2 degrees of Celsius. a) What are the hypotheses for this test? Justify. b) Formulate the underlying sample function formally and erbally and gie its distribution under H 0. c) What is the testing function and what is its distribution under H 0? d) Determine the region of rejection. e) Determine the alue of power function if the true mean of cooling temperature is: i) -24,8 ii) -25,8 iii) -29,0 degrees. f) Sketch the power function. g) Random sampling yielded a mean of cooling temperature of -26 degrees and standard deiation 1,5 degrees. i) What is the test decision? ii) Interpret the test result in an exact way statistically as well as from context point of iew. h) Random sampling yielded a mean of cooling temperature of -25,3 degrees. i) What is the test decision? ii) Interpret the test result in an exact way statistically as well as from context point of iew. iii) Which mistake can be made by taking this test decision? i) What is the probability that this mistake has really been made? ) How big is the probability to make this mistake when using this test procedure and the real µ is -29 degrees? i) Why is it sufficient fo one-sided test to consider under the null hypothesis only the case µ = µ 0? 5

Exercise 8-4 - Aerage weight A supermarket has chickens with aerage weight 1400g at a certain price. A dealer now makes an offer to delier chickens of the same aerage weight for a lower unit price. Buyers/Customers C1 and C2 both know that the chicken weight is normally distributed, belieing that the low price is due to a low aerage weight too. C1 then weights from 25 randomly selected chickens. It turns out that the arithmetic mean deiates from the target weight by -9 grams and standard deiation was found to be 50g. The significance leel of test shall be 5 %. a) Customer proides the following hypotheses: H 0 : µ µ 0 (= 1400) and H A : µ < µ 0 (= 1400). What is the risk to keep small in this hypothesis formulation? b) State the sample function suitable for testing and erbalize. c) Gie the distribution and parameters under assumption that H 0 is true. d) What is the test function and how is it distributed under H 0? e) Determine the region of acceptance and rejection. f) What is C1 decision? g) What is the error C1 may hae made? C2 takes a second random sample of n = 25 which results in an aerage weight 1381g and the same standard deiation. a) What is C2 decision? b) What is the error C2 may hae made? Exercise 8-7 - Heay-weight boxer Two boxers Jim Knockout and Bill Uppercut are both the world s best boxer. A plaster company wants to offer the world s best boer an adertisement contract worth 1 Million Euro. The Chef of this company beliees that Jim Knockout is the better boxer. To proof this hypothesis statistically, the chef organizes 11 fights between both boxers. In each fight there will be winner. (Ties are excluded.) a) Formulate the hypothesis. b) Define the test function. c) How is test function distributed? d) Determine accepting and rejecting regions for this test. e) How do you decide this test, if Jim Knockout looses 3 fights? f) Could you hae made an error in your decision? If yes, which one? g) The company plans to publish the test result in a short and comprehensie form. Formulate this press release. 6