Top Banner
MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference
45

MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

Jan 04, 2016

Download

Documents

Marcia Fletcher
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

MBA Statistics 51-651-00

COURSE #2

Do we have winning conditions?Decision making from statistical inference

Page 2: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

2

Very often, a decision is taken following a quantitative analysis of certain parameters.

You are proposed two advertising concepts to launch a new product. You will choose the one which will obtain the best score of effectiveness in your targeted market.

If the resistance or the average durability of a new product is significantly larger than the one of the best competing product, you will put this product on the market.

If the « winning conditions » were present and more than 50% of people in Quebec voted yes in a referendum for sovereignty, then Bernard Landry would make the decision to hold one.

Page 3: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

3

In general, the parameters which interest us are estimated using a sample and our decision will be made following a hypothesis test.

Example: We ask 1000 residents of the Province of Quebec, chosen at random who have the right to vote, if today, they would vote yes in a Quebec referendum on sovereignty.

Page 4: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

4

What would Bernard Landry do if:

432 voters voted yes? (432/1000 = 43.2%)

• He would most probably not hold a referendum.

517 voters voted yes? (517/1000 = 51.7%)

• Is 51.7 % significantly larger than 50%?

612 voters voted yes? (612/1000 = 61.2%)

• 61.2% is probably significantly larger than 50%. Therefore he would decide to hold a referendum on the sovereignty of Quebec.

Page 5: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

5

Basic notions of hypothesis tests

To help us decide (especially in case 2 of the previous slide), we will try to quantify the term «significantly different », statistically speaking, by associating a probability of error with it.

In other words, we want to know, starting from the results obtained in the sample, what is the probability that the Premier is making a mistake deciding to hold a referendum on sovereignty.

Page 6: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

6

Basic notions of hypothesis tests (cont’d.)

If the probability of making a mistake is small (for example, lower than 5%) he will then decide to hold a referendum on sovereignty soon.

If this probability is large (for example, higher than 5%) he will then wait a certain time to have « winning conditions » and to hold a referendum.

Page 7: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

7

Basic notions of hypothesis tests(cont’d)

There are essentially two possibilities:1. 50% or less of the voters would vote yes if a

referendum took place today;2. more than 50% of the voters would vote

yes. The first possibility is called the null

hypothesis (noted H0). The second possibility is called the

alternate hypothesis (noted H1).

Page 8: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

8

Notation: Let « p » be the true proportion of voters

who would vote yes at a referendum. We then have the following two possibilities :

H0: p 50% vs H1: p > 50%

Often, the alternate hypothesis is what we want to show «  in any reasonable doubt! » i.e. we want the probability of making a mistake by making the decision H1 starting from the results of the sample, to be small.

Page 9: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

9

Choosing H1

The choice of H1 is determined by the question you need to answer.

H1 must be chosen in such a way that you can answer yes (resp. no) to the question if one accepts H1 and you can answer no (resp. yes) if one accepts H0.

Typically there are three choices for H1 : > 0, < 0 or ≠ 0

Page 10: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

10

Choosing H1 (continued)

The question Bernard Landry is asking himself is: Do I have a chance of winning?

H1: p < ½ is not good. If one accepts H0 then one can conclude that p ≥ ½ so the answer to his question is not yes or no! The same is true for the choice H1: p ≠ ½.

But H1: p > ½ is the right choice. If H1 is accepted, the answer is yes while if H0 is accepted, then p ≤ ½ so the answer is no.

Page 11: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

11

Possible errors in decision making starting from a sample:

Type I error: To reject H0 in favour of H1 (i.e. to take the

decision H1) when actually H0 is true. The probability of Type I error is the

probability that we have observed the « value » obtained in our sample, or a value even « further away » from H0 , if H0 is true. In statistical jargon, this probability is often called «p-value ». 

Type II error: Not rejecting H0 in favour of H1 when actually

H1 is true.

Page 12: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

12

Is the defendant guilty or not guilty?

Jury decision

H0 not

guilty

H1 guilty

H0 not

guilty

Type I Error

Truth

H1 guilty

Type II Error

Page 13: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

13

Control of Type I and Type II errors

Given the results obtained in the sample, we calculate the probability of Type I error (p-value).

If this probability is relatively small (for example p-value < 5%), then we will reject H0 to make the decision H1. If not,

we will not reject H0.

Page 14: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

14

P-value Measures the confidence you should

have about H0

A small p-value indicates that you should be less confident in H0

How small the p-value should be to reject H0 in favor of H1?

