Inference for a mean

Practicing Statistics Interview Questions in R

Zuzanna Chmielewska

Actuary

Inference for a mean

medication

Practicing Statistics Interview Questions in R

Inference for a mean

  • confidence interval
  • one-sample mean
Practicing Statistics Interview Questions in R

Assumptions

The t-test's assumptions:

  • normally distributed underlying data (recall CLT!)
  • random sample
  • independent observations
Practicing Statistics Interview Questions in R

Confidence interval

a distribution with sample data points

Practicing Statistics Interview Questions in R

Confidence interval

a distribution with sample data points and a confidence interval

Practicing Statistics Interview Questions in R

Confidence interval

a distribution with sample data points and a confidence interval

Practicing Statistics Interview Questions in R

Confidence interval

a distribution with sample data points and a confidence interval

Practicing Statistics Interview Questions in R

95% confidence interval

100 samples

Practicing Statistics Interview Questions in R

95% confidence interval

100 samples and their confidence intervals

Practicing Statistics Interview Questions in R

95% confidence interval

100 samples, their confidence intervals and the indicator if the confidence intervals contains the true mean

Practicing Statistics Interview Questions in R

95% confidence interval

100 samples, their confidence intervals and the indicator if the confidence intervals contains the true mean

Practicing Statistics Interview Questions in R

One-sample t-test

$$H_{0}: \mu = \mu_{0}$$

$$H_{1}: \mu \neq \mu_{0}$$

where:

$\mu$ - the population's mean

$\mu_{0}$ - the hypothesized mean

Practicing Statistics Interview Questions in R

t-test in R

t.test(x)

the t.test function's console output

Practicing Statistics Interview Questions in R

t-test in R

t.test(x)

the t.test function's console output

Practicing Statistics Interview Questions in R

t-test in R

t.test(x)

the t.test function's console output

Practicing Statistics Interview Questions in R

t-test in R

t.test(x, mu = 2)

the t.test function's console output

Practicing Statistics Interview Questions in R

t-test in R

t.test(x, mu = 2, conf.level = 0.9)

the t.test function's console output

Practicing Statistics Interview Questions in R

Summary

  • t-test's assumptions
  • confidence interval
  • one-sample t-test
  • t.test() in R
Practicing Statistics Interview Questions in R

Let's practice!

Practicing Statistics Interview Questions in R

Preparing Video For Download...