Having seen how statistics vary, we use them to say something about the population. Inference does this in two ways. It estimates an unknown parameter, or it decides whether a claim about the parameter is supported by the sample.

Estimation

Estimation gives a value or range for an unknown parameter. A point estimate is a single number, such as using x-bar for mu. An interval estimate gives a range that is expected to contain the parameter with a stated confidence. A good estimator is unbiased, which means that its average over all samples equals the parameter, and has small variance. The sample mean is an unbiased estimator of mu.

Hypothesis Testing: Basic Ideas

Hypothesis testing uses sample data to decide between two competing statements about a parameter. The null hypothesis H0 is the statement being tested, usually that there is no change or difference. The alternative hypothesis H1 is what we accept if H0 is rejected. A test statistic is calculated from the sample, and it is compared with a critical value that depends on the level of significance alpha, the probability of rejecting H0 when it is true. Common values of alpha are 0.05 and 0.01. A two-tailed test is used when H1 says "not equal", and a one-tailed test when H1 says "greater than" or "less than".

Definition: Hypothesis testing. A procedure that uses sample data to decide whether to reject a null hypothesis about a population parameter at a stated level of significance.

Errors in Testing

Two kinds of wrong decisions are possible. A Type I error is rejecting H0 when it is true, and its probability is alpha. A Type II error is accepting H0 when it is false, with probability beta. Reducing alpha makes Type II errors more likely unless the sample size is increased. The only way to lower both errors together is to take a larger sample. The power of a test, equal to 1 - beta, is the probability of correctly rejecting a false null hypothesis.

Table 4.2: Decisions and errors in a test

Decision H0 true H0 false
Reject H0 Type I error Correct decision
Accept H0 Correct decision Type II error

Example 4.2: Choosing the hypotheses

Problem: A maker claims that the mean life of a bulb is 1000 hours. A buyer suspects it is less. State H0 and H1 and the type of test.

Solution:

  1. The claim being tested is mu = 1000, so H0: mu = 1000.
  2. The suspicion is that life is less, so H1: mu is less than 1000.

Result: The test is a one-tailed (left-tailed) test.

Common mistakes

  • Writing H0 as the claim the researcher hopes to prove. H0 is the no-change statement.
  • Saying that H0 is "proved true" when it is not rejected. It is only not rejected.
  • Using a two-tailed critical value for a one-tailed test.

Key takeaways

  • Estimation gives a value or interval for a parameter.
  • H0 is the null hypothesis and H1 the alternative.
  • Type I error means rejecting a true H0, with probability alpha.
  • Type II error means accepting a false H0, with probability beta.

Practice questions

  1. What is a Type I error?
  2. What is the level of significance?
  3. When is a one-tailed test used?

Answers to the practice questions

  1. Rejecting the null hypothesis when it is true.
  2. The probability of a Type I error, written alpha.
  3. When the alternative says greater than or less than.

Sources

  • Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit IV