Statistics for EES 3. From standard error to t-test

Size: px
Start display at page:

Download "Statistics for EES 3. From standard error to t-test"

Transcription

1 Statistics for EES 3. From standard error to t-test Dirk Metzler May 23, 2011

2 Contents 1 The Normal Distribution 2 Taking standard errors into account 3 The t-test for paired samples Example: Orientation of pied flycatchers

3 Contents The Normal Distribution 1 The Normal Distribution 2 Taking standard errors into account 3 The t-test for paired samples Example: Orientation of pied flycatchers

4 The Normal Distribution Density of the normal distribution Normaldichte µ + σ µ µ + σ

5 The Normal Distribution Density of the normal distribution Normaldichte µ + σ µ µ + σ The normal distribution is also called Gauß distribution

6 The Normal Distribution Density of the normal distribution The normal distribution is also called Gauß distribution (after Carl Friedrich Gauß, )

7 The Normal Distribution dbinom(400:600, 1000, 0.5) :600

8 The Normal Distribution dbinom(400:600, 1000, 0.5) :600

9 The Normal Distribution Density of standard normal distribution A random variable Z with density f (x) = 1 2π e x2 2 Gaussian bell is called standard normally distributed.

10 The Normal Distribution Density of standard normal distribution A random variable Z with density f (x) = 1 2π e x2 2 Gaussian bell for short: Z N (0, 1) is called standard normally distributed.

11 The Normal Distribution Density of standard normal distribution A random variable Z with density f (x) = 1 2π e x2 2 Gaussian bell for short: Z N (0, 1) EZ = 0 Var Z = is called standard normally distributed.

12 The Normal Distribution If Z is N (0, 1) distributed, then X = σ Z + µ is normally distributed with mean µ and variance σ 2, for short: X N (0, 1)

13 The Normal Distribution If Z is N (0, 1) distributed, then X = σ Z + µ is normally distributed with mean µ and variance σ 2, for short: X N (0, 1) X has the density f (x) = 1 2πσ e (x µ)2 2σ 2.

14 The Normal Distribution Keep in mind If Z N (µ, σ 2 ), then: Pr( Z µ > σ) < 1 3

15 The Normal Distribution Keep in mind If Z N (µ, σ 2 ), then: Pr( Z µ > σ) < 1 3 Pr( Z µ > 2 σ) < 0.05

16 The Normal Distribution Keep in mind If Z N (µ, σ 2 ), then: Pr( Z µ > σ) < 1 3 Pr( Z µ > 2 σ) < 0.05 Pr( Z µ > 3 σ) < 0.003

17 The Normal Distribution f (x) = 1 e (x µ)2 2σ 2 2πσ µ σ µ µ + σ

18 The Normal Distribution Densities need integrals If Z is a random variable with density f (x) then a b, Pr(Z [a, b]) =

19 The Normal Distribution Densities need integrals If Z is a random variable with density f (x) then Pr(Z [a, b]) = a b, b a f (x)dx.

20 The Normal Distribution Example: Let Z N (µ = 5, σ 2 = 2.25). Pr(Z < a) can be computed with pnorm(a,mean=5,sd=1.5)

21 The Normal Distribution Example: Let Z N (µ = 5, σ 2 = 2.25). Pr(Z < a) can be computed with pnorm(a,mean=5,sd=1.5) Computation of Pr(Z [3, 4]):

22 The Normal Distribution Example: Let Z N (µ = 5, σ 2 = 2.25). Pr(Z < a) can be computed with pnorm(a,mean=5,sd=1.5) Computation of Pr(Z [3, 4]): Pr(Z [3, 4]) = Pr(Z < 4) Pr(Z < 3)

23 The Normal Distribution Example: Let Z N (µ = 5, σ 2 = 2.25). Pr(Z < a) can be computed with pnorm(a,mean=5,sd=1.5) Computation of Pr(Z [3, 4]): Pr(Z [3, 4]) = Pr(Z < 4) Pr(Z < 3) > pnorm(4,mean=5,sd=1.5)-pnorm(3,mean=5,sd=1.5)

24 The Normal Distribution Example: Let Z N (µ = 5, σ 2 = 2.25). Pr(Z < a) can be computed with pnorm(a,mean=5,sd=1.5) Computation of Pr(Z [3, 4]): Pr(Z [3, 4]) = Pr(Z < 4) Pr(Z < 3) > pnorm(4,mean=5,sd=1.5)-pnorm(3,mean=5,sd=1.5) [1]

25 The Normal Distribution Let Z N (µ, σ 2 ). How to compute Pr(Z = 5)?

26 The Normal Distribution Let Z N (µ, σ 2 ). How to compute Pr(Z = 5)? Answer: For each x R holds Pr(Z = x) = 0

27 The Normal Distribution Let Z N (µ, σ 2 ). How to compute Pr(Z = 5)? Answer: For each x R holds Pr(Z = x) = 0 How about EZ = a a Pr(Z = a)?

28 The Normal Distribution Let Z N (µ, σ 2 ). How to compute Pr(Z = 5)? Answer: For each x R holds Pr(Z = x) = 0 How about EZ = a a Pr(Z = a)? Needs a new definition: EZ = x f (x)dx

29 The Normal Distribution Let Z N (µ, σ 2 ). How to compute Pr(Z = 5)? Answer: For each x R holds Pr(Z = x) = 0 How about EZ = a a Pr(Z = a)? Needs a new definition: EZ = x f (x)dx But we already know the result EZ = µ.

30 Contents Taking standard errors into account 1 The Normal Distribution 2 Taking standard errors into account 3 The t-test for paired samples Example: Orientation of pied flycatchers

31 Taking standard errors into account Important consequence Consider the interval x s/ n x + s/ n x

32 Taking standard errors into account Important consequence This interval contains µ with probability of ca. 2/3 x s/ n x + s/ n x

33 Taking standard errors into account Important consequence This interval contains µ with probability of ca. 2/3 x s/ n x + s/ n x probability that µ is outside of interval is ca. 1/3

34 Taking standard errors into account Thus: It may happen that x deviates from µ by more than s/ n.

35 Taking standard errors into account Application 1: Which values of µ are plausible?

36 Taking standard errors into account Application 1: Which values of µ are plausible? x = 0.12 s/ n = 0.007

37 Taking standard errors into account Application 1: Which values of µ are plausible? x = 0.12 s/ n = Question: Could it be that µ = 0.115?

38 Taking standard errors into account Answer: Yes, not unlikely.

39 Taking standard errors into account Answer: Yes, not unlikely. Deviation x µ = =

40 Taking standard errors into account Answer: Yes, not unlikely. Deviation x µ = = Standard Error s/ n = 0.007

41 Taking standard errors into account Answer: Yes, not unlikely. Deviation x µ = = Standard Error s/ n = Deviations like this are not unusual.

42 Taking standard errors into account Answer: Yes, not unlikely. Deviation x µ = = Standard Error s/ n = Deviations like this are not unusual.

43 Taking standard errors into account Application 2: Comparison of mean values

44 Taking standard errors into account Application 2: Comparison of mean values Example: Galathea