It depends on you… Illustration: p-value.xls

Page 15: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

15

Real life analog One of your friend just lied to you. Is

he still your friend? Then he lies again, and again, and

again? When will you stop considering

him/her as a friend?

Page 16: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

16

Control of Type I and Type II errors (continued)

For a type I error fixed in advance (ex. 5%), we control, using the sample size, the type II error before undertaking the study.

We define the power of the hypothesis test as the quantity:( 1 - probability of a type II error )

Page 17: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

17

In the next few hours, we will see basic statistical tests:

1. Test of a proportion.2. Test of a mean.3. Test of a difference between two

means from the same sample (similar to case 2).

Page 18: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

18

1. Test of a proportion:

Example: Two years ago, a company put a new product on the market.

The top management of the firm plans to increase expense if less than 70% of the population know the product.

Page 19: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

19

What are the possible hypotheses we want to examine?

Let « p » be the true proportion of individuals in the population who know the product and « p0  » the value which corresponds to our hypothesis or decision making (p0 = 70% in the previous example). We have to choose between :

H0 : p p0 vs H1 : p > p0 (right-tailed test)

H0 : p p0 vs H1 : p < p0 (left-tailed test)

H0 : p = p0 vs H1 : p p0 (two-tailed test)

Page 20: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

20

One must choose the hypothesis H1 so that the answer to the question is yes or no.

In this case, the question is: should we increase advertising expenses?

Page 21: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

21

H0 : p 70% vs H1 : p > 70%

If H1 is accepted, the answer is No. If H0, is accepted, the answer is NYES!

H1 : p > 70% is not appropriate.

Page 22: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

22

H0 : p = 70% vs H1 : p 70%

If H0 is accepted, the answer is No. If H1is accepted, the answer is NYES!

H1 : p 70% is not appropriate.

Page 23: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

23

H0 : p 70% vs H1 : p < 70%

If H0 is accepted, the answer is No.

If H1 is accepted, the answer is Yes!

H1 : p < 70% is the appropriate choice.

Page 24: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

24

Procedure :

We take a sample of n individuals in the target population, and we calculate the proportion of individuals who know the product.

We will reject the null hypothesis H0, at the level, if we have sufficient proof against it, i.e. enough evidence in favour of the alternate hypothesis H1, i.e. p-value < .

Page 25: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

25

The test statistic is given by :

If the null hypothesis H0 is true and the sample size is large, the statistic z will approximately follow a normal distribution with mean 0 and variance 1 [ denoted N(0,1) ].

Page 26: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

26

In order to make a decision, we calculate the p-value

Right-tailed test:

p-value = Prob[N(0,1) > z]

Left-tailed test:

p-value = Prob[N(0,1) < z]

Two-tailed test:

p-value = 2 x Prob[N(0,1) > |z|]

The p-value is calculated with proportion-1t.xls

Page 27: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

27

The company contacted by telephone 500 people from the target population

330 individuals answer that they know the product (330/500 = 66%).

H0 : p 70% vs H1 : p < 70%

p-value = 0.0255 We reject H0 (or accept H1) at level 5%.

Therefore we will make the decision to rise the advertising budget for this product.

9518.1

