Blog
Probability & Statistics Past Paper 2014 – BS IT 2nd Term UOS (MATH-2110)
University of Sargodha BS IT 2nd term Probability & Statistics (MATH-2110) paper, 2014 exam, session 2013-17 (80 marks, 2:30 hours). The paper is retyped below, followed by solved answers for all 16 short questions and all subjective questions: a grouped frequency table, median and quartiles, correlation, card and marble probabilities, and the Poisson approximation. All numbers were checked in Python.
Solved answers
Q1 – Short answers (16 × 2)
i. Statistic vs statistics. Statistics is the science of collecting, organising, analysing and interpreting data. A statistic is a single numerical value calculated from a sample, e.g. the sample mean x̄.
ii. Dispersion for comparison. Relative measures such as the coefficient of variation CV = (s / x̄) × 100%, because they are unit-free.
iii. Interval vs ratio scale. Both have equal intervals, but an interval scale has no true zero (temperature in °C: 20° is not twice 10°); a ratio scale has a true zero, so ratios are meaningful (height, weight, income).
iv. Sample space. The set of all possible outcomes of a random experiment, e.g. tossing a coin: S = {H, T}.
v. Probability. A number between 0 and 1 that measures the chance of an event: P(A) = favourable outcomes / total equally likely outcomes.
vi. Why sample? A sample is cheaper, faster and practical; sometimes the population is infinite or testing destroys the item; a properly drawn sample gives reliable results.
vii. Sampling error. The difference between a sample statistic and the population parameter caused by studying only a part of the population, e.g. x̄ − μ.
viii. Regression vs correlation. Correlation measures the strength and direction of the linear relationship between two variables (r from −1 to +1). Regression gives an equation (ŷ = a + bx) to predict one variable from the other and distinguishes dependent and independent variables.
ix. Descriptive vs inferential. Descriptive statistics summarise data (tables, graphs, mean, SD). Inferential statistics draw conclusions about a population from a sample (estimation, hypothesis testing).
x. Point vs interval estimation. A point estimate is a single value for a parameter (x̄ = 52). An interval estimate gives a range with a confidence level (μ lies in 48 to 56 with 95% confidence).
xi. Median. The middle value of data arranged in order; for n values it is the ((n + 1)/2)-th value (average of the two middle values when n is even).
xii. Alternative hypothesis notation. H1 (or Ha), e.g. H1: μ ≠ 50.
xiii. Level of significance. α, the probability of rejecting H0 when it is true (Type I error), usually 5% or 1%.
xiv. Primary vs secondary data. Primary data are collected first-hand by the investigator (survey, experiment). Secondary data were collected by someone else and are reused (reports, publications, databases).
xv. Best measure of central tendency. The arithmetic mean is generally the best because it uses all values and is used in further analysis; for skewed data or open-ended classes the median is better.
xvi. Statistics in IT. Used in data analysis and data mining, machine learning, performance testing of systems, network traffic analysis, quality control and reliability of software, A/B testing and decision making.
Q2 – Sampling, variance, expectation, errors
(a) Probability sampling: simple random sampling (every unit has an equal chance), systematic sampling (every k-th unit after a random start), stratified sampling (population divided into homogeneous strata and a random sample taken from each), cluster sampling (random selection of whole groups), multistage sampling (selection in stages).
(b) Variance: advantages – uses all observations, rigidly defined, basis of SD and of many statistical tests, suitable for algebraic treatment. Disadvantages – expressed in squared units, so hard to interpret; strongly affected by extreme values; harder to compute than range.
(c) Properties of expectation: E(c) = c; E(cX) = cE(X); E(X + c) = E(X) + c; E(aX + b) = aE(X) + b; E(X + Y) = E(X) + E(Y); if X, Y independent, E(XY) = E(X)E(Y); Var(X) = E(X²) − [E(X)]².
(d) Type I error: rejecting H0 when it is true (probability α). Type II error: accepting H0 when it is false (probability β).
Q3 – Frequency distribution, median and quartiles
(a) Range: 10 to 69. Using class width 10:
| Weight (g) | Tally count f | Relative frequency | Cumulative frequency |
|---|---|---|---|
| 10 – 19 | 6 | 0.20 | 6 |
| 20 – 29 | 9 | 0.30 | 15 |
| 30 – 39 | 9 | 0.30 | 24 |
| 40 – 49 | 3 | 0.10 | 27 |
| 50 – 59 | 0 | 0.00 | 27 |
| 60 – 69 | 3 | 0.10 | 30 |
| Total | 30 | 1.00 |
(b) Class boundaries 4.5–24.5, 24.5–44.5, …, h = 20, N = 75. Cumulative frequencies: 4, 10, 24, 46, 60, 65, 72, 75.
- Q1: N/4 = 18.75 → class 44.5–64.5 (f = 14, c.f. before = 10): Q1 = 44.5 + (18.75 − 10)/14 × 20 = 57.0.
- Median: N/2 = 37.5 → class 64.5–84.5 (f = 22, c.f. = 24): Median = 64.5 + (37.5 − 24)/22 × 20 = 76.77.
- Q3: 3N/4 = 56.25 → class 84.5–104.5 (f = 14, c.f. = 46): Q3 = 84.5 + (56.25 − 46)/14 × 20 = 99.14.
All numerical answers were checked in Python (SymPy/SciPy).
Q4 – t-test procedure and correlation
(a) Testing μ when σ is unknown (t-test): 1) state H0: μ = μ0 and H1 (μ ≠, < or > μ0); 2) choose α; 3) test statistic t = (x̄ − μ0)/(s/√n) with n − 1 degrees of freedom (for large n, z can be used); 4) find the critical region from the t-table; 5) compute t from the sample; 6) reject H0 if t falls in the critical region, otherwise do not reject; 7) state the conclusion.
(b) n = 9, ΣX = 500, ΣY = 105, ΣXY = 7085, ΣX² = 31250, ΣY² = 1979.
r = [nΣXY − ΣXΣY] / √{[nΣX² − (ΣX)²][nΣY² − (ΣY)²]} = (63765 − 52500)/√[(281250 − 250000)(17811 − 11025)] = 11265/√(31250 × 6786) = 11265/14562.4 = 0.774.
Interpretation: there is a fairly strong positive correlation – higher traffic density tends to go with a higher accident rate (the last point, 90 with 12 accidents, weakens it).
All numerical answers were checked in Python (SymPy/SciPy).
Q5 – Cards and marbles
(a) i. P(red) = 26/52 = 1/2; ii. P(diamond) = 13/52 = 1/4; iii. P(10) = 4/52 = 1/13.
(b) Total = 10 + 30 + 20 + 15 = 75. i. P(orange or red) = 25/75 = 1/3; ii. P(neither red nor blue) = (30 + 15)/75 = 3/5; iii. P(not blue) = 55/75 = 11/15; iv. P(red, white or blue) = 60/75 = 4/5.
Q6 – Binomial, Poisson and Normal
(a) Binomial distribution properties: fixed number of trials n; each trial has two outcomes (success/failure); p constant from trial to trial; trials independent; P(X = x) = nCx pxqn−x; mean = np, variance = npq (variance < mean); symmetric when p = 0.5.
(b) n = 200, p = 0.01, so the Poisson approximation with λ = np = 2 can be used: P(X = 3) = e−22³/3! = 0.1353 × 8/6 = 0.1804. (The exact binomial value is 0.1814.)
(c) Normal distribution properties: bell-shaped and symmetric about μ; mean = median = mode; total area under the curve = 1; the curve never touches the x-axis (asymptotic); about 68.27%, 95.45% and 99.73% of values lie within μ ± σ, μ ± 2σ, μ ± 3σ; determined completely by μ and σ.
All numerical answers were checked in Python (SymPy/SciPy).
