Chapter 8 Questions




Question 1

You run an IT support help desk where technicians are paid performance bonuses partly based on the number of "high-complexity" infrastructure tickets they close. You suspect they are intentionally misclassifying simple password resets or routine updates as complex tickets to game the bonus system.

The true historical distribution of genuine high-complexity tickets $X$ resolved per technician per day is:

$x$ $(P(X = x)$)
0 0.3
1 0.4
2 0.2
3 0.1
  1. What is the mean number of high-complexity tickets per technician day?
  2. What is the variance of the number of high-complexity tickets per technician day?
  3. State the null and alternative hypotheses to test if technicians are honest versus the alternative that they are padding their ticket complexity metrics.
  4. You look at a random sample of 100 technician days and find a sample mean of $1.28$ high-complexity tickets. Conduct a $5\%$ one-tailed test to see if the distribution we wrote down is likely (by seeing if the mean is likely).
  5. Interpret the result from part (d) in context of the suspicion.

Answer

(a) $E[X] = \sum_{x=0}^{3} x P(X = x) = 0(0.3) + 1(0.4) + 2(0.2) + 3(0.1) = 0 + 0.4 + 0.4 + 0.3 = 1.1$

(b) $Var(X) = \sum_{x=0}^{3} (x - 1.1)^2 P(X = x) = (0 - 1.1)^2(0.3) + (1 - 1.1)^2(0.4)$

$+ (2 - 1.1)^2(0.2) + (3 - 1.1)^2(0.1) = (1.21)(0.3) + (0.01)(0.4) + (0.81)(0.2) + (3.61)(0.1)$ ,

$= 0.363 + 0.004 + 0.162 + 0.361 = 0.89$

(c) Our hypotheses are $H_0: \mu = 1.1$ vs $H_1: \mu > 1.1$.

(d) For a $5\%$ one-tailed (upper tail) test, the critical value is $1.645$. The test statistic is calculated as: \[ z = \frac{1.28 - 1.1}{\sqrt{0.89 / 100}} = \frac{0.18}{0.09434} \approx 1.91 \]

(e) Since $1.91 > 1.645$, we reject the null hypothesis of accurate ticket recording. This suggests there is a statistically significant inflation in reported ticket complexity, supporting the suspicion of padding.


Question 2

You operate a fleet of fleet-owned vehicles leased out to rideshare drivers, and you cover their daily car wash allowances via a company fuel card. Each driver is authorized a clean vehicle allowance. You suspect drivers are charging non-fleet personal vehicles or friends' cars to the corporate account.

The historical distribution of legitimate car washes $X$ needed per fleet vehicle per week is:

$x$ $P(X = x)$
1 0.2
2 0.5
3 0.2
4 0.1
  1. What is the mean number of car washes used per vehicle per week?
  2. What is the variance of the number of car washes used per vehicle per week?
  3. Formulate the null and alternative hypotheses to test if drivers are using allowances honestly versus abusing the card privileges.
  4. An audit of a random sample of 100 weekly driver logs reveals a sample average of $2.42$ washes. Conduct a $5\%$ one-tailed test to see if the mean from our distribution is likely correct.
  5. What conclusion should you draw based on this statistical test?

Answer

(a) $E[X] = \sum_{x=1}^{4} x P(X = x) = 1(0.2) + 2(0.5) + 3(0.2) + 4(0.1) = 0.2 + 1.0 + 0.6 + 0.4 = 2.2$

(b) $Var(X) = \sum_{x=1}^{4} (x - 2.2)^2 P(X = x) = (1 - 2.2)^2(0.2) + (2 - 2.2)^2(0.5) $

$ + (3 - 2.2)^2(0.2) + (4 - 2.2)^2(0.1) = (1.44)(0.2) + (0.04)(0.5) + (0.64)(0.2) + (3.24)(0.1) $

$= 0.288 + 0.02 + 0.128 + 0.324 = 0.76$

(c) Our hypotheses are $H_0: \mu = 2.2$ vs $H_1: \mu > 2.2$.

(d) For a $5\%$ one-tailed (upper tail) test, the critical value is $1.645$. The test statistic is: \[ z = \frac{2.42 - 2.2}{\sqrt{0.76 / 100}} = \frac{0.22}{0.08718} \approx 2.52 \]

(e) Since $2.52 > 1.645$, we reject the null hypothesis of honesty. There is clear evidence suggesting that drivers are over-utilizing the car wash allowance abnormally, pointing to likely corporate card abuse.


Question 3

A national health organization polls adults every three years to evaluate basic medical knowledge. To the question "Are antibiotics effective against viral infections like the common cold?", 32 percent of those surveyed answered "yes". Let $x_i = 1$ for this incorrect answer. The sample size was 1500.

  1. Most news outlets rounded the figure to 'one third', i.e., $33.3\%$. Suppose that the $33.3\%$ value ($p = 0.333$) is the true proportion in the population, what is the chance that we would see a poll result of $32\%$ or less?
  2. Is $33.3\%$ a reasonable number for the true proportion in the population, given the survey results?
  3. Would we reject if we tested the hypothesis that $p= \frac{1}{3}$ against an alternative that $p < \frac{1}{3}$ using a test with size $5\%$?

Answer

(a) Let $\bar{x}$ be the sample proportion of respondents who answered "yes". Mathematically, question (a) asks for $P[\bar{X} \le 0.32]$ when $p = 0.333$. So we have:

\begin{align*} P[\bar{X} \le 0.32] &= P[\bar{X} - 0.333 \le 0.32 - 0.333] \\ &= P\left[ \frac{\bar{X} - 0.333}{\sqrt{0.333 * 0.667 / 1500}} \le \frac{0.32 - 0.333}{\sqrt{0.333 * 0.667 / 1500}} \right] \\ &\approx P[Z \le -1.07] \\ &= 14.23\% \end{align*}

where the approximation is the use of the central limit theorem. This is justified here by assuming that the organization used a randomized strategy to ensure independence.

(b) Certainly not too unreasonable, since it happens with about $14.2\%$ by chance that we would get a sample proportion of $32\%$ or less. So yes, it is reasonable.

(c) The t-test gives a value of $-1.07$, and the critical value is $-1.645$, so no we would not reject. Notice that the answer in (b) and (c) are very related, once you have done it one way you have the basic calculations to do it the other way (hypothesis test vs p-value).


Question 4

A non-partisan foundation polls 2000 eligible voters to track basic constitutional literacy. To the question "Does the legislative branch have the sole power to command the military?", 41.5 percent of those surveyed incorrectly answered "yes". Let $x_i = 1$ for this answer.

  1. Suppose it was thought that the true mean was $43\%$. Suppose that the $43\%$ value ($p = 0.43$) is the true proportion in the population, what is the chance that we would see a poll result of $41.5\%$ or less?
  2. Is $43\%$ a reasonable number for the true proportion in the population, given the survey results?
  3. Use the p-value approach and your answer in (b) to explain whether or not a size $5\%$ hypothesis test would reject the null hypothesis that the mean is $0.43$ against an alternative hypothesis of a lower value.

Answer

(a) Let $\bar{x}$ be the sample proportion of questions answered "yes". In math, this question asks for $P[\bar{X} \le 0.415]$ when $p = 0.43$. So we have:

\begin{align*} P[\bar{X} \le 0.415] &= P[\bar{X} - 0.43 \le 0.415 - 0.43] \\ &= P\left[ \frac{\bar{X} - 0.43}{\sqrt{0.43 * 0.57 / 2000}} \le \frac{0.415 - 0.43}{\sqrt{0.43 * 0.57 / 2000}} \right] \\ &\approx P[Z \le -1.35] \\ &= 8.85\% \end{align*}

where the normal approximation is applied via the central limit theorem under independent random selection.

(b) Yes, this is completely reasonable. There is an $8.85\%$ chance that standard sampling fluctuations would yield a sample value of $41.5\%$ or lower if the true baseline population parameter were $43\%$.

(c) We are conducting a 5% one tail test, and in (b) show that there is an $8.85\%$ of seeing a lower number. So we do not reject.


Question 5

A fitness center franchise finds that members stay for a mean session duration of 60 minutes with a standard deviation of 20 minutes. A random sample of 45 check-out logs reveals an average session length of 65 minutes.

  1. What is the chance of observing a sample mean of 65 minutes or longer given the corporate historical distribution parameters?
  2. Does it seem like this cohort of members works out longer than average, or is this just standard sampling noise?
  3. Do you think that the assumptions are likely to be true for our calculation in (a)? Be clear.
  4. If the true population mean is exactly 60 minutes, what is the chance that the sample average of 45 members is between 58 and 62 minutes?

Answer

(a) We want $P(\bar{X} \ge 65)$. Given $\mu = 60$, $\sigma = 20$, and $n = 45$, we have:

\begin{align*} P(\bar{X} \ge 65) &= P(\bar{X} - 60 \ge 65 - 60) \\ &= P\left( \frac{\bar{X} - 60}{20/\sqrt{45}} \ge \frac{65 - 60}{20/\sqrt{45}} \right) \\ &\approx P(Z \ge 1.6771) \\ &= 0.0468 \end{align*}

There is roughly a $4.68\%$ chance of seeing a sample mean this large by random variation.

(b) Since the probability ($4.68\%$) falls just below the typical $5\%$ threshold, it is statistically significant but borderline. It suggests that this group might be exercising slightly longer than standard historical baselines, though random noise remains a minor possibility.

(c) The Central Limit Theorem is valid because $n = 45 > 30$. Gym session lengths are naturally bounded on the lower side (rarely less than 15-20 minutes) but can have right-skewness from extreme power-lifters or endurance athletes. The sample size is large enough to normalize this skewness. Independence holds assuming the selected members were sampled randomly across different times of day rather than all belonging to a single specialized class.

(d) We wish to compute $P(58 < \bar{X} < 62)$: \begin{align*} P(58 < \bar{X} < 62) &= P(58 - 60 < \bar{X} - 60 < 62 - 60) \\ &= P\left( \frac{58 - 60}{20/\sqrt{45}} < \frac{\bar{X} - 60}{20/\sqrt{45}} < \frac{62 - 60}{20/\sqrt{45}} \right) \\ &\approx P(-0.6708 < Z < 0.6708) \\ &= 0.4976 \end{align*} We will see sample averages fall within this close 4-minute window approximately half ($49.8\%$) of the time.


Question 6

A small boutique e-commerce site has historical data showing that daily revenue has a mean of \$400 and a standard deviation of \$300. During a month of 30 days, the owner tracks operations and finds that the average daily revenue is \$510.

  1. What is the chance of observing such a sample mean or larger given the claimed historical parameters?
  2. Does it seem like the store's daily sales are likely higher than expected, or did they randomly have a good month?
  3. Do you think that the assumptions are likely to be true for our calculation in (a)? Be clear.
  4. If the mean of daily revenue is really \$400, what is the chance that the monthly average revenue is between \$380 and \$420?

Answer

(a) We want $P(\bar{X} \ge 510)$. Given $\mu = 400$, $\sigma = 300$, and $n = 30$, we have: \begin{align*} P(\bar{X} \ge 510) &= P(\bar{X} - 400 \ge 510 - 400) \\ &= P\left( \frac{\bar{X} - 400}{300/\sqrt{30}} \ge \frac{510 - 400}{300/\sqrt{30}} \right) \\ &\approx P(Z \ge 2.0083) \\ &= 0.0223 \end{align*} There is around a $2.23\%$ chance of seeing a monthly average this high or higher by pure random variation.

(b) Just through randomness of sales, we would not have expected to obtain such a large monthly average, since a probability of $2.23\%$ is low. It seems as though sales are genuinely higher than historically expected (the real mean is likely higher than \$400).

(c) We are relying on the Central Limit Theorem. However, daily revenue for an e-commerce site is highly likely to be strongly right-skewed (many small days, a few huge checkout days), and $n=30$ might be a bit small to completely smooth out extreme skewness. Furthermore, consecutive days might violate independence due to weekly patterns (weekends vs. weekdays) or multi-day marketing promotions.

(d) Here we wish to compute $P(380 < \bar{X} < 420)$: \begin{align*} P(380 < \bar{X} < 420) &= P(380 - 400 < \bar{X} - 400 < 420 - 400) \\ &= P\left( \frac{380 - 400}{300/\sqrt{30}} < \frac{\bar{X} - 400}{300/\sqrt{30}} < \frac{420 - 400}{300/\sqrt{30}} \right) \\ &\approx P(-0.3651 < Z < 0.3651) \\ &= 0.2848 \end{align*} We will see such sample means from this problem roughly $28.5\%$ of the time.