45 Taking standard errors into account Galathea: Carapace lengths in a sample Males: x 1 = 3.04 mm s 1 = 0.9 mm n 1 = 25 Females: x 2 = 3.23 mm s 2 = 0.9 mm n 2 = 29

46 Taking standard errors into account The females are apparently larger.

47 Taking standard errors into account The females are apparently larger. Is this significant?

48 Taking standard errors into account The females are apparently larger. Is this significant? Or could it be just random?

49 Taking standard errors into account How precisely do we know the true mean value?

50 Taking standard errors into account How precisely do we know the true mean value? Males: x 1 = 3.04 mm s 1 = 0.9 mm n 1 = 25 s 1 / n 1 = 0.18 [mm]

51 Taking standard errors into account How precisely do we know the true mean value? Males: x 1 = 3.04 mm s 1 = 0.9 mm n 1 = 25 s 1 / n 1 = 0.18 [mm] We have to assume uncertainty in the magnitude of ±0.18 (mm) in x 1

52 Taking standard errors into account How precisely do we know the true mean value?

53 Taking standard errors into account How precisely do we know the true mean value? Females: x 2 = 3.23 mm s 2 = 0.9 mm n 2 = 29 s 2 / n 2 = 0.17 [mm]

54 Taking standard errors into account How precisely do we know the true mean value? Females: x 2 = 3.23 mm s 2 = 0.9 mm n 2 = 29 s 2 / n 2 = 0.17 [mm] It is not unlikely that x 2 deviates from the true mean by more than ±0.17 (mm).

55 Taking standard errors into account The difference of the means = 0.19 [mm]

56 Taking standard errors into account The difference of the means = 0.19 [mm] is not much larger than the expected inaccuracies.

57 Taking standard errors into account The difference of the means = 0.19 [mm] is not much larger than the expected inaccuracies. It could also be due to pure random that x 2 > x 1

58 Taking standard errors into account MORE PRECISELY: If the true means are actually equal µ Females = µ Males

59 Taking standard errors into account MORE PRECISELY: If the true means are actually equal µ Females = µ Males it is still quite likely that the sample means x 2 are x 1 that different.

60 Taking standard errors into account In the language of statistics: The difference of the mean values is (statistically) not significant.

61 Taking standard errors into account not significant = can be just random

62 Taking standard errors into account Application 3: If the mean values are represented graphically, you should als show their precision (±s/ n)

63 Taking standard errors into account Not Like this: Carapace lengths: Mean values for males and females Carapace length [mm] Males Females

64 Taking standard errors into account Like that: Carapace lengths: Mean values ± standard errors for males and females Carapace length [mm] Males Females

65 Taking standard errors into account Application 4: Planning an experiment:

66 Taking standard errors into account Application 4: Planning an experiment: How many observations do I need? (How large should n be?)

67 Taking standard errors into account If you know which precision you need for (the standard error s/ n of) x

68 Taking standard errors into account If you know which precision you need for (the standard error s/ n of) x and if you already have an idea of s

69 Taking standard errors into account If you know which precision you need for (the standard error s/ n of) x and if you already have an idea of s then you can estimate the value of n that is necessary: s/ n = g (g = desired standard error)

70 Taking standard errors into account Example: Stressed transpiration values in another sorghum subspecies: x = 0.18 s = 0.06 n = 13

71 Taking standard errors into account Example: Stressed transpiration values in another sorghum subspecies: x = 0.18 s = 0.06 n = 13 How often do we have to repeat the experiment to get a standard error of 0.01?

72 Taking standard errors into account Example: Stressed transpiration values in another sorghum subspecies: x = 0.18 s = 0.06 n = 13 How often do we have to repeat the experiment to get a standard error of 0.01? Which n do we need?

73 Taking standard errors into account Solution: desired: s/ n 0.01

74 Taking standard errors into account Solution: desired: s/ n 0.01 From the previous experiment we know: s 0.06,

75 Taking standard errors into account Solution: desired: s/ n 0.01 From the previous experiment we know: s 0.06, so: n 6

76 Taking standard errors into account Solution: desired: s/ n 0.01 From the previous experiment we know: s 0.06, so: n

77 Summary Taking standard errors into account Assume a population has mean value µ and standard deviation σ.

78 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x.

79 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x. x is a random variable

80 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x. x is a random variable with mean value µ and standard deviation σ/ n.

81 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x. x is a random variable with mean value µ and standard deviation σ/ n. Estimate the standard deviation of x by s/ n.

82 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x. x is a random variable with mean value µ and standard deviation σ/ n. Estimate the standard deviation of x by s/ n. s/ n is the Standard Error (of the Mean).

83 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x. x is a random variable with mean value µ and standard deviation σ/ n. Estimate the standard deviation of x by s/ n. s/ n is the Standard Error (of the Mean). Deviations of x of the magnitude of s/ n are usual.

84 Taking standard errors into account Summary Assume a population has mean value µ and standard deviation σ. We draw a sample of size n from this population with sample mean x. x is a random variable with mean value µ and standard deviation σ/ n. Estimate the standard deviation of x by s/ n. s/ n is the Standard Error (of the Mean). Deviations of x of the magnitude of s/ n are usual. They are not significant: they can be random.

85 Contents The t-test for paired samples 1 The Normal Distribution 2 Taking standard errors into account 3 The t-test for paired samples Example: Orientation of pied flycatchers

86 The t-test for paired samples sample means ± standard errors A B C D Is A significantly different from B?

87 The t-test for paired samples sample means ± standard errors A B C D Is A significantly different from B? No: A is in 2/3 range of µ B

88 The t-test for paired samples sample means ± standard errors A B C D Is B significantly different from C?

89 The t-test for paired samples sample means ± standard errors A B C D Is B significantly different from C? No: 2/3 ranges of µ B and µ C overlap

90 The t-test for paired samples sample means ± standard errors A B C D Is C significantly different from D?

91 The t-test for paired samples sample means ± standard errors A B C D Is C significantly different from D? We do not know yet.

92 The t-test for paired samples sample means ± standard errors A B C D Is C significantly different from D? We do not know yet. (Answer will be no.)

93 Contents The t-test for paired samples Example: Orientation of pied flycatchers 1 The Normal Distribution 2 Taking standard errors into account 3 The t-test for paired samples Example: Orientation of pied flycatchers

94 The t-test for paired samples Example: Orientation of pied flycatchers Pied flycatchers (Ficedula hypoleuca) Foto (c) Simon Eugster hypoleuca NRM.jpg

95 The t-test for paired samples Example: Orientation of pied flycatchers Wiltschko, W.; Gesson, M.; Stapput, K.; Wiltschko, R. Light-dependent magnetoreception in birds: interaction of at least two different receptors. Naturwissenschaften 91.3, pp , Wiltschko, R.; Ritz, T.; Stapput, K.; Thalau, P.; Wiltschko, W. Two different types of light-dependent responses to magnetic fields in birds. Curr Biol 15.16, pp , Wiltschko, R.; Stapput, K.; Bischof, H. J.; Wiltschko, W. Light-dependent magnetoreception in birds: increasing intensity of monochromatic light changes the nature of the response. Front Zool, 4, 2007.

