lorehtrtjyaeyreyayydrryareyreyrgreyardu.pptx

garefed500 27 views 18 slides May 19, 2024
Slide 1
Slide 1 of 18
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18

About This Presentation

grweergrerdeer


Slide Content

Hypothesis Testing

A hypothesis is an assumption about the population parameter. A parameter is characteristic of the population, like its mean or variance . © 1984- 1994 T/Maker Co. What is a Hypothesis?

T e s t i n g of Hypothesis For testing of hypothesis we collect sample data , then we calculate sample statistics (say sample mean) and then use this information to judge/decide whether hypothesized value of population parameter is correct or not . Then we judge whether the difference is significant or not(difference between hypothesized value and sample value) The smaller the difference ,the greater the chance that our hypothesized value for the mean is correct.

The NULL Hypothesis, H The null hypothesis H represents a theory that has been put forward either because it is believed to be true or because it is used as a basis for an argument and has not been proven. For example, in a clinical trial of a new drug, the null hypothesis might be that the new drug is no better, on average, than the current drug. We would write H : there is no difference between the two drugs on an average.

Alternative Hypothesis new drug has a different effect, on average, compared to that of the current drug. We would write H A : the two drugs have different effects, on average. or H A : the new drug is better than the current drug, on average. The result of a hypothesis test: ‘Reject H in favour of H A ’ OR ‘Do not reject H ’ The alternative hypothesis, H A , is a statement of what a statistical hypothesis test is set up to establish. For example, in the clinical trial of a new drug, the alternative hypothesis that the

Selecting and interpreting significance level Deciding on a criterion for accepting or rejecting the null hypothesis. Significance l ev e l r e f ers to the percentage of the m e a ns that is outside certain prescribed limits. E.g testing a hypothesis at 5% level of significance means that we reject the null hypothesis if it falls in the two regions of area 0.025. Do not reject the null hypothesis if it falls within the region of area 0.95. 3. The higher the level of significance, the higher is the probability of rejecting the null hypothesis when it is true. (acceptance region narrows)

Critical value Critical value If our sample statistic(calculated value) fall in the non- shaded region( acceptance region), then it simply means that there is no evidence to reject the null hypothesis. (Confidence interval)

A type I error , also known as an error of the first kind , occurs when the null hypothesis ( H ) is true, but is rejected. A type I error may be compared with a so called false positive. Denoted by the Greek letter α (alpha). It is usually equals to the significance level of a test . If type I error is fixed at 5 %, it means that there are about 5 chances in 100 that we will reject H when H is true. Type I Error

Type II error , also known as an error of the second kind , occurs when the null hypothesis is false, but incorrectly fails to be rejected. Type II error means accepting the hypothesis which should have been rejected . A type II error may be compared with a so-called False Negative. A type II error occurs when one rejects the alternative hypothesis ( fails to reject the null hypothesis ) when the alternative hypothesis is true. The rate of the type II error is denoted by the Greek letter β (beta) and related to the power of a test (which equals 1- β ) . Type II Error

Example 1 - Court Room Trial In court room, a defendant is considered not guilty as long as his guilt is not proven. The prosecutor tries to prove the guilt of the defendant. Only when there is enough charging evidence the defendant is condemned. In the start of the procedure, there are two hypotheses H : "the defendant is not guilty", and H 1 : "the defendant is guilty". The first one is called null hypothesis , and the second one is called alternative (hypothesis) .

Suppose the null hypothesis, H0, is: Frank's rock climbing equipment is safe. Type I error: Frank thinks that his rock climbing equipment may not be safe when, in fact, it really is safe. Type II error: Frank thinks that his rock climbing equipment may be safe when, in fact, it is not safe. α = probability that Frank thinks his rock climbing equipment may not be safe when, in fact, it really is safe. β=probability that Frank thinks his rock climbing equipment may be safe when, in fact, it is not safe. Notice that, in this case, the error with the greater consequence is the Type II error. (If Frank thinks his rock climbing equipment is safe, he will go ahead and use it.) Example 2

Suppose the null hypothesis, H0, is: The victim of an automobile accident is alive when he arrives at the emergency room of a hospital. Type I error: The emergency crew thinks that the victim is dead when, in fact , the victim is alive. Type II error: The emergency crew does not know if the victim is alive when, in fact, the victim is dead. α=probability that the emergency crew thinks the victim is dead when, in fact, he is really alive =P(Type I error) β= probability that the emergency crew does not know if the victim is alive when, in fact, the victim is dead =P(Type II error ) The error with the greater consequence is the Type I error. (If the emergency crew thinks the victim is dead, they will not treat him.) Example 3

Example 4 It’s a Boy Genetic Labs claim to be able to increase the likelihood that a pregnancy will result in a boy being born. Statisticians want to test the claim. Suppose that the null hypothesis, H0 , is: It’s a Boy Genetic Labs has no effect on gender outcome. Type I error: This results when a true null hypothesis is rejected. In the context of this scenario, we would state that we believe that It’s a Boy Genetic Labs influences the gender outcome, when in fact it has no effect. The probability of this error occurring is denoted by the Greek letter alpha, α Type II error: This results when we fail to reject a false null hypothesis. In context, we would state that It’s a Boy Genetic Labs does not influence the gender outcome of a pregnancy when, in fact, it does. The probability of this error occurring is denoted by the Greek letter beta, β The error of greater consequence would be the Type I error since couples would use the It’s a Boy Genetic Labs product in hopes of increasing the chances of having a boy.

Reducing Type I Errors Prescriptive testing is used to increase the level of confidence, which in turn reduces Type I errors. The chances of making a Type I error are reduced by increasing the level of confidence.

Reducing Type II Errors Descriptive testing is used to better describe the test condition and acceptance criteria, which in turn reduces Type II errors. This increases the number of times we reject the Null hypothesis – with a resulting increase in the number of Type I errors (rejecting H0 when it was really true and should not have been rejected). Therefore, reducing one type of error comes at the expense of increasing the other type of error! THE SAME MEANS CANNOT REDUCE BOTH TYPES OF ERRORS SIMULTANEOUSLY!

Therefore, reducing one type of error comes at the expense of increasing the other type of error! THE SAME MEANS CANNOT REDUCE BOTH TYPES OF ERRORS SIMULTANEOUSLY!

Thank you