Presentation is loading. Please wait.

Presentation is loading. Please wait.

Statistics Confidence Intervals

Similar presentations


Presentation on theme: "Statistics Confidence Intervals"โ€” Presentation transcript:

1 Statistics Confidence Intervals

2 Confidence Intervals We will use the sample mean ๐’™ to estimate the unknown population mean ยต

3 Confidence Intervals Using the sample mean ๐’™ to estimate the unknown population mean ยต is called โ€œmaking inferencesโ€

4 Confidence Intervals If you can assume the distribution of the sample means is normal, you can use the normal distribution probabilities for making probability statements about ยต

5 as โ€œnโ€ increases, variability (spread) also decreases
Confidence Intervals as โ€œnโ€ increases, variability (spread) also decreases

6 Confidence Intervals We use: s/ n for the measure of variability in the new population of ๐’™ s

7 Confidence Intervals The standard deviation of the ๐’™ s: s/ n is called the โ€œstandard errorโ€ abbreviated โ€œseโ€

8 Confidence Intervals ๐’™ -3se ๐’™ -2se ๐’™ -se ๐’™ ๐’™ +se ๐’™ +2se ๐’™ +3se
So our normal curve for the true value of the population mean ยต is: ๐’™ -3se ๐’™ -2se ๐’™ -se ๐’™ ๐’™ +se ๐’™ +2se ๐’™ +3se

9 Confidence Intervals About 95% of the possible values for ฮผ will be within 2 SE of ๐’™

10 Inferences About ฮผ Although our normal curve graphs the ๐’™ s, we will use it to make inferences about what value ฮผ actually has

11 This allows us to create a โ€œconfidence intervalโ€ for values of ฮผ
Confidence Intervals This allows us to create a โ€œconfidence intervalโ€ for values of ฮผ

12 Confidence Intervals Confidence interval formula: ๐’™ - 2s/ n โ‰ค ฮผ โ‰ค ๐’™ + 2s/ n or ๐’™ - 2se โ‰ค ฮผ โ‰ค ๐’™ + 2se With a confidence level of 95%

13 The โ€œ2โ€ in the equations is called the โ€œcritical valueโ€
Confidence Intervals The โ€œ2โ€ in the equations is called the โ€œcritical valueโ€

14 It comes from the normal curve, which gives us the 95%
Confidence Intervals It comes from the normal curve, which gives us the 95%

15 2s/ n or 2se is called the โ€œmargin of errorโ€
Confidence Intervals 2s/ n or 2se is called the โ€œmargin of errorโ€

16 What if we wanted a confidence level of 99%
CONFIDENCE INTERVALS PROJECT QUESTION What if we wanted a confidence level of 99%

17 CONFIDENCE INTERVALS PROJECT QUESTION What if we wanted a confidence level of 99% Weโ€™d use a value of โ€œ3โ€ rather than 2

18 Confidence Intervals For most scientific purposes, 95% is โ€œgood-enuffโ€ In the law, 98% is required for a criminal case In medicine, 99% is required

19 Confidence Intervals For a 95% confidence interval, 95% of the values of ฮผ will be within 2se of ๐’™

20 Confidence Intervals If we use the confidence interval to estimate a likely range for true values of ฮผ, we will be right 95% of the time

21 For a 95% confidence interval, we will be WRONG 5% of the time
Confidence Intervals For a 95% confidence interval, we will be WRONG 5% of the time

22 For a 99% confidence interval, how much of the time will we be wrong?
CONFIDENCE INTERVALS PROJECT QUESTION For a 99% confidence interval, how much of the time will we be wrong?

23 CONFIDENCE INTERVALS PROJECT QUESTION For a 99% confidence interval, how much of the time will we be wrong? we will be wrong 1% of the time

24 Confidence Intervals The percent of time we are willing to be wrong is called โ€œฮฑโ€ (โ€œalphaโ€) or โ€œthe ฮฑ-levelโ€

25 Confidence Intervals Everyday use of confidence intervals: You will frequently hear that a poll has a candidate ahead by 10 points with a margin of error of 3 points

26 Confidence Intervals This means: 10-3 โ‰ค true difference โ‰ค 10+3 Or, the true difference is between 7 and 13 points (with 95% likelihood)

27 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 Can we assume normality?

28 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 Can we assume normality? yes, because n>20

29 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the ฮฑ-level?

30 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the ฮฑ-level? 5%

31 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the critical value?

32 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the critical value? 2, because we want a 95% confidence interval

33 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the standard error?

34 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the standard error? s/ n = 5/ 25 = 5/5 = 1

35 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the margin of error?

36 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the margin of error? 2se = 2(1) = 2

37 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the confidence interval?

38 CONFIDENCE INTERVALS PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 25 What is the confidence interval? ๐’™ - 2s/ n โ‰ค ฮผ โ‰ค ๐’™ + 2s/ n 7 โ€“ 2 โ‰ค ฮผ โ‰ค โ‰ค ฮผ โ‰ค 9 with 95% confidence

39 CONFIDENCE INTERVALS PROJECT QUESTION Interpreting confidence intervals: If the 95% confidence interval is: 5 โ‰ค ยต โ‰ค 9 Is it likely that ยต = 10?