96 The t-test for paired samples Example: Orientation of pied flycatchers

97 The t-test for paired samples Example: Orientation of pied flycatchers Direction of flight with blue light.

98 The t-test for paired samples Example: Orientation of pied flycatchers Direction of flight with blue light. Another flight of the same bird with blue light.

99 The t-test for paired samples Example: Orientation of pied flycatchers All flight s directions of this bird in blue light.

100 The t-test for paired samples Example: Orientation of pied flycatchers All flight s directions of this bird in blue light.

101 The t-test for paired samples Example: Orientation of pied flycatchers All flight s directions of this bird in blue light. corresponding exit points

102 The t-test for paired samples Example: Orientation of pied flycatchers Directions of this bird s flights in green light.

103 The t-test for paired samples Example: Orientation of pied flycatchers Directions of this bird s flights in green light. corresponding exit points

104 The t-test for paired samples Example: Orientation of pied flycatchers corresponding exit points arrow heads: barycenter of exit points for green light

105 The t-test for paired samples Example: Orientation of pied flycatchers arrow heads: barycenter of exit points for green light

106 The t-test for paired samples Example: Orientation of pied flycatchers arrow heads: barycenter of exit points for green light the same for blue directions

107 The t-test for paired samples Example: Orientation of pied flycatchers arrow heads: barycenter of exit points for green light the same for blue directions the more variable the directions the shorter the arrows!

108 The t-test for paired samples Question of interest Example: Orientation of pied flycatchers Does the color of monochromatic light influence the orientation?

109 The t-test for paired samples Question of interest Example: Orientation of pied flycatchers Does the color of monochromatic light influence the orientation? Experiment: For 17 birds compare barycenter vector lengths for blue and green light.

110 The t-test for paired samples Example: Orientation of pied flycatchers Pies flycathchers : barycenter vector lengths for green light and for blue light b, n=17 with green light with blue light

111 The t-test for paired samples Example: Orientation of pied flycatchers Compute for each bird the distance to the diagonal,

112 The t-test for paired samples Example: Orientation of pied flycatchers Compute for each bird the distance to the diagonal, i.e. x := green length blue length

113 The t-test for paired samples Example: Orientation of pied flycatchers Compute for each bird the distance to the diagonal, i.e. x := green length blue length

114 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird)

115 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird) x =

116 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird) x = s =

117 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird) x = s = SEM = s n

118 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird) x = s = SEM = s = n 17

119 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird) x = s = SEM = s = n 17 = 0.022

120 The t-test for paired samples Example: Orientation of pied flycatchers Can the theoretical mean be µ = 0? (i.e. the expectation value for a randomly chosen bird) x = s = SEM = s = n 17 = 0.022

121 The t-test for paired samples Example: Orientation of pied flycatchers Is x µ a large deviation?

122 The t-test for paired samples Example: Orientation of pied flycatchers Is x µ a large deviation? Large?

123 The t-test for paired samples Example: Orientation of pied flycatchers Is x µ a large deviation? Large? Large compared to what?

124 The t-test for paired samples Example: Orientation of pied flycatchers Is x µ a large deviation? Large? Large compared to what? Large compared the the standard error?

125 The t-test for paired samples Example: Orientation of pied flycatchers x µ s/ n

126 The t-test for paired samples Example: Orientation of pied flycatchers x µ s/ n So, x is more than 2.3 standard deviations away from µ = 0.

127 The t-test for paired samples Example: Orientation of pied flycatchers x µ s/ n So, x is more than 2.3 standard deviations away from µ = 0. How probable is this when 0 is the true theoretical mean?

128 The t-test for paired samples Example: Orientation of pied flycatchers x µ s/ n So, x is more than 2.3 standard deviations away from µ = 0. How probable is this when 0 is the true theoretical mean? in other words: Is this deviation significant?

129 The t-test for paired samples Example: Orientation of pied flycatchers We know: x µ σ/ n is asymptotically (for large n) standard-normally distributed.

130 The t-test for paired samples Example: Orientation of pied flycatchers We know: x µ σ/ n is asymptotically (for large n) standard-normally distributed. σ is the theoretical standard deviation, but we do not know it.

131 The t-test for paired samples Example: Orientation of pied flycatchers We know: x µ σ/ n is asymptotically (for large n) standard-normally distributed. σ is the theoretical standard deviation, but we do not know it. Instead of σ we use the sample standard deviation s.

132 The t-test for paired samples Example: Orientation of pied flycatchers We know: x µ σ/ n is asymptotically (for large n) standard-normally distributed. σ is the theoretical standard deviation, but we do not know it. Instead of σ we use the sample standard deviation s. We have applied the 2/3 rule of thumb which is based on the normal distribution.

133 The t-test for paired samples Example: Orientation of pied flycatchers We know: x µ σ/ n is asymptotically (for large n) standard-normally distributed. σ is the theoretical standard deviation, but we do not know it. Instead of σ we use the sample standard deviation s. We have applied the 2/3 rule of thumb which is based on the normal distribution. For questions about the significance this approximation is too imprecise if σ is replaced by s (and n is not extremely large).

134 The t-test for paired samples Example: Orientation of pied flycatchers General Rule If X 1,..., X n are independently drawn from a normal distributed with mean µ and then s 2 = 1 n 1 n (X i X) 2, i=1 X µ s/ n is t-distributed with n 1 degrees of freedom (df).

135 The t-test for paired samples Example: Orientation of pied flycatchers General Rule If X 1,..., X n are independently drawn from a normal distributed with mean µ and then s 2 = 1 n 1 n (X i X) 2, i=1 X µ s/ n is t-distributed with n 1 degrees of freedom (df). The t-distribution is also called Student-distribution, since Gosset published it using this synonym.

136 The t-test for paired samples Density of the t-distribution Example: Orientation of pied flycatchers density Density of t-distribution with 16 df

137 The t-test for paired samples Density of the t-distribution Example: Orientation of pied flycatchers density Density of t-distribution with 16 df Density of standard normal distribution

138 The t-test for paired samples Density of the t-distribution Example: Orientation of pied flycatchers density Density of t-distribution with 16 df Density of standard normal distribution µ = 0 and σ 2 = 16 14

139 The t-test for paired samples Density of the t-distribution Example: Orientation of pied flycatchers density Density of t-distribution with 5 df Density of normal distribution with µ = 0 and σ 2 = 5 3

140 The t-test for paired samples Example: Orientation of pied flycatchers How (im)probable is a deviation by 2.35 standard errors? Pr(T = 2.34) =

141 The t-test for paired samples Example: Orientation of pied flycatchers How (im)probable is a deviation by 2.35 standard errors? Pr(T = 2.34) = 0

142 The t-test for paired samples Example: Orientation of pied flycatchers How (im)probable is a deviation by at least 2.35 standard errors? Pr(T = 2.34) = 0 does not help!

143 The t-test for paired samples Example: Orientation of pied flycatchers How (im)probable is a deviation by at least 2.35 standard errors? Pr(T = 2.34) = 0 does not help! Compute Pr(T 2.34), the so-called p-value. density

