Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for...

163
Review

Transcript of Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for...

Page 1: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

Review

Page 2: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Variables - Catigorical v.s. Quantitative

• Graphs for distributional information: Pie chart, Bar graph,Histogram, Stemplot, Timeplot, Boxplot

• Overall pattern of the graph: Symetric/Skewed, Center,Spread, Outlier, Trend

Page 3: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Variables - Catigorical v.s. Quantitative

• Graphs for distributional information: Pie chart, Bar graph,Histogram, Stemplot, Timeplot, Boxplot

• Overall pattern of the graph: Symetric/Skewed, Center,Spread, Outlier, Trend

Page 4: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Variables - Catigorical v.s. Quantitative

• Graphs for distributional information: Pie chart, Bar graph,Histogram, Stemplot, Timeplot, Boxplot

• Overall pattern of the graph: Symetric/Skewed, Center,Spread, Outlier, Trend

Page 5: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Measure of center: Mean/Median

• Measure of variability: Quartiles (Q1,Q2,Q3), Range, IQR,1.5×IQR rule, Outlier, Variance, Standard deviation

• Five-number summary, Boxplot

Page 6: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Measure of center: Mean/Median

• Measure of variability: Quartiles (Q1,Q2,Q3), Range, IQR,1.5×IQR rule, Outlier, Variance, Standard deviation

• Five-number summary, Boxplot

Page 7: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Measure of center: Mean/Median

• Measure of variability: Quartiles (Q1,Q2,Q3), Range, IQR,1.5×IQR rule, Outlier, Variance, Standard deviation

• Five-number summary, Boxplot

Page 8: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Density curve

• Normal distributions / Normal curves

• z-score, Standard normal distribution

• 68− 95− 99.7 rule, Probabilities for normal distribution

Page 9: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Density curve

• Normal distributions / Normal curves

• z-score, Standard normal distribution

• 68− 95− 99.7 rule, Probabilities for normal distribution

Page 10: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Density curve

• Normal distributions / Normal curves

• z-score, Standard normal distribution

• 68− 95− 99.7 rule, Probabilities for normal distribution

Page 11: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Density curve

• Normal distributions / Normal curves

• z-score, Standard normal distribution

• 68− 95− 99.7 rule, Probabilities for normal distribution

Page 12: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Explanatory variable / Response variable

• Scatterplot: Direction (Positive / Negative), Form (Linear /Nonlinear), Strength, Outlier

• Correlation

Page 13: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Explanatory variable / Response variable

• Scatterplot: Direction (Positive / Negative), Form (Linear /Nonlinear), Strength, Outlier

• Correlation

Page 14: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Explanatory variable / Response variable

• Scatterplot: Direction (Positive / Negative), Form (Linear /Nonlinear), Strength, Outlier

• Correlation

Page 15: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Linear regression: y = a + bx ; Slope b, Intercept a,Predication

• Correlation and regression, r2, Residual

• Cautions for regression: Influential observations,Extrapolation, Lurking variables

Page 16: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Linear regression: y = a + bx ; Slope b, Intercept a,Predication

• Correlation and regression, r2, Residual

• Cautions for regression: Influential observations,Extrapolation, Lurking variables

Page 17: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Linear regression: y = a + bx ; Slope b, Intercept a,Predication

• Correlation and regression, r2, Residual

• Cautions for regression: Influential observations,Extrapolation, Lurking variables

Page 18: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Sample / Population

• Random sampling design: Simple random sample (SRS),Stratified random sample, Multistage sample

• Bad samples: Voluntary response sample, Convenience sample

Page 19: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Sample / Population

• Random sampling design: Simple random sample (SRS),Stratified random sample, Multistage sample

• Bad samples: Voluntary response sample, Convenience sample

Page 20: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Sample / Population

• Random sampling design: Simple random sample (SRS),Stratified random sample, Multistage sample

• Bad samples: Voluntary response sample, Convenience sample

Page 21: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Observational studies & Experimental studies (experiments)

• Treatments / Factors

• Design of experiments:

control (comparison, placebo)randomization (table of random digits, double-blind)matched pairs design / Block design