500)70.01(70.0

70.066.0

z

Page 28: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

28

Intentions to vote example: We choose at random 1000 residents of Quebec that

have the right to vote and ask them if today, they would vote yes in a referendum on sovereignty. In the sample, 517 voters answered that they would vote yes. H0: p 50% vs H1: p > 50%

p-value = 0.1411 We will not reject H0 at the 5% level Bernard Landry will not hold a referendum in a near

future.

Page 29: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

29

Intentions to vote example: We choose at random 1000 residents of Quebec that

have the right to vote and ask them if today, they would vote yes in a referendum on sovereignty. In the sample, 612 voters answered that they would vote yes. H0: p 50% vs H1: p > 50%

p-value = 1.1146E-12 We will reject H0 at the 5% level Bernard Landry will hold a referendum in a near

future.

0203.7

1000)5.01(5.0

5.0612.0 z

Page 30: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

30

Exercise Recall the last example in the

estimation section.

Can you now answer the question satisfactorily?

Page 31: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

31

Remark: Test vs Confidence interval

Testing H0 : p = p0 vs H1 : p p0 is equivalent to constructing a confidence interval for p0.

H0 is rejected iff p0 is not in the interval.

Page 32: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

32

2. Test of one mean Example:You are in charge of the department which manufactures and produces 170 g bags of chips (brand CCC). To verify if, on average, the process of filling is maintained at 170 g, each day one of your employees is asked to take a random sample of 100 bags and the average weight of the sample is calculated. The process of filling will be stopped if the average weight is significantly different from 170 g.

Page 33: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

33

What are the possible hypotheses we want to examine?

Let «  » be the true mean of a characteristic in the population. This mean is unknown, as is the variance 2. Let « 0  » be the value of the mean which corresponds to our hypothesis or decision making (0=170g in the previous example ). We have to choose between: H0 : 0 vs H1 : > 0 (right-tailed test )

H0 : 0 vs H1 : < 0 (left-tailed test )

H0 : = 0 vs H1 : 0 (two-tailed test)

Page 34: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

34

Procedure:

We take a sample of size n in the target population and we calculate the mean and the standard deviation s.

We will reject the null hypothesis H0, at the level, if we have sufficient proof against it, i.e. enough evidence in favour of the alternate hypothesis H1, i.e. p-value < .

Page 35: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

35

The test statistic is given by:

If the null hypothesis H0 is true, the t statistic will follow a Student distribution with n-1 degrees of freedom [noted t(n-1)].

Page 36: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

36

In order to make a decision, we calculate p-value.

Right-tailed test:p-value=Prob[ t(n-1) > t ]

Left-tailed test :p-value=Prob[ t(n-1) < t ]

Two-tailed test :

p-value= 2 x Prob[ t(n-1) > |t| ]

(1-) confidence interval for :

The p-value is calculated using mean-1t.xls

X nst(n-1);

2

Page 37: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

37

Example:

The sample mean of the 100 bags of chips is 169.9 grams and the standard deviation s=0.27.

H0: = 170g vs H1: 170g

p-value = 0.0003 We reject H0 without being afraid of being wrong! 95% confidence interval for :

[169.846 ; 169.953] The interval does not contain the value 170

We reject H0 at the 5% level

Page 38: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

38

If the mean of the sample of 100 bags of chips is 170.011 grams and the standard deviation s = 0.27.

H0: = 170g vs H1: 170g

p-value = 0.69We will not reject H0 95% confidence interval for : [169.957 ; 170.064]The interval contains the value 170 we will not reject H0 at the 5% level

Page 39: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

39

Case study

The average annual salary of a group of employees in a city is 45 000$. One of the main issue of the negotiations is that the representative of the union states that this particular group is paid much lower than in other comparable cities.

One decides to verify that hypothesis. If the union is right, the employer will increase the salaries in such a way that the average salary will not be significantly lower than in the other cities. Both parties agree to take a risk of 5%.

Page 40: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

40

Case study (continued)

To perform the comparison, 50 comparable cities were chosen at random, the mean of the 50 (average) annual salaries was 50000$, and the standard deviation was 16 000$.

a)   What is the conclusion?

b) The city proposes to increase to average annual salary to 46 500$. Is it honest?

Page 41: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

41

Remark: Test vs Confidence interval

Testing H0 : vs H1 : is equivalent to constructing a confidence interval for

H0 is rejected if is not in the interval.

Page 42: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

42

3. Test of a difference of two means from the same sample

Example:The human resources director of a company wants to suggest that the management implement a special training program for the employees assigned to the assembling department. To evaluate the effectiveness of this 3-week program, we chose, at random, 15 employees and we observed the number of parts assembled during this period of time. Thereafter, these 15 employees participated in the training program and once again, we observed the number of parts assembled during the same period of time.

Page 43: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

43

The results obtained (hr.xls) were as follow:

individual before after difference

1 15 17 2 2 13 16 3 3 8 10 2 4 9 9 0 5 7 9 2 6 12 13 1 7 11 14 3 8 12 15 3 9 11 14 3 10 9 11 2 11 10 14 4 12 12 11 -1 13 11 13 2 14 7 10 3 15 12 13 1

Page 44: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

44

The results of the statistical analysis using Excel were as follow:

Page 45: MBA Statistics 51-651-00 COURSE #2 Do we have winning conditions? Decision making from statistical inference.

45

Thus, the average productivity is significantly higher after the program. If the costs of the training program are less than the profits in productivity, then the program will be adopted.

This test is equivalent to a test of the mean difference between after and before:

X-bar Mu0 n s t statictic p-value Confidence CI: lower limit CI: upper limit2-tailed test level

2 0 15 1.309 5.916 0.0000 95.0% 1.3 2.7p-value

for H1: Mu > Mu0

0.0000p-value

for H1: Mu < Mu0

1.0000

T test for a mean (unknown sigma)