144 The t-test for paired samples Example: Orientation of pied flycatchers How (im)probable is a deviation by at least 2.35 standard errors? Pr(T = 2.34) = 0 does not help! Compute Pr(T 2.34), the so-called p-value. density The total area of the magenta-colored regions is the p-value

145 The t-test for paired samples Example: Orientation of pied flycatchers R does that for us: > pt(-2.34,df=16)+pt(2.34,df=16,lower.tail=false) [1]

146 The t-test for paired samples Example: Orientation of pied flycatchers R does that for us: > pt(-2.34,df=16)+pt(2.34,df=16,lower.tail=false) [1] Comparison with normal distribution: > pnorm(-2.34)+pnorm(2.34,lower.tail=false) [1] > pnorm(-2.34,sd=16/14)+ + pnorm(2.34,sd=16/14,lower.tail=false) [1]

147 t-test with R The t-test for paired samples Example: Orientation of pied flycatchers > x <- length$green-length$blue > t.test(x) One Sample t-test data: x t = , df = 16, p-value = alternative hypothesis: true mean is not equal to 0 95 percent confidence interval: sample estimates: mean of x

148 The t-test for paired samples Example: Orientation of pied flycatchers We note: p Wert =

149 The t-test for paired samples Example: Orientation of pied flycatchers We note: p Wert = i.e.: If the Null hypothesis just random, in our case µ = 0 holds, any deviation like the observed one or even more is very improbable.

150 The t-test for paired samples Example: Orientation of pied flycatchers We note: p Wert = i.e.: If the Null hypothesis just random, in our case µ = 0 holds, any deviation like the observed one or even more is very improbable. If we always reject the null hypothesis if and only if the p-value is below a level of significance of 0.05, then we can say following holds:

151 The t-test for paired samples Example: Orientation of pied flycatchers We note: p Wert = i.e.: If the Null hypothesis just random, in our case µ = 0 holds, any deviation like the observed one or even more is very improbable. If we always reject the null hypothesis if and only if the p-value is below a level of significance of 0.05, then we can say following holds: If the null hypothesis holds, then the probability that we reject it, is only 0.05.

Statistics for EES and MEME 5. Rank-sum tests

Statistics for EES and MEME 5. Rank-sum tests Statistics for EES and MEME 5. Rank-sum tests Dirk Metzler June 4, 2018 Wilcoxon s rank sum test is also called Mann-Whitney U test References Contents [1] Wilcoxon, F. (1945). Individual comparisons by

More information

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

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 CIVL - 7904/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 Chi-square Test How to determine the interval from a continuous distribution I = Range 1 + 3.322(logN) I-> Range of the class interval

More information

10/4/2013. Hypothesis Testing & z-test. Hypothesis Testing. Hypothesis Testing

10/4/2013. Hypothesis Testing & z-test. Hypothesis Testing. Hypothesis Testing & z-test Lecture Set 11 We have a coin and are trying to determine if it is biased or unbiased What should we assume? Why? Flip coin n = 100 times E(Heads) = 50 Why? Assume we count 53 Heads... What could

More information

Ch. 7. One sample hypothesis tests for µ and σ

Ch. 7. One sample hypothesis tests for µ and σ Ch. 7. One sample hypothesis tests for µ and σ Prof. Tesler Math 18 Winter 2019 Prof. Tesler Ch. 7: One sample hypoth. tests for µ, σ Math 18 / Winter 2019 1 / 23 Introduction Data Consider the SAT math

More information

Analysis of variance (ANOVA) Comparing the means of more than two groups

Analysis of variance (ANOVA) Comparing the means of more than two groups Analysis of variance (ANOVA) Comparing the means of more than two groups Example: Cost of mating in male fruit flies Drosophila Treatments: place males with and without unmated (virgin) females Five treatments

More information

Chapter 24. Comparing Means

Chapter 24. Comparing Means Chapter 4 Comparing Means!1 /34 Homework p579, 5, 7, 8, 10, 11, 17, 31, 3! /34 !3 /34 Objective Students test null and alternate hypothesis about two!4 /34 Plot the Data The intuitive display for comparing

More information

ECON Introductory Econometrics. Lecture 2: Review of Statistics

ECON Introductory Econometrics. Lecture 2: Review of Statistics ECON415 - Introductory Econometrics Lecture 2: Review of Statistics Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 2-3 Lecture outline 2 Simple random sampling Distribution of the sample

More information

A proportion is the fraction of individuals having a particular attribute. Can range from 0 to 1!

A proportion is the fraction of individuals having a particular attribute. Can range from 0 to 1! Proportions A proportion is the fraction of individuals having a particular attribute. It is also the probability that an individual randomly sampled from the population will have that attribute Can range

More information

Statistical Inference

Statistical Inference Statistical Inference Bernhard Klingenberg Institute of Statistics Graz University of Technology Steyrergasse 17/IV, 8010 Graz www.statistics.tugraz.at February 12, 2008 Outline Estimation: Review of concepts

More information

Probability theory and inference statistics! Dr. Paola Grosso! SNE research group!! (preferred!)!!

Probability theory and inference statistics! Dr. Paola Grosso! SNE research group!!  (preferred!)!! Probability theory and inference statistics Dr. Paola Grosso SNE research group p.grosso@uva.nl paola.grosso@os3.nl (preferred) Roadmap Lecture 1: Monday Sep. 22nd Collecting data Presenting data Descriptive

More information

Epidemiology Principles of Biostatistics Chapter 10 - Inferences about two populations. John Koval

Epidemiology Principles of Biostatistics Chapter 10 - Inferences about two populations. John Koval Epidemiology 9509 Principles of Biostatistics Chapter 10 - Inferences about John Koval Department of Epidemiology and Biostatistics University of Western Ontario What is being covered 1. differences in

More information

Lecture 26: Chapter 10, Section 2 Inference for Quantitative Variable Confidence Interval with t

Lecture 26: Chapter 10, Section 2 Inference for Quantitative Variable Confidence Interval with t Lecture 26: Chapter 10, Section 2 Inference for Quantitative Variable Confidence Interval with t t Confidence Interval for Population Mean Comparing z and t Confidence Intervals When neither z nor t Applies

More information

Questions 3.83, 6.11, 6.12, 6.17, 6.25, 6.29, 6.33, 6.35, 6.50, 6.51, 6.53, 6.55, 6.59, 6.60, 6.65, 6.69, 6.70, 6.77, 6.79, 6.89, 6.

Questions 3.83, 6.11, 6.12, 6.17, 6.25, 6.29, 6.33, 6.35, 6.50, 6.51, 6.53, 6.55, 6.59, 6.60, 6.65, 6.69, 6.70, 6.77, 6.79, 6.89, 6. Chapter 7 Reading 7.1, 7.2 Questions 3.83, 6.11, 6.12, 6.17, 6.25, 6.29, 6.33, 6.35, 6.50, 6.51, 6.53, 6.55, 6.59, 6.60, 6.65, 6.69, 6.70, 6.77, 6.79, 6.89, 6.112 Introduction In Chapter 5 and 6, we emphasized

More information