Page 22: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Observational studies & Experimental studies (experiments)

• Treatments / Factors

• Design of experiments:

control (comparison, placebo)randomization (table of random digits, double-blind)matched pairs design / Block design

Page 23: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Observational studies & Experimental studies (experiments)

• Treatments / Factors

• Design of experiments:

control (comparison, placebo)randomization (table of random digits, double-blind)matched pairs design / Block design

Page 24: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Observational studies & Experimental studies (experiments)

• Treatments / Factors

• Design of experiments:

control (comparison, placebo)

randomization (table of random digits, double-blind)matched pairs design / Block design

Page 25: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Observational studies & Experimental studies (experiments)

• Treatments / Factors

• Design of experiments:

control (comparison, placebo)randomization (table of random digits, double-blind)

matched pairs design / Block design

Page 26: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Observational studies & Experimental studies (experiments)

• Treatments / Factors

• Design of experiments:

control (comparison, placebo)randomization (table of random digits, double-blind)matched pairs design / Block design

Page 27: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 28: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 29: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 1

2. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 30: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 1

3. if two events A and B are disjoint, thenP(A or B) = P(A) + P(B)

4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 31: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)

4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 32: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 33: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 34: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Probability: Sample space (S) & Events

• Rules for probability model:

1. for any event A, 0 ≤ P(A) ≤ 12. for sample space S , P(S) = 13. if two events A and B are disjoint, then

P(A or B) = P(A) + P(B)4. for any event A, P(A does not occur) = 1− P(A)

• Discrete probability models / Continuous probability models

• Random variables / Distributions

Page 35: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ∗ standard deviation of x equals σ√

n, where σ is the

population standard deviation and n is the sample size∗ if the population has a normal distribution, then

x ∼ N(µ, σ/√

n)∗ central limit theorem: if the sample size is large