40 CONFIDENCE INTERVALS PROJECT QUESTION No, because itโ€™s outside of the interval That would only happen 5% of the time

41 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 Can we assume normality?

42 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 Can we assume normality? no, because n<20-30

43 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 Can we assume normality? no, because n<20-30 But if the data is normal-ish, we can!

44 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the ฮฑ-level?

45 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the ฮฑ-level? 5%

46 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the critical value?

47 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the critical value? 2, because we want a 95% confidence interval

48 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the standard error?

49 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the standard error? s/ n = 5/ 16 = 5/4 = 1.25

50 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the margin of error?

51 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the margin of error? 2se = 2(1.25) = 2.5

52 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the confidence interval?

53 Confidence Intervals PROJECT QUESTION Find a 95% confidence interval for ฮผ given: ๐’™ = 7 s = 5 n = 16 What is the confidence interval? ๐’™ - 2s/ n โ‰ค ฮผ โ‰ค ๐’™ + 2s/ n 7 โ€“ 2.5 โ‰ค ฮผ โ‰ค โ‰ค ฮผ โ‰ค 9.5 with 95% confidence

54 Confidence Intervals PROJECT QUESTION Interpreting confidence intervals: If the 95% confidence interval is: 4.5 โ‰ค ยต โ‰ค 9.5 Is it likely that ยต = 10?

55 Confidence Intervals PROJECT QUESTION No, because itโ€™s outside of the interval That would only happen 5% of the time

56 Find the 95% confidence interval for ฮผ given: ๐’™ = 53 s = 14 n = 49
CONFIDENCE INTERVALS PROJECT QUESTION Find the 95% confidence interval for ฮผ given: ๐’™ = 53 s = 14 n = 49

57 CONFIDENCE INTERVALS PROJECT QUESTION Find the 95% confidence interval for ฮผ given: ๐’™ = 53 s = 14 n = โ‰ค ยต โ‰ค 57

58 Can you say with 95% confidence that ยต โ‰  55?
CONFIDENCE INTERVALS PROJECT QUESTION Can you say with 95% confidence that ยต โ‰  55?

59 CONFIDENCE INTERVALS PROJECT QUESTION Can you say with 95% confidence that ยต โ‰  55? Nopeโ€ฆ itโ€™s in the interval It IS a likely value for ยต

60 Find the 95% confidence interval for ฮผ given: ๐’™ = 481 s = 154 n = 121
CONFIDENCE INTERVALS PROJECT QUESTION Find the 95% confidence interval for ฮผ given: ๐’™ = 481 s = 154 n = 121

61 CONFIDENCE INTERVALS PROJECT QUESTION Find the 95% confidence interval for ฮผ given: ๐’™ = 481 s = 154 n = โ‰ค ยต โ‰ค 509

62 Can you say with 95% confidence that ยต might be 450?
CONFIDENCE INTERVALS PROJECT QUESTION Can you say with 95% confidence that ยต might be 450?

63 CONFIDENCE INTERVALS PROJECT QUESTION Can you say with 95% confidence that ยต might be 450? ยต is unlikely to be 450 โ€“ that value is outside of the confidence interval and would only happen 5% of the time

64 You will have a smaller interval if you have a larger value for n
Confidence Intervals You will have a smaller interval if you have a larger value for n

65 So you want to take the LARGEST sample you can
Confidence Intervals So you want to take the LARGEST sample you can

66 This is called the โ€œLAW OF LARGE NUMBERSโ€
Confidence Intervals This is called the โ€œLAW OF LARGE NUMBERSโ€

67 What if you have a sample size smaller than 20???
Confidence Intervals What if you have a sample size smaller than 20???

68 Confidence Intervals What if you have a sample size smaller than 20???
You must use a different (bigger) critical value W.S. Gosset 1908

69 Questions?

70 Confidence Intervals Weโ€™ve done confidence intervals for measurement data with a mean ฮผ based on the sample mean ๐’™ and margin of error 2se

71 CI for Proportions What about count data and proportions?

72 CI for Proportions Weโ€™ll use the normal curve for proportions:
p -3 pq n p -2 pq n p - pq n p p + pq n p +2 pq n p +3 pq n

73 If p = .4 and n = 30 find the 95% CI for p
CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p

74 If p = .4 and n = 30 find the 95% CI for p se =
CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p se =

75 If p = .4 and n = 30 find the 95% CI for p se = pq n = .4x.6 30 โ‰ˆ .089
CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p se = pq n = .4x.6 30 โ‰ˆ .089

76 If p = .4 and n = 30 find the 95% CI for p me =
CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p me =

77 If p = .4 and n = 30 find the 95% CI for p me = 2 ร— .089 = .178
CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p me = 2 ร— .089 = .178

78 If p = .4 and n = 30 find the 95% CI for p CI:
CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p CI:

79 CI FOR PROPORTIONS PROJECT QUESTION If p = .4 and n = 30 find the 95% CI for p CI: โ‰ค p โ‰ค โ‰ค p โ‰ค .578

80 Questions?


Download ppt "Statistics Confidence Intervals"

Similar presentations


Ads by Google