Difference between means - t-test /25

Difference between means - t-test /25 Difference between means - t-test 1 Discussion Question p492 Ex 9-4 p492 1-3, 6-8, 12 Assume all variances are not equal. Ignore the test for variance. 2 Students will perform hypothesis tests for two

More information

Advanced Experimental Design

Advanced Experimental Design Advanced Experimental Design Topic Four Hypothesis testing (z and t tests) & Power Agenda Hypothesis testing Sampling distributions/central limit theorem z test (σ known) One sample z & Confidence intervals

More information

4.1 Hypothesis Testing

4.1 Hypothesis Testing 4.1 Hypothesis Testing z-test for a single value double-sided and single-sided z-test for one average z-test for two averages double-sided and single-sided t-test for one average the F-parameter and F-table

More information

Population Variance. Concepts from previous lectures. HUMBEHV 3HB3 one-sample t-tests. Week 8

Population Variance. Concepts from previous lectures. HUMBEHV 3HB3 one-sample t-tests. Week 8 Concepts from previous lectures HUMBEHV 3HB3 one-sample t-tests Week 8 Prof. Patrick Bennett sampling distributions - sampling error - standard error of the mean - degrees-of-freedom Null and alternative/research

More information

Chapter 12 - Lecture 2 Inferences about regression coefficient

Chapter 12 - Lecture 2 Inferences about regression coefficient Chapter 12 - Lecture 2 Inferences about regression coefficient April 19th, 2010 Facts about slope Test Statistic Confidence interval Hypothesis testing Test using ANOVA Table Facts about slope In previous

More information

Outline for Today. Review of In-class Exercise Bivariate Hypothesis Test 2: Difference of Means Bivariate Hypothesis Testing 3: Correla

Outline for Today. Review of In-class Exercise Bivariate Hypothesis Test 2: Difference of Means Bivariate Hypothesis Testing 3: Correla Outline for Today 1 Review of In-class Exercise 2 Bivariate hypothesis testing 2: difference of means 3 Bivariate hypothesis testing 3: correlation 2 / 51 Task for ext Week Any questions? 3 / 51 In-class

More information

Chapter 7: Statistical Inference (Two Samples)

Chapter 7: Statistical Inference (Two Samples) Chapter 7: Statistical Inference (Two Samples) Shiwen Shen University of South Carolina 2016 Fall Section 003 1 / 41 Motivation of Inference on Two Samples Until now we have been mainly interested in a

More information

Chapter 23. Inferences About Means. Monday, May 6, 13. Copyright 2009 Pearson Education, Inc.

Chapter 23. Inferences About Means. Monday, May 6, 13. Copyright 2009 Pearson Education, Inc. Chapter 23 Inferences About Means Sampling Distributions of Means Now that we know how to create confidence intervals and test hypotheses about proportions, we do the same for means. Just as we did before,

More information

Hypothesis Testing for Var-Cov Components

Hypothesis Testing for Var-Cov Components Hypothesis Testing for Var-Cov Components When the specification of coefficients as fixed, random or non-randomly varying is considered, a null hypothesis of the form is considered, where Additional output

More information

Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami

Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami Parametric versus Nonparametric Statistics-when to use them and which is more powerful? Dr Mahmoud Alhussami Parametric Assumptions The observations must be independent. Dependent variable should be continuous

More information

Econometrics. 4) Statistical inference

Econometrics. 4) Statistical inference 30C00200 Econometrics 4) Statistical inference Timo Kuosmanen Professor, Ph.D. http://nomepre.net/index.php/timokuosmanen Today s topics Confidence intervals of parameter estimates Student s t-distribution

More information

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV

ME3620. Theory of Engineering Experimentation. Spring Chapter IV. Decision Making for a Single Sample. Chapter IV Theory of Engineering Experimentation Chapter IV. Decision Making for a Single Sample Chapter IV 1 4 1 Statistical Inference The field of statistical inference consists of those methods used to make decisions

More information

Evaluating Hypotheses

Evaluating Hypotheses Evaluating Hypotheses IEEE Expert, October 1996 1 Evaluating Hypotheses Sample error, true error Confidence intervals for observed hypothesis error Estimators Binomial distribution, Normal distribution,

More information

Inferential Statistics

Inferential Statistics Inferential Statistics Part 1 Sampling Distributions, Point Estimates & Confidence Intervals Inferential statistics are used to draw inferences (make conclusions/judgements) about a population from a sample.

More information

The t-statistic. Student s t Test

The t-statistic. Student s t Test The t-statistic 1 Student s t Test When the population standard deviation is not known, you cannot use a z score hypothesis test Use Student s t test instead Student s t, or t test is, conceptually, very

More information

Hypothesis tests for two means

Hypothesis tests for two means Chapter 3 Hypothesis tests for two means 3.1 Introduction Last week you were introduced to the concept of hypothesis testing in statistics, and we considered hypothesis tests for the mean if we have a

More information

ECON Introductory Econometrics. Lecture 5: OLS with One Regressor: Hypothesis Tests

ECON Introductory Econometrics. Lecture 5: OLS with One Regressor: Hypothesis Tests ECON4150 - Introductory Econometrics Lecture 5: OLS with One Regressor: Hypothesis Tests Monique de Haan (moniqued@econ.uio.no) Stock and Watson Chapter 5 Lecture outline 2 Testing Hypotheses about one

More information

Hypothesis testing. Data to decisions

Hypothesis testing. Data to decisions Hypothesis testing Data to decisions The idea Null hypothesis: H 0 : the DGP/population has property P Under the null, a sample statistic has a known distribution If, under that that distribution, the

More information

Chapter 23: Inferences About Means

Chapter 23: Inferences About Means Chapter 3: Inferences About Means Sample of Means: number of observations in one sample the population mean (theoretical mean) sample mean (observed mean) is the theoretical standard deviation of the population

More information

Content by Week Week of October 14 27

Content by Week Week of October 14 27 Content by Week Week of October 14 27 Learning objectives By the end of this week, you should be able to: Understand the purpose and interpretation of confidence intervals for the mean, Calculate confidence

More information

Chapter 24. Comparing Means. Copyright 2010 Pearson Education, Inc.

Chapter 24. Comparing Means. Copyright 2010 Pearson Education, Inc. Chapter 24 Comparing Means Copyright 2010 Pearson Education, Inc. Plot the Data The natural display for comparing two groups is boxplots of the data for the two groups, placed side-by-side. For example:

More information

Business Analytics and Data Mining Modeling Using R Prof. Gaurav Dixit Department of Management Studies Indian Institute of Technology, Roorkee

Business Analytics and Data Mining Modeling Using R Prof. Gaurav Dixit Department of Management Studies Indian Institute of Technology, Roorkee Business Analytics and Data Mining Modeling Using R Prof. Gaurav Dixit Department of Management Studies Indian Institute of Technology, Roorkee Lecture - 04 Basic Statistics Part-1 (Refer Slide Time: 00:33)

More information

Descriptive Statistics

Descriptive Statistics Descriptive Statistics Once an experiment is carried out and the results are measured, the researcher has to decide whether the results of the treatments are different. This would be easy if the results