(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 36: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ∗ standard deviation of x equals σ√

n, where σ is the

population standard deviation and n is the sample size∗ if the population has a normal distribution, then

x ∼ N(µ, σ/√

n)∗ central limit theorem: if the sample size is large

(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 37: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ∗ standard deviation of x equals σ√

n, where σ is the

population standard deviation and n is the sample size∗ if the population has a normal distribution, then

x ∼ N(µ, σ/√

n)∗ central limit theorem: if the sample size is large

(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 38: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ

∗ standard deviation of x equals σ√n

, where σ is the

population standard deviation and n is the sample size∗ if the population has a normal distribution, then

x ∼ N(µ, σ/√

n)∗ central limit theorem: if the sample size is large

(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 39: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ∗ standard deviation of x equals σ√

n, where σ is the

population standard deviation and n is the sample size

∗ if the population has a normal distribution, thenx ∼ N(µ, σ/

√n)

∗ central limit theorem: if the sample size is large(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 40: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ∗ standard deviation of x equals σ√

n, where σ is the

population standard deviation and n is the sample size∗ if the population has a normal distribution, then

x ∼ N(µ, σ/√

n)

∗ central limit theorem: if the sample size is large(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 41: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Population / Sample; Parameters / Statistics

µ / x , σ / s, p / p

• Statistics are random variables

• Sampling distribution of the sample mean x for an SRS:

∗ mean of x equals the population mean µ∗ standard deviation of x equals σ√

n, where σ is the

population standard deviation and n is the sample size∗ if the population has a normal distribution, then

x ∼ N(µ, σ/√

n)∗ central limit theorem: if the sample size is large

(n ≥ 30), then x is approximately normal, i.e.

xapprox∼ N(µ, σ/

√n)

Page 42: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Confidence intervals:

∗ form: estimate ± margin of error / interpretation

∗(

x − z∗σ√n, x + z∗

σ√n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2

Page 43: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Confidence intervals:

∗ form: estimate ± margin of error / interpretation

∗(

x − z∗σ√n, x + z∗

σ√n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2

Page 44: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Confidence intervals:

∗ form: estimate ± margin of error / interpretation

∗(

x − z∗σ√n, x + z∗

σ√n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2

Page 45: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Confidence intervals:

∗ form: estimate ± margin of error / interpretation

∗(

x − z∗σ√n, x + z∗

σ√n

)

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2

Page 46: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Confidence intervals:

∗ form: estimate ± margin of error / interpretation

∗(

x − z∗σ√n, x + z∗

σ√n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2

Page 47: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 48: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 49: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 50: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n

∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 51: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 52: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 53: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 54: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 55: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with known σ — z-procedures (confidenceinterval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: z =x − µ0

σ/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto z

? Ha : µ < µ0 — lower tail probability correspondingto z

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

Page 56: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Assumptions for z-procedures:

∗ the sample is an SRS∗ the population has a normal distribution∗ the population standard deviation σ is known

• Margin of errors in confidence intervals are affected by C , σand n

to get a level C C.I. with margin of m, we need an SRSwith sample size

n =

(z∗σ

m

)2

• The significance of test will also be affected by sample size

Page 57: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Assumptions for z-procedures:

∗ the sample is an SRS

∗ the population has a normal distribution∗ the population standard deviation σ is known

• Margin of errors in confidence intervals are affected by C , σand n

to get a level C C.I. with margin of m, we need an SRSwith sample size

n =

(z∗σ

m

)2

• The significance of test will also be affected by sample size

Page 58: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Assumptions for z-procedures:

∗ the sample is an SRS∗ the population has a normal distribution

∗ the population standard deviation σ is known

• Margin of errors in confidence intervals are affected by C , σand n

to get a level C C.I. with margin of m, we need an SRSwith sample size

n =

(z∗σ

m

)2

• The significance of test will also be affected by sample size

Page 59: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Assumptions for z-procedures:

∗ the sample is an SRS∗ the population has a normal distribution∗ the population standard deviation σ is known

• Margin of errors in confidence intervals are affected by C , σand n

to get a level C C.I. with margin of m, we need an SRSwith sample size

n =

(z∗σ

m

)2

• The significance of test will also be affected by sample size

Page 60: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Assumptions for z-procedures:

∗ the sample is an SRS∗ the population has a normal distribution∗ the population standard deviation σ is known

• Margin of errors in confidence intervals are affected by C , σand n

to get a level C C.I. with margin of m, we need an SRSwith sample size

n =

(z∗σ

m

)2

• The significance of test will also be affected by sample size

Page 61: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Assumptions for z-procedures:

∗ the sample is an SRS∗ the population has a normal distribution∗ the population standard deviation σ is known

• Margin of errors in confidence intervals are affected by C , σand n

to get a level C C.I. with margin of m, we need an SRSwith sample size

n =

(z∗σ

m

)2

• The significance of test will also be affected by sample size

Page 62: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Standard error:s√n

• t-distribution; degrees of freedom (n − 1)

• Confidence intervals:

∗(

x − t∗s√n, x + t∗

s√n

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2

Page 63: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Standard error:s√n

• t-distribution; degrees of freedom (n − 1)

• Confidence intervals:

∗(

x − t∗s√n, x + t∗

s√n

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2

Page 64: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Standard error:s√n

• t-distribution; degrees of freedom (n − 1)

• Confidence intervals:

∗(

x − t∗s√n, x + t∗

s√n

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2

Page 65: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Standard error:s√n

• t-distribution; degrees of freedom (n − 1)

• Confidence intervals:

∗(

x − t∗s√n, x + t∗

s√n

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2

Page 66: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Standard error:s√n

• t-distribution; degrees of freedom (n − 1)

• Confidence intervals:

∗(

x − t∗s√n, x + t∗

s√n

)

∗ t∗ is determined by the confidence level C — the t-scorecorresponding to the upper tail (1− C )/2

Page 67: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Standard error:s√n

• t-distribution; degrees of freedom (n − 1)

• Confidence intervals:

∗(

x − t∗s√n, x + t∗

s√n

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2

Page 68: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 69: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 70: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 71: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n

∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 72: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 73: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 74: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 75: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 76: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about µ with unknown σ — t-procedures(confidence interval & test of significance)

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ = µ0

∗ test statistics: t =x − µ0

s/√

n∗ P-value:

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 77: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Standard error for x1 − x2:√s21

n1+

s22

n2

• Confidence interval for µ1 − µ2:

∗(

(x1 − x2)− t∗

√s21

n1+

s22

n2, (x1 − x2) + t∗

√s21

n1+

s22

n2

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2∗ degrees of freedom: smaller of n1 − 1 and n2 − 1

Page 78: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Standard error for x1 − x2:√s21

n1+

s22

n2

• Confidence interval for µ1 − µ2:

∗(

(x1 − x2)− t∗

√s21

n1+

s22

n2, (x1 − x2) + t∗

√s21

n1+

s22

n2

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2∗ degrees of freedom: smaller of n1 − 1 and n2 − 1

Page 79: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Standard error for x1 − x2:√s21

n1+

s22

n2

• Confidence interval for µ1 − µ2:

∗(

(x1 − x2)− t∗

√s21

n1+

s22

n2, (x1 − x2) + t∗

√s21

n1+

s22

n2

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2∗ degrees of freedom: smaller of n1 − 1 and n2 − 1

Page 80: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Standard error for x1 − x2:√s21

n1+

s22

n2

• Confidence interval for µ1 − µ2:

∗(

(x1 − x2)− t∗

√s21

n1+

s22

n2, (x1 − x2) + t∗

√s21

n1+

s22

n2

)

∗ t∗ is determined by the confidence level C — the t-scorecorresponding to the upper tail (1− C )/2∗ degrees of freedom: smaller of n1 − 1 and n2 − 1

Page 81: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Standard error for x1 − x2:√s21

n1+

s22

n2

• Confidence interval for µ1 − µ2:

∗(

(x1 − x2)− t∗

√s21

n1+

s22

n2, (x1 − x2) + t∗

√s21

n1+

s22

n2

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2

∗ degrees of freedom: smaller of n1 − 1 and n2 − 1

Page 82: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Standard error for x1 − x2:√s21

n1+

s22

n2

• Confidence interval for µ1 − µ2:

∗(

(x1 − x2)− t∗

√s21

n1+

s22

n2, (x1 − x2) + t∗

√s21

n1+

s22

n2

)∗ t∗ is determined by the confidence level C — the t-score

corresponding to the upper tail (1− C )/2∗ degrees of freedom: smaller of n1 − 1 and n2 − 1

Page 83: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|∗ significance level α and conclusion

Page 84: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|∗ significance level α and conclusion

Page 85: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|∗ significance level α and conclusion

Page 86: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|∗ significance level α and conclusion

Page 87: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|∗ significance level α and conclusion

Page 88: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1

? Ha : µ > µ0 — upper tail probability correspondingto t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 89: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t

? Ha : µ < µ0 — lower tail probability correspondingto t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 90: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t

? Ha : µ 6= µ0 — twice upper tail probabilitycorresponding to |t|

∗ significance level α and conclusion

Page 91: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|

∗ significance level α and conclusion

Page 92: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two means — µ1 − µ2

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : µ1 = µ2 (µ1 − µ2 = 0)

∗ test statistics: t =x1 − x2√

s21

n1+

s22

n2

∗ P-value:

? degrees of freedom: smaller of n1 − 1 and n2 − 1? Ha : µ > µ0 — upper tail probability corresponding

to t? Ha : µ < µ0 — lower tail probability corresponding

to t? Ha : µ 6= µ0 — twice upper tail probability

corresponding to |t|∗ significance level α and conclusion

Page 93: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures(confidence interval & test of significance)

• Sampling distribution of the sample proportion p for an SRS:

∗ mean of p equals the population proportion p

∗ standard deviation of p equals

√p(1− p)

n∗ If the sample size is large, p is approximately normal, i.e.

papprox∼ N(p,

√p(1− p)

n)

• Standard error of p:

√p(1− p)

n

Page 94: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures(confidence interval & test of significance)

• Sampling distribution of the sample proportion p for an SRS:

∗ mean of p equals the population proportion p

∗ standard deviation of p equals

√p(1− p)

n∗ If the sample size is large, p is approximately normal, i.e.

papprox∼ N(p,

√p(1− p)

n)

• Standard error of p:

√p(1− p)

n

Page 95: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures(confidence interval & test of significance)

• Sampling distribution of the sample proportion p for an SRS:

∗ mean of p equals the population proportion p

∗ standard deviation of p equals

√p(1− p)

n∗ If the sample size is large, p is approximately normal, i.e.

papprox∼ N(p,

√p(1− p)

n)

• Standard error of p:

√p(1− p)

n

Page 96: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures(confidence interval & test of significance)

• Sampling distribution of the sample proportion p for an SRS:

∗ mean of p equals the population proportion p

∗ standard deviation of p equals

√p(1− p)

n

∗ If the sample size is large, p is approximately normal, i.e.

papprox∼ N(p,

√p(1− p)

n)

• Standard error of p:

√p(1− p)

n

Page 97: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures(confidence interval & test of significance)

• Sampling distribution of the sample proportion p for an SRS:

∗ mean of p equals the population proportion p

∗ standard deviation of p equals

√p(1− p)

n∗ If the sample size is large, p is approximately normal, i.e.

papprox∼ N(p,

√p(1− p)

n)

• Standard error of p:

√p(1− p)

n

Page 98: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures(confidence interval & test of significance)

• Sampling distribution of the sample proportion p for an SRS:

∗ mean of p equals the population proportion p

∗ standard deviation of p equals

√p(1− p)

n∗ If the sample size is large, p is approximately normal, i.e.

papprox∼ N(p,

√p(1− p)

n)

• Standard error of p:

√p(1− p)

n

Page 99: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 100: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 101: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 102: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2

∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 103: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 104: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 105: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)

∗ p =number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 106: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4

∗ Use it when the confidence level is at least 90% and thesample size n is at least 10

Page 107: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Large-sample confidence intervals:

∗(

p − z∗√

p(1− p)

n, p + z∗

√p(1− p)

n

)∗ z∗ is determined by the confidence level C — the z-score

corresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 15 and n(1− p) ≥ 15

• Plus four confidence intervals:

∗(

p − z∗√

p(1− p)

n + 4, p + z∗

√p(1− p)

n + 4

)∗ p =

number of successes in the sample + 2

n + 4∗ Use it when the confidence level is at least 90% and the

sample size n is at least 10

Page 108: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 109: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 110: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 111: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 112: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 113: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 114: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 115: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 116: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 117: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about population proportion p — z-procedures

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p = p0

∗ test statistics: z =p − p0√p0(1−p0)

n

∗ P-value:

? Ha : p > p0 — upper tail probability correspondingto z

? Ha : p < p0 — lower tail probability correspondingto z

? Ha : p 6= p0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when np0 ≥ 10 and n(1− p0) ≥ 10

Page 118: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Sampling distribution of p1 − p2:

∗ mean of p1 − p2 is p1 − p2

∗ standard deviation of p1 − p2 is√p1(1− p1)

n1+

p2(1− p2)

n2

∗ If the sample size is large, p1− p2 is approximately normal

• Standard error of p:

√p1(1− p1)

n1+

p2(1− p2)

n2

Page 119: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Sampling distribution of p1 − p2:

∗ mean of p1 − p2 is p1 − p2

∗ standard deviation of p1 − p2 is√p1(1− p1)

n1+

p2(1− p2)

n2

∗ If the sample size is large, p1− p2 is approximately normal

• Standard error of p:

√p1(1− p1)

n1+

p2(1− p2)

n2

Page 120: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Sampling distribution of p1 − p2:

∗ mean of p1 − p2 is p1 − p2

∗ standard deviation of p1 − p2 is√p1(1− p1)

n1+

p2(1− p2)

n2

∗ If the sample size is large, p1− p2 is approximately normal

• Standard error of p:

√p1(1− p1)

n1+

p2(1− p2)

n2

Page 121: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Sampling distribution of p1 − p2:

∗ mean of p1 − p2 is p1 − p2

∗ standard deviation of p1 − p2 is√p1(1− p1)

n1+

p2(1− p2)

n2

∗ If the sample size is large, p1− p2 is approximately normal

• Standard error of p:

√p1(1− p1)

n1+

p2(1− p2)

n2

Page 122: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Sampling distribution of p1 − p2:

∗ mean of p1 − p2 is p1 − p2

∗ standard deviation of p1 − p2 is√p1(1− p1)

n1+

p2(1− p2)

n2

∗ If the sample size is large, p1− p2 is approximately normal

• Standard error of p:

√p1(1− p1)

n1+

p2(1− p2)

n2

Page 123: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Sampling distribution of p1 − p2:

∗ mean of p1 − p2 is p1 − p2

∗ standard deviation of p1 − p2 is√p1(1− p1)

n1+

p2(1− p2)

n2

∗ If the sample size is large, p1− p2 is approximately normal

• Standard error of p:

√p1(1− p1)

n1+

p2(1− p2)

n2

Page 124: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Large-sample confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1+

p2(1− p2)

n2

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 10 and n(1− p) ≥ 10

Page 125: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Large-sample confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1+

p2(1− p2)

n2

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 10 and n(1− p) ≥ 10

Page 126: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Large-sample confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1+

p2(1− p2)

n2

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 10 and n(1− p) ≥ 10

Page 127: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Large-sample confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1+

p2(1− p2)

n2

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2

∗ Use it only when np ≥ 10 and n(1− p) ≥ 10

Page 128: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Large-sample confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1+

p2(1− p2)

n2

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 10 and n(1− p) ≥ 10

Page 129: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Large-sample confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1+

p2(1− p2)

n2

∗ z∗ is determined by the confidence level C — the z-scorecorresponding to the upper tail (1− C )/2∗ Use it only when np ≥ 10 and n(1− p) ≥ 10

Page 130: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Plus four confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1 + 2+

p2(1− p2)

n2 + 2

∗ pi =number of successes in the i th sample + 1

ni + 2, i = 1, 2

∗ Use it when n1 ≥ 5 and n2 ≥ 5

Page 131: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Plus four confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1 + 2+

p2(1− p2)

n2 + 2

∗ pi =number of successes in the i th sample + 1

ni + 2, i = 1, 2

∗ Use it when n1 ≥ 5 and n2 ≥ 5

Page 132: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Plus four confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1 + 2+

p2(1− p2)

n2 + 2

∗ pi =number of successes in the i th sample + 1

ni + 2, i = 1, 2

∗ Use it when n1 ≥ 5 and n2 ≥ 5

Page 133: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Plus four confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1 + 2+

p2(1− p2)

n2 + 2

∗ pi =number of successes in the i th sample + 1

ni + 2, i = 1, 2

∗ Use it when n1 ≥ 5 and n2 ≥ 5

Page 134: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Inference about two proportions — p1 − p2

• Plus four confidence intervals:

∗(

(p1 − p2)− z∗SE, (p1 + p2) + z∗SE

), where SE is the

standard error of p1 − p2:

SE =

√p1(1− p1)

n1 + 2+

p2(1− p2)

n2 + 2

∗ pi =number of successes in the i th sample + 1

ni + 2, i = 1, 2

∗ Use it when n1 ≥ 5 and n2 ≥ 5

Page 135: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:

∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 136: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)

∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 137: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 138: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)

∗ P-value:? Ha : p1 − p2 > 0 — upper tail probability

corresponding to z? Ha : p1 − p2 < 0 — lower tail probability

corresponding to z? Ha : p1 − p2 6= 0 — twice upper tail probability

corresponding to |z |∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 139: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 140: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 141: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 142: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 143: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion

∗ use this test when counts of successes and failures areeach 5 or more in boh samples

Page 144: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Test of significance:∗ hypotheses: H0 v.s Ha / H0 : p1 = p2 (p1 − p2 = 0)∗ pooled sample proportion p:

p =number of successes in both samples combined

number of individuals in both samples combined

∗ test statistics: z =p1 − p2√

p(1− p)

(1n1

+ 1n2

)∗ P-value:

? Ha : p1 − p2 > 0 — upper tail probabilitycorresponding to z

? Ha : p1 − p2 < 0 — lower tail probabilitycorresponding to z

? Ha : p1 − p2 6= 0 — twice upper tail probabilitycorresponding to |z |

∗ significance level α and conclusion∗ use this test when counts of successes and failures are

each 5 or more in boh samples

Page 145: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 146: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 147: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 148: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 149: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 150: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 151: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for a two-way table

• Hypotheses: H0 : there is no relationship between the twovariables (row variable and column variable) v.s. Ha : there issome relationship

• Compares the observed counts in the cells of the two-waytable with the counts that would be expected if H0 were true

expected count =row total× column total

table total

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: (r − 1)(c − 1), where r is thenumber of rows and c is the number of columns

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 152: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 153: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 154: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 155: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 156: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 157: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 158: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• Chi-square test for goodness of fit

• Null hypothesis: H0 : p1 = p10, p2 = p20, . . . , pk = pk0

• Compares the observed counts of each category with thecounts that would be expected if H0 were true

expected count for category i = npi0

• Chi-square test statistic:

χ2 =∑ (observed count− expected count)2

expected count

• Degrees of freedom of χ2: k − 1, where k is the number ofcategories

• P-value: the area under the chi-square density curve to theright of the value of the test statistic

Page 159: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• One-way analysis of variance (ANOVA) compares the meansof sevral populations.

• Hypotheses for ANOVA F -test: H0 : all the populations havethe same mean v.s. Ha : not all the means are the same

F =variation among the sample means

variation among individuals among the same sample

degrees of freedom for the numerator is I − 1 and degrees offreedom for the denominator is N − I , where I is the numberof populations and N is the total number of observations fromI samples

• Conditions for use ANOVA: independent SRS from eachpopulation; each population is Normally distributed; allpopulations have the same standard deviation

Page 160: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• One-way analysis of variance (ANOVA) compares the meansof sevral populations.

• Hypotheses for ANOVA F -test: H0 : all the populations havethe same mean v.s. Ha : not all the means are the same

F =variation among the sample means

variation among individuals among the same sample

degrees of freedom for the numerator is I − 1 and degrees offreedom for the denominator is N − I , where I is the numberof populations and N is the total number of observations fromI samples

• Conditions for use ANOVA: independent SRS from eachpopulation; each population is Normally distributed; allpopulations have the same standard deviation

Page 161: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• One-way analysis of variance (ANOVA) compares the meansof sevral populations.

• Hypotheses for ANOVA F -test: H0 : all the populations havethe same mean v.s. Ha : not all the means are the same

F =variation among the sample means

variation among individuals among the same sample

degrees of freedom for the numerator is I − 1 and degrees offreedom for the denominator is N − I , where I is the numberof populations and N is the total number of observations fromI samples

• Conditions for use ANOVA: independent SRS from eachpopulation; each population is Normally distributed; allpopulations have the same standard deviation

Page 162: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• One-way analysis of variance (ANOVA) compares the meansof sevral populations.

• Hypotheses for ANOVA F -test: H0 : all the populations havethe same mean v.s. Ha : not all the means are the same

F =variation among the sample means

variation among individuals among the same sample

degrees of freedom for the numerator is I − 1 and degrees offreedom for the denominator is N − I , where I is the numberof populations and N is the total number of observations fromI samples

• Conditions for use ANOVA: independent SRS from eachpopulation; each population is Normally distributed; allpopulations have the same standard deviation

Page 163: Review - math.utah.edulzhang/teaching... · Variables - Catigorical v.s. Quantitative Graphs for distributional information: Pie chart, Bar graph, Histogram, Stemplot, Timeplot, Boxplot

• One-way analysis of variance (ANOVA) compares the meansof sevral populations.

• Hypotheses for ANOVA F -test: H0 : all the populations havethe same mean v.s. Ha : not all the means are the same

F =variation among the sample means

variation among individuals among the same sample

degrees of freedom for the numerator is I − 1 and degrees offreedom for the denominator is N − I , where I is the numberof populations and N is the total number of observations fromI samples

• Conditions for use ANOVA: independent SRS from eachpopulation; each population is Normally distributed; allpopulations have the same standard deviation