9 Statistical Hypothesis Testing And Applications

Basic Statistics · Unit 9

Statistical Hypothesis Testing and Applications

Exam-focused notes for Statistical Hypothesis Testing and Applications (Basic Statistics, STA154): what the TU syllabus asks and how it has actually been tested, with 2 solved past questions from this unit.

Statistical Hypothesis Testing and Applications in short

Hypothesis testing lets us judge a claim using sample data. This chapter also shows how statistics is applied in IT systems, in quality control and in decisions based on expected value.

Statistical Hypothesis Testing and Applications: notes

Hypothesis testing concepts

A hypothesis is a statement about a population parameter. Two hypotheses are set up:

  • Null hypothesis $H_0$: the claim of no difference or no effect, such as $\mu = 50$.
  • Alternative hypothesis $H_1$: what we accept if $H_0$ is rejected, such as $\mu \ne 50$ (two-tailed), or $\mu > 50$ (one-tailed).

The level of significance $\alpha$ is the chance of rejecting a true $H_0$, usually 0.05. The test statistic is calculated from the sample, and the critical value separates the rejection region from the acceptance region. We reject $H_0$ if the statistic falls in the rejection region, or if the p-value is below $\alpha$.

Procedure: state $H_0$ and $H_1$, choose $\alpha$, compute the test statistic, compare with the critical value, and write the decision in words.

Example: a server is claimed to respond in 50 ms on average. A sample of 36 requests gives $\bar{x} = 52$ ms, with known $\sigma = 6$. Test at $\alpha = 0.05$ (two-tailed).

$$\begin{aligned} H_0&: \mu = 50 \qquad H_1: \mu \ne 50 \ z &= \frac{52 - 50}{6/\sqrt{36}} = \frac{2}{1} = 2 \end{aligned}$$

The critical value is $\pm 1.96$. Since $2 > 1.96$, we reject $H_0$. The p-value is $2 \times 0.0228 = 0.0455$, which is below 0.05. The average response time differs from 50 ms.

What this unit covers

  • Hypothesis testing concepts
  • Type I and Type II errors
  • Test selection based on measurement scale
  • Application of statistics in IT systems
  • Quality control and reliability analysis
  • Expected value and decision making

Expected value and decision making

2081 · 5 marks

A tech support team handles the following number of customer queries (X) per hour along with their probabilities. Find the expected number and variance of queries handled per hour.

$$\begin{array}{|c|ccccc|}\hline X & 0 & 1 & 2 & 3 & 4 \ \hline P(X) & 0.10 & 0.20 & 0.30 & 0.25 & 0.15 \ \hline \end{array}$$

[5]

Show solved answer

Model Answer: Expected Value and Variance of Customer Queries

Given Data

X01234
P(X)0.100.200.300.250.15

Check: $\sum P(X) = 0.10 + 0.20 + 0.30 + 0.25 + 0.15 = 1.00$ ✓ (valid distribution)


Part 1: Expected Value $E(X)$

$$E(X) = \sum X \cdot P(X)$$

XP(X)X·P(X)
00.100.00
10.200.20
20.300.60
30.250.75
40.150.60

$$E(X) = 0 + 0.20 + 0.60 + 0.75 + 0.60 = 2.15 \text{ queries/hour}$$


Part 2: Variance $\text{Var}(X)$

$$\text{Var}(X) = E(X^2) - [E(X)]^2$$

Step 1: Compute $E(X^2)$

XX²P(X)X²·P(X)
000.100.00
110.200.20
240.301.20
390.252.25
4160.152.40

$$E(X^2) = 0 + 0.20 + 1.20 + 2.25 + 2.40 = 6.05$$

Step 2: $[E(X)]^2 = (2.15)^2 = 4.6225$

Step 3:

$$\text{Var}(X) = 6.05 - 4.6225 = 1.4275$$

Standard deviation (optional): $\sigma = \sqrt{1.4275} \approx 1.195$


Final Answer

  • Expected number of queries per hour: $E(X) = 2.15$
  • Variance: $\text{Var}(X) = 1.4275 \approx 1.43$
Open this answer on its own page →

2080.1 · 5 marks

A jewelry dealer is interested in purchasing gold necklace for which probabilities are 0.18, 0.22, 0.33 and 0.27 respectively that it will be sold for a profit of Rs. 5000, Rs. 8000, 6000 and sell for a loss of Rs. 3000. Find expected profit and variance of profit. [5]

  • Outcomes (profit/loss): Rs. 5000, Rs. 8000, Rs. 6000, and a loss of Rs. 3000 (i.e. $-3000$) - Probabilities: 0.18, 0.22, 0.33, 0.27 Let $X$ = profit in Rs. $X$ 5000 8000 6000 -3000 ------------------------------ $P(X)$ 0.18 0.22 0.33 0.27 Check: $0.18 + 0.22 + 0.33 + 0.27 = 1.00$ ✓ --- $$E(X) =...
Open this answer on its own page →