More information

Performance Evaluation and Comparison

Performance Evaluation and Comparison Outline Hong Chang Institute of Computing Technology, Chinese Academy of Sciences Machine Learning Methods (Fall 2012) Outline Outline I 1 Introduction 2 Cross Validation and Resampling 3 Interval Estimation

More information

-However, this definition can be expanded to include: biology (biometrics), environmental science (environmetrics), economics (econometrics).

-However, this definition can be expanded to include: biology (biometrics), environmental science (environmetrics), economics (econometrics). Chemometrics Application of mathematical, statistical, graphical or symbolic methods to maximize chemical information. -However, this definition can be expanded to include: biology (biometrics), environmental

More information

Inferences About Two Proportions

Inferences About Two Proportions Inferences About Two Proportions Quantitative Methods II Plan for Today Sampling two populations Confidence intervals for differences of two proportions Testing the difference of proportions Examples 1

More information

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

CBA4 is live in practice mode this week exam mode from Saturday! Announcements CBA4 is live in practice mode this week exam mode from Saturday! Material covered: Confidence intervals (both cases) 1 sample hypothesis tests (both cases) Hypothesis tests for 2 means as

More information

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS In our work on hypothesis testing, we used the value of a sample statistic to challenge an accepted value of a population parameter. We focused only

More information

Statistics 100A Homework 5 Solutions

Statistics 100A Homework 5 Solutions Chapter 5 Statistics 1A Homework 5 Solutions Ryan Rosario 1. Let X be a random variable with probability density function a What is the value of c? fx { c1 x 1 < x < 1 otherwise We know that for fx to

More information

16.400/453J Human Factors Engineering. Design of Experiments II

16.400/453J Human Factors Engineering. Design of Experiments II J Human Factors Engineering Design of Experiments II Review Experiment Design and Descriptive Statistics Research question, independent and dependent variables, histograms, box plots, etc. Inferential

More information

Single Sample Means. SOCY601 Alan Neustadtl

Single Sample Means. SOCY601 Alan Neustadtl Single Sample Means SOCY601 Alan Neustadtl The Central Limit Theorem If we have a population measured by a variable with a mean µ and a standard deviation σ, and if all possible random samples of size

More information

Example. χ 2 = Continued on the next page. All cells

Example. χ 2 = Continued on the next page. All cells Section 11.1 Chi Square Statistic k Categories 1 st 2 nd 3 rd k th Total Observed Frequencies O 1 O 2 O 3 O k n Expected Frequencies E 1 E 2 E 3 E k n O 1 + O 2 + O 3 + + O k = n E 1 + E 2 + E 3 + + E

More information

Lecture 28 Chi-Square Analysis

Lecture 28 Chi-Square Analysis Lecture 28 STAT 225 Introduction to Probability Models April 23, 2014 Whitney Huang Purdue University 28.1 χ 2 test for For a given contingency table, we want to test if two have a relationship or not

More information

1; (f) H 0 : = 55 db, H 1 : < 55.

1; (f) H 0 : = 55 db, H 1 : < 55. Reference: Chapter 8 of J. L. Devore s 8 th Edition By S. Maghsoodloo TESTING a STATISTICAL HYPOTHESIS A statistical hypothesis is an assumption about the frequency function(s) (i.e., pmf or pdf) of one

More information

Study Guide #3: OneWay ANALYSIS OF VARIANCE (ANOVA)

Study Guide #3: OneWay ANALYSIS OF VARIANCE (ANOVA) Study Guide #3: OneWay ANALYSIS OF VARIANCE (ANOVA) About the ANOVA Test In educational research, we are most often involved finding out whether there are differences between groups. For example, is there

More information

Lecture 2 Estimating the population mean

Lecture 2 Estimating the population mean Lecture 2 Estimating the population mean 1 Estimating the mean of a population Estimator = function of a sample of data drawn randomly from the population. Estimate = numerical value of the estimator,

More information

Statistics for IT Managers

Statistics for IT Managers Statistics for IT Managers 95-796, Fall 2012 Module 2: Hypothesis Testing and Statistical Inference (5 lectures) Reading: Statistics for Business and Economics, Ch. 5-7 Confidence intervals Given the sample

More information

P-values and statistical tests 3. t-test

P-values and statistical tests 3. t-test P-values and statistical tests 3. t-test Marek Gierliński Division of Computational Biology Hand-outs available at http://is.gd/statlec Statistical test Null hypothesis H 0 : no effect Significance level

More information

Independent Samples t tests. Background for Independent Samples t test

Independent Samples t tests. Background for Independent Samples t test Independent Samples t tests Dr. J. Kyle Roberts Southern Methodist University Simmons School of Education and Human Development Department of Teaching and Learning Background for Independent Samples t

More information

GROUPED DATA E.G. FOR SAMPLE OF RAW DATA (E.G. 4, 12, 7, 5, MEAN G x / n STANDARD DEVIATION MEDIAN AND QUARTILES STANDARD DEVIATION

GROUPED DATA E.G. FOR SAMPLE OF RAW DATA (E.G. 4, 12, 7, 5, MEAN G x / n STANDARD DEVIATION MEDIAN AND QUARTILES STANDARD DEVIATION FOR SAMPLE OF RAW DATA (E.G. 4, 1, 7, 5, 11, 6, 9, 7, 11, 5, 4, 7) BE ABLE TO COMPUTE MEAN G / STANDARD DEVIATION MEDIAN AND QUARTILES Σ ( Σ) / 1 GROUPED DATA E.G. AGE FREQ. 0-9 53 10-19 4...... 80-89

More information

z and t tests for the mean of a normal distribution Confidence intervals for the mean Binomial tests

z and t tests for the mean of a normal distribution Confidence intervals for the mean Binomial tests z and t tests for the mean of a normal distribution Confidence intervals for the mean Binomial tests Chapters 3.5.1 3.5.2, 3.3.2 Prof. Tesler Math 283 Fall 2018 Prof. Tesler z and t tests for mean Math

More information

Class 24. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700

Class 24. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700 Class 4 Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science Copyright 013 by D.B. Rowe 1 Agenda: Recap Chapter 9. and 9.3 Lecture Chapter 10.1-10.3 Review Exam 6 Problem Solving

More information

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

The t-distribution. Patrick Breheny. October 13. z tests The χ 2 -distribution The t-distribution Summary Patrick Breheny October 13 Patrick Breheny Biostatistical Methods I (BIOS 5710) 1/25 Introduction Introduction What s wrong with z-tests? So far we ve (thoroughly!) discussed how to carry out hypothesis

More information

Chapter 26: Comparing Counts (Chi Square)

Chapter 26: Comparing Counts (Chi Square) Chapter 6: Comparing Counts (Chi Square) We ve seen that you can turn a qualitative variable into a quantitative one (by counting the number of successes and failures), but that s a compromise it forces

More information

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples Objective Section 9.4 Inferences About Two Means (Matched Pairs) Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means

More information

" M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2

 M A #M B. Standard deviation of the population (Greek lowercase letter sigma) σ 2 Notation and Equations for Final Exam Symbol Definition X The variable we measure in a scientific study n The size of the sample N The size of the population M The mean of the sample µ The mean of the

More information

Business Statistics. Lecture 10: Course Review

Business Statistics. Lecture 10: Course Review Business Statistics Lecture 10: Course Review 1 Descriptive Statistics for Continuous Data Numerical Summaries Location: mean, median Spread or variability: variance, standard deviation, range, percentiles,

More information

Data Analysis and Statistical Methods Statistics 651

Data Analysis and Statistical Methods Statistics 651 Data Analysis and Statistical Methods Statistics 651 http://www.stat.tamu.edu/~suhasini/teaching.html Suhasini Subba Rao Motivations for the ANOVA We defined the F-distribution, this is mainly used in

More information

Estimating the accuracy of a hypothesis Setting. Assume a binary classification setting

Estimating the accuracy of a hypothesis Setting. Assume a binary classification setting Estimating the accuracy of a hypothesis Setting Assume a binary classification setting Assume input/output pairs (x, y) are sampled from an unknown probability distribution D = p(x, y) Train a binary classifier

More information

Outline. Unit 3: Inferential Statistics for Continuous Data. Outline. Inferential statistics for continuous data. Inferential statistics Preliminaries

Outline. Unit 3: Inferential Statistics for Continuous Data. Outline. Inferential statistics for continuous data. Inferential statistics Preliminaries Unit 3: Inferential Statistics for Continuous Data Statistics for Linguists with R A SIGIL Course Designed by Marco Baroni 1 and Stefan Evert 1 Center for Mind/Brain Sciences (CIMeC) University of Trento,

More information

Chapter 22. Comparing Two Proportions 1 /29

Chapter 22. Comparing Two Proportions 1 /29 Chapter 22 Comparing Two Proportions 1 /29 Homework p519 2, 4, 12, 13, 15, 17, 18, 19, 24 2 /29 Objective Students test null and alternate hypothesis about two population proportions. 3 /29 Comparing Two

More information

Chapter 11. Hypothesis Testing (II)

Chapter 11. Hypothesis Testing (II) Chapter 11. Hypothesis Testing (II) 11.1 Likelihood Ratio Tests one of the most popular ways of constructing tests when both null and alternative hypotheses are composite (i.e. not a single point). Let

More information

PHP2510: Principles of Biostatistics & Data Analysis. Lecture X: Hypothesis testing. PHP 2510 Lec 10: Hypothesis testing 1

PHP2510: Principles of Biostatistics & Data Analysis. Lecture X: Hypothesis testing. PHP 2510 Lec 10: Hypothesis testing 1 PHP2510: Principles of Biostatistics & Data Analysis Lecture X: Hypothesis testing PHP 2510 Lec 10: Hypothesis testing 1 In previous lectures we have encountered problems of estimating an unknown population

More information

CENTRAL LIMIT THEOREM (CLT)

CENTRAL LIMIT THEOREM (CLT) CENTRAL LIMIT THEOREM (CLT) A sampling distribution is the probability distribution of the sample statistic that is formed when samples of size n are repeatedly taken from a population. If the sample statistic

More information

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings

BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings BIO5312 Biostatistics Lecture 6: Statistical hypothesis testings Yujin Chung October 4th, 2016 Fall 2016 Yujin Chung Lec6: Statistical hypothesis testings Fall 2016 1/30 Previous Two types of statistical

More information

Testing Independence

Testing Independence Testing Independence Dipankar Bandyopadhyay Department of Biostatistics, Virginia Commonwealth University BIOS 625: Categorical Data & GLM 1/50 Testing Independence Previously, we looked at RR = OR = 1

More information

Design of Engineering Experiments Part 2 Basic Statistical Concepts Simple comparative experiments

Design of Engineering Experiments Part 2 Basic Statistical Concepts Simple comparative experiments Design of Engineering Experiments Part 2 Basic Statistical Concepts Simple comparative experiments The hypothesis testing framework The two-sample t-test Checking assumptions, validity Comparing more that

More information

Chapter 5 Confidence Intervals

Chapter 5 Confidence Intervals Chapter 5 Confidence Intervals Confidence Intervals about a Population Mean, σ, Known Abbas Motamedi Tennessee Tech University A point estimate: a single number, calculated from a set of data, that is

More information

Hypothesis Testing One Sample Tests

Hypothesis Testing One Sample Tests STATISTICS Lecture no. 13 Department of Econometrics FEM UO Brno office 69a, tel. 973 442029 email:jiri.neubauer@unob.cz 12. 1. 2010 Tests on Mean of a Normal distribution Tests on Variance of a Normal

More information

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between

7.2 One-Sample Correlation ( = a) Introduction. Correlation analysis measures the strength and direction of association between 7.2 One-Sample Correlation ( = a) Introduction Correlation analysis measures the strength and direction of association between variables. In this chapter we will test whether the population correlation

More information

Hypothesis testing Goodness of fit Multicollinearity Prediction. Applied Statistics. Lecturer: Serena Arima

Hypothesis testing Goodness of fit Multicollinearity Prediction. Applied Statistics. Lecturer: Serena Arima Applied Statistics Lecturer: Serena Arima Hypothesis testing for the linear model Under the Gauss-Markov assumptions and the normality of the error terms, we saw that β N(β, σ 2 (X X ) 1 ) and hence s

More information

Chapter 22. Comparing Two Proportions 1 /30

Chapter 22. Comparing Two Proportions 1 /30 Chapter 22 Comparing Two Proportions 1 /30 Homework p519 2, 4, 12, 13, 15, 17, 18, 19, 24 2 /30 3 /30 Objective Students test null and alternate hypothesis about two population proportions. 4 /30 Comparing

More information

CHAPTER 10 ONE-WAY ANALYSIS OF VARIANCE. It would be very unusual for all the research one might conduct to be restricted to

CHAPTER 10 ONE-WAY ANALYSIS OF VARIANCE. It would be very unusual for all the research one might conduct to be restricted to CHAPTER 10 ONE-WAY ANALYSIS OF VARIANCE It would be very unusual for all the research one might conduct to be restricted to comparisons of only two samples. Respondents and various groups are seldom divided

More information

Review 6. n 1 = 85 n 2 = 75 x 1 = x 2 = s 1 = 38.7 s 2 = 39.2

Review 6. n 1 = 85 n 2 = 75 x 1 = x 2 = s 1 = 38.7 s 2 = 39.2 Review 6 Use the traditional method to test the given hypothesis. Assume that the samples are independent and that they have been randomly selected ) A researcher finds that of,000 people who said that

More information

T test for two Independent Samples. Raja, BSc.N, DCHN, RN Nursing Instructor Acknowledgement: Ms. Saima Hirani June 07, 2016

T test for two Independent Samples. Raja, BSc.N, DCHN, RN Nursing Instructor Acknowledgement: Ms. Saima Hirani June 07, 2016 T test for two Independent Samples Raja, BSc.N, DCHN, RN Nursing Instructor Acknowledgement: Ms. Saima Hirani June 07, 2016 Q1. The mean serum creatinine level is measured in 36 patients after they received

More information

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

Summary: the confidence interval for the mean (σ 2 known) with gaussian assumption Summary: the confidence interval for the mean (σ known) with gaussian assumption on X Let X be a Gaussian r.v. with mean µ and variance σ. If X 1, X,..., X n is a random sample drawn from X then the confidence

More information

Unit4: Inferencefornumericaldata. 1. Inference using the t-distribution. Sta Fall Duke University, Department of Statistical Science

Unit4: Inferencefornumericaldata. 1. Inference using the t-distribution. Sta Fall Duke University, Department of Statistical Science Unit4: Inferencefornumericaldata 1. Inference using the t-distribution Sta 101 - Fall 2015 Duke University, Department of Statistical Science Dr. Çetinkaya-Rundel Slides posted at http://bit.ly/sta101_f15

More information

Statistical Analysis How do we know if it works? Group workbook: Cartoon from XKCD.com. Subscribe!

Statistical Analysis How do we know if it works? Group workbook: Cartoon from XKCD.com. Subscribe! Statistical Analysis How do we know if it works? Group workbook: Cartoon from XKCD.com. Subscribe! http://www.xkcd.com/552/ Significant Concepts We structure the presentation and processing of data to

More information

Chapter 23. Inference About Means

Chapter 23. Inference About Means Chapter 23 Inference About Means 1 /57 Homework p554 2, 4, 9, 10, 13, 15, 17, 33, 34 2 /57 Objective Students test null and alternate hypotheses about a population mean. 3 /57 Here We Go Again Now that

More information

Medical statistics part I, autumn 2010: One sample test of hypothesis

Medical statistics part I, autumn 2010: One sample test of hypothesis Medical statistics part I, autumn 2010: One sample test of hypothesis Eirik Skogvoll Consultant/ Professor Faculty of Medicine Dept. of Anaesthesiology and Emergency Medicine 1 What is a hypothesis test?

More information

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t =

Sampling distribution of t. 2. Sampling distribution of t. 3. Example: Gas mileage investigation. II. Inferential Statistics (8) t = 2. The distribution of t values that would be obtained if a value of t were calculated for each sample mean for all possible random of a given size from a population _ t ratio: (X - µ hyp ) t s x The result

More information

HYPOTHESIS TESTING II TESTS ON MEANS. Sorana D. Bolboacă

HYPOTHESIS TESTING II TESTS ON MEANS. Sorana D. Bolboacă HYPOTHESIS TESTING II TESTS ON MEANS Sorana D. Bolboacă OBJECTIVES Significance value vs p value Parametric vs non parametric tests Tests on means: 1 Dec 14 2 SIGNIFICANCE LEVEL VS. p VALUE Materials and

More information

Statistical Analysis for QBIC Genetics Adapted by Ellen G. Dow 2017

Statistical Analysis for QBIC Genetics Adapted by Ellen G. Dow 2017 Statistical Analysis for QBIC Genetics Adapted by Ellen G. Dow 2017 I. χ 2 or chi-square test Objectives: Compare how close an experimentally derived value agrees with an expected value. One method to

More information

Mathematical Notation Math Introduction to Applied Statistics

Mathematical Notation Math Introduction to Applied Statistics Mathematical Notation Math 113 - Introduction to Applied Statistics Name : Use Word or WordPerfect to recreate the following documents. Each article is worth 10 points and should be emailed to the instructor

More information

(right tailed) or minus Z α. (left-tailed). For a two-tailed test the critical Z value is going to be.

(right tailed) or minus Z α. (left-tailed). For a two-tailed test the critical Z value is going to be. More Power Stuff What is the statistical power of a hypothesis test? Statistical power is the probability of rejecting the null conditional on the null being false. In mathematical terms it is ( reject

More information

Chapter 9 Inferences from Two Samples

Chapter 9 Inferences from Two Samples Chapter 9 Inferences from Two Samples 9-1 Review and Preview 9-2 Two Proportions 9-3 Two Means: Independent Samples 9-4 Two Dependent Samples (Matched Pairs) 9-5 Two Variances or Standard Deviations Review

More information

Theoretical Foundations

Theoretical Foundations Theoretical Foundations Sampling Distribution and Central Limit Theorem Monia Ranalli monia.ranalli@uniroma3.it Ranalli M. Theoretical Foundations - Sampling Distribution and Central Limit Theorem Lesson

More information

Review of probability and statistics 1 / 31

Review of probability and statistics 1 / 31 Review of probability and statistics 1 / 31 2 / 31 Why? This chapter follows Stock and Watson (all graphs are from Stock and Watson). You may as well refer to the appendix in Wooldridge or any other introduction

More information

Exam 2 (KEY) July 20, 2009

Exam 2 (KEY) July 20, 2009 STAT 2300 Business Statistics/Summer 2009, Section 002 Exam 2 (KEY) July 20, 2009 Name: USU A#: Score: /225 Directions: This exam consists of six (6) questions, assessing material learned within Modules

More information

Inference for Single Proportions and Means T.Scofield

Inference for Single Proportions and Means T.Scofield Inference for Single Proportions and Means TScofield Confidence Intervals for Single Proportions and Means A CI gives upper and lower bounds between which we hope to capture the (fixed) population parameter

More information

Slides for Data Mining by I. H. Witten and E. Frank

Slides for Data Mining by I. H. Witten and E. Frank Slides for Data Mining by I. H. Witten and E. Frank Predicting performance Assume the estimated error rate is 5%. How close is this to the true error rate? Depends on the amount of test data Prediction

More information

CHAPTER 10. Regression and Correlation

CHAPTER 10. Regression and Correlation CHAPTER 10 Regression and Correlation In this Chapter we assess the strength of the linear relationship between two continuous variables. If a significant linear relationship is found, the next step would

More information

MS&E 226: Small Data

MS&E 226: Small Data MS&E 226: Small Data Lecture 15: Examples of hypothesis tests (v5) Ramesh Johari ramesh.johari@stanford.edu 1 / 32 The recipe 2 / 32 The hypothesis testing recipe In this lecture we repeatedly apply the

More information

1) Answer the following questions with one or two short sentences.

1) Answer the following questions with one or two short sentences. 1) Answer the following questions with one or two short sentences. a) What is power and how can you increase it? (2 marks) Power is the probability of rejecting a false null hypothesis. It may be increased

More information

Chapter 12: Estimation

Chapter 12: Estimation Chapter 12: Estimation Estimation In general terms, estimation uses a sample statistic as the basis for estimating the value of the corresponding population parameter. Although estimation and hypothesis

More information

Normal (Gaussian) distribution The normal distribution is often relevant because of the Central Limit Theorem (CLT):

Normal (Gaussian) distribution The normal distribution is often relevant because of the Central Limit Theorem (CLT): Lecture Three Normal theory null distributions Normal (Gaussian) distribution The normal distribution is often relevant because of the Central Limit Theorem (CLT): A random variable which is a sum of many

More information

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:

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: CHAPTER 9, 10 Hypothesis Testing Similar to a courtroom trial. In trying a person for a crime, the jury needs to decide between one of two possibilities: The person is guilty. The person is innocent. To

More information