Past Papers, Statistics, UOS Main Campus

Probability & Statistics Past Paper 2017 – BSSE 3rd Term UOS (MATH-2110)

ProgramBSSE
Term3rd
Year2017
Course codeMATH-2110
AnswersSolved ✓

University of Sargodha Probability & Statistics (MATH-2110) paper for BS Software Engineering 3rd term, 2017 exam (80 marks, 2:30 hours). Solved answers are given below for all 16 short questions and all five long questions, with every calculation (Bayes’ rule, normal approximation, t and F tests, regression) checked by computer.

Solved answers

Q1 – Short answers (16 × 2)

i. Stem-and-leaf plot: A display that splits each value into a stem (leading digit(s)) and a leaf (last digit), so the data are sorted and the shape of the distribution is visible while the actual values are kept. E.g. 23, 27, 31 → 2 | 3 7, 3 | 1.

ii. Mutually exclusive events: Events that cannot occur together: A ∩ B = ∅, so P(A ∪ B) = P(A) + P(B). E.g. getting a 2 and a 5 on one throw of a die.

iii. Probability density function: For a continuous random variable X, a function f(x) ≥ 0 with ∫ f(x) dx = 1 over the whole line, such that P(a < X < b) = ∫ab f(x) dx.

iv. Chebyshev’s theorem: For any data set or distribution, the proportion of values within k standard deviations of the mean is at least 1 − 1/k² (k > 1). E.g. at least 75% lie within 2σ.

v. Parameter of the Poisson distribution: λ (μ), the average number of events in the given interval. Both the mean and the variance equal λ: P(X = x) = e−λλx/x!.

vi. Standard normal distribution: The normal distribution with mean 0 and variance 1; any normal variable is standardised by Z = (X − μ)/σ.

vii. Sampling distribution: The probability distribution of a statistic (e.g. the sample mean x̄) over all possible samples of the same size from a population.

viii. Unbiased estimator: A statistic Θ̂ whose expected value equals the parameter it estimates: E(Θ̂) = θ. E.g. x̄ for μ and S² (with n − 1) for σ².

ix. Tolerance limits: Limits x̄ ± ks such that, with a stated confidence (1 − γ), they contain at least a proportion 1 − α of the population.

x. Confidence interval: An interval computed from sample data, θ̂L < θ < θ̂U, that contains the true parameter with a stated probability 1 − α, e.g. a 95% CI for μ: x̄ ± z0.025σ/√n.

xi. Statistical hypothesis: An assertion or conjecture about one or more population parameters, e.g. H0: μ = 50, tested using sample data.

xii. Type II error: Accepting (failing to reject) the null hypothesis when it is actually false. Its probability is β.

xiii. Rejection region: The set of values of the test statistic for which H0 is rejected (critical region), bounded by the critical value(s) at the chosen α.

xiv. Goodness-of-fit test: A test of whether observed frequencies agree with those expected under a hypothesised distribution, using χ² = Σ(o − e)²/e with k − 1 (minus estimated parameters) degrees of freedom.

xv. Simple linear model: Y = β0 + β1x + ε, where β0 is the intercept, β1 the slope and ε a random error with mean 0 and variance σ².

xvi. Adjusted R²: R² corrected for the number of predictors: R²adj = 1 − (SSE/(n − k − 1))/(SST/(n − 1)). Unlike R², it does not automatically rise when a useless variable is added.

Q2 – Steel spring flexibility (Company A vs Company B)

Company A (n = 10): 9.3, 8.8, 6.8, 8.7, 8.5, 6.7, 8.0, 6.5, 9.2, 7.0. Sorted: 6.5, 6.7, 6.8, 7.0, 8.0, 8.5, 8.7, 8.8, 9.2, 9.3.

Company B (n = 10): 11.0, 9.8, 9.9, 10.2, 10.1, 9.7, 11.0, 11.1, 10.2, 9.6. Sorted: 9.6, 9.7, 9.8, 9.9, 10.1, 10.2, 10.2, 11.0, 11.0, 11.1.

MeasureCompany ACompany B
Σx79.5102.6
Mean x̄ = Σx/n7.9510.26
Median (average of 5th and 6th values)(8.0 + 8.5)/2 = 8.25(10.1 + 10.2)/2 = 10.15
Variance s² = Σ(x − x̄)²/(n − 1)10.865/9 = 1.2072.924/9 = 0.325
Standard deviation s1.0990.570

Company B’s springs are more flexible on average and much more consistent (smaller spread) than Company A’s.

Q3 – Bayes’ rule and geometric distribution

(a) P(P1) = 0.30, P(P2) = 0.20, P(P3) = 0.50. Total probability of a defect:

P(D) = 0.30(0.01) + 0.20(0.03) + 0.50(0.02) = 0.003 + 0.006 + 0.010 = 0.019.

PlanP(Pj | D) = P(Pj)P(D | Pj)/P(D)
10.003/0.019 = 0.158
20.006/0.019 = 0.316
30.010/0.019 = 0.526

Plan 3 has the largest posterior probability, so a defective product most likely came from plan 3.

(b) Geometric distribution with p = 0.01: the first defective is the 5th item, so the first 4 are good: P(X = 5) = (0.99)4(0.01) = 0.0096.

Q4 – Normal approximation and t-distribution

(a) X = number correct out of the 80 guessed questions: binomial with n = 80, p = 1/4. μ = np = 20, σ = √(npq) = √15 = 3.873. Using the normal approximation with continuity correction:

P(25 ≤ X ≤ 30) ≈ P(24.5 < X < 30.5) = P(1.16 < Z < 2.71) = 0.9966 − 0.8770 = 0.1196. (The exact binomial value is 0.1193.)

(b) n = 24, so T has v = 23 degrees of freedom.

  • (i) P(T < −2.069) = 0.025 (t0.025 = 2.069). So P(T < k) = 0.965 + 0.025 = 0.990, i.e. k = t0.01 = 2.500.
  • (ii) P(T > 2.807) = 0.005 (t0.005 = 2.807). So P(T > k) = 0.095 + 0.005 = 0.100, i.e. k = t0.10 = 1.319.
  • (iii) P(−k < T < k) = 0.90 leaves 0.05 in each tail, so k = t0.05 = 1.714.

Q5 – Tests of hypotheses

(a) Company 1: 102, 86, 98, 109, 92 → n1 = 5, x̄1 = 97.4, s1 = 8.877. Company 2: 81, 165, 97, 134, 92, 87, 114 → n2 = 7, x̄2 = 110.0, s2 = 30.221.

  • H0: μ2 − μ1 = 10, H1: μ2 − μ1 < 10, α = 0.10.
  • Unequal variances (Welch): t = [(x̄2 − x̄1) − 10] / √(s1²/n1 + s2²/n2) = (12.6 − 10)/√(15.76 + 130.47) = 2.6/12.093 = 0.215.
  • Degrees of freedom v = (15.76 + 130.47)²/(15.76²/4 + 130.47²/6) ≈ 7.4 → v = 7. Critical region: t < −t0.10,7 = −1.415.
  • Since 0.215 > −1.415, do not reject H0. There is not enough evidence that the difference is less than 10 minutes (P-value ≈ 0.58).

(b) H0: σ1² = σ2², H1: σ1² > σ2², α = 0.05 (1 = men, 2 = women).

  • f = s1²/s2² = 6.1²/5.3² = 37.21/28.09 = 1.32, with v1 = 10 and v2 = 13.
  • Critical value f0.05(10, 13) = 2.67. Since 1.32 < 2.67, do not reject H0.
  • Conclusion: the data do not show that the variance for women is smaller than for men (P-value ≈ 0.31).

Q6 – Regression

(a) n = 12, Σx = 410, Σy = 5,445, Σx² = 15,650, Σxy = 191,325.

b1 = [nΣxy − ΣxΣy]/[nΣx² − (Σx)²] = [12(191,325) − 410(5,445)]/[12(15,650) − 410²] = (2,295,900 − 2,232,450)/(187,800 − 168,100) = 63,450/19,700 = 3.221.

b0 = ȳ − b1x̄ = 453.75 − 3.221(34.167) = 343.71.

(i) Regression line: ŷ = 343.71 + 3.221x. (ii) For x = $35: ŷ = 343.71 + 3.221(35) = $456.43 weekly sales.

(b) Fitting μY|x1,x2 = β0 + β1x1 + β2x2 by least squares (solving the normal equations X′Xb = X′y for the 10 observations) gives:

ŷ = 0.580 + 2.712x1 + 2.050x2

The normal equations are: nb0 + b1Σx1 + b2Σx2 = Σy; b0Σx1 + b1Σx1² + b2Σx1x2 = Σx1y; b0Σx2 + b1Σx1x2 + b2Σx2² = Σx2y. The coefficients were checked by computer.

Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.