Statistics I · Unit 6 · 12 hrs
Probability Distributions
Exam-focused notes for Probability Distributions (Statistics I, STA169): what the TU syllabus asks and how it has actually been tested, with 24 solved past questions from this unit.
Probability Distributions in short
Certain patterns of chance behaviour recur so often, a fixed number of independent trials, rare events over time, or measurements clustering around an average, that they have been packaged into named probability distributions with known formulas for their mean and variance. This chapter builds the main discrete and continuous distributions used throughout applied statistics and computing.
What this unit covers
- Probability distribution function
- Joint probability distribution of two random variables
- Discrete distributions: Bernoulli trial, Binomial and Poisson distributions
- Continuous distribution: Normal distributions
- Standardization of normal distribution
- Normal distribution as an approximation of Binomial and Poisson distribution
- Exponential, Gamma distribution
- Problems and illustrative examples related to computer Science and IT
Joint probability distribution of two random variables
2080 · 10 marks
The joint density function of two continuous random variables X and Y is f(x, y) = kxy 0 < x < 4, 1 < y < 5= 0 otherwisea. Find the value of constant k. b. Find P(x > 3, y < 2) c. Find P(1 < x < 2, 2 < y < 3)[10]
Show solved answerHide answer
Joint Probability Density Function - Verified Solution
Given
$$f(x, y) = kxy, \quad 0 < x < 4, \quad 1 < y < 5$$ $$f(x, y) = 0, \quad \text{otherwise}$$
Required:
- (a) constant $k$
- (b) $P(X > 3, Y < 2)$
- (c) $P(1 < X < 2, 2 < Y < 3)$
Solution
Part (a): Value of k
Normalization condition:
$$\int_{1}^{5} \int_{0}^{4} kxy , dx , dy = 1$$
Inner integral (over $x$):
$$\int_{0}^{4} x , dx = \left[\frac{x^2}{2}\right]_0^4 = \frac{16}{2} = 8$$
So:
$$k \int_{1}^{5} 8y , dy = 8k \left[\frac{y^2}{2}\right]_1^5 = 8k \cdot \frac{25 - 1}{2} = 8k \cdot 12 = 96k$$
Setting equal to 1:
$$96k = 1 \implies \boxed{k = \frac{1}{96}}$$
Part (b): P(X > 3, Y < 2)
The region intersects the support: $3 < x < 4$ and $1 < y < 2$.
$$P = \frac{1}{96} \int_{1}^{2} \int_{3}^{4} xy , dx , dy$$
Inner integral:
$$\int_{3}^{4} x , dx = \left[\frac{x^2}{2}\right]_3^4 = \frac{16 - 9}{2} = \frac{7}{2}$$
Then:
$$P = \frac{1}{96} \cdot \frac{7}{2} \int_{1}^{2} y , dy = \frac{7}{192} \left[\frac{y^2}{2}\right]_1^2 = \frac{7}{192} \cdot \frac{4-1}{2} = \frac{7}{192} \cdot \frac{3}{2} = \frac{21}{384}$$
$$\boxed{P(X > 3, Y < 2) = \frac{7}{128} \approx 0.0547}$$
Part (c): P(1 < X < 2, 2 < Y < 3)
Both limits lie within the support.
$$P = \frac{1}{96} \int_{2}^{3} \int_{1}^{2} xy , dx , dy$$
Inner integral:
$$\int_{1}^{2} x , dx = \left[\frac{x^2}{2}\right]_1^2 = \frac{4 - 1}{2} = \frac{3}{2}$$
Then:
$$P = \frac{1}{96} \cdot \frac{3}{2} \int_{2}^{3} y , dy = \frac{3}{192} \left[\frac{y^2}{2}\right]_2^3 = \frac{1}{64} \cdot \frac{9-4}{2} = \frac{1}{64} \cdot \frac{5}{2}$$
$$\boxed{P(1 < X < 2, 2 < Y < 3) = \frac{5}{128} \approx 0.0391}$$
Summary
| Part | Result |
|---|---|
| (a) $k$ | $\dfrac{1}{96}$ |
| (b) $P(X>3, Y<2)$ | $\dfrac{7}{128} \approx 0.0547$ |
| (c) $P(1<X<2, 2<Y<3)$ | $\dfrac{5}{128} \approx 0.0391$ |
2078 · 5 marks
Fatigue Test Probability Analysis
The following joint probability data apply to a fatigue test run on bronze strips. X represents cycles to failure (in $10^5$) when alternate strips are bent at a high level of deflection. Y represents the same at a lower deflection event.
$$\begin{array}{c|cccc} X/Y & 20 & 30 & 40 & 50 \ \hline 4 & 0.01 & 0.03 & 0.05 & 0.02 \ 5 & 0.03 & 0.10 & 0.08 & 0.04 \ 6 & 0.02 & 0.08 & 0.12 & 0.11 \ 7 & 0.02 & 0.04 & 0.07 & 0.18 \ \end{array}$$
a. Find the marginal probability distribution for X and Y
b. Determine the conditional probability distribution of Y given $X = 5$
c. Are X and Y independent?
[5]
2078 · 5 marks
If two random variables have the joint probability density function find (i) constant k (ii) conditional probability density function of X (iii) Identify whether X and Y are independent.
$$f(x,y) = \begin{cases} k(2x + 3y), & 0 \leq x \leq 1, 0 \leq y \leq 1 \ 0, & \text{otherwise} \end{cases}$$
[5]
Show solved answerHide answer
Joint PDF: $f(x,y) = k(2x + 3y)$, $0 \le x \le 1$, $0 \le y \le 1$
Given data
- $f(x,y) = k(2x+3y)$ for $0 \le x \le 1$, $0 \le y \le 1$; zero otherwise.
(i) Constant k
Normalization condition:
$$\int_0^1 \int_0^1 k(2x+3y),dx,dy = 1$$
Inner integral over $x$:
$$\int_0^1 (2x+3y),dx = \left[x^2 + 3xy\right]_0^1 = 1 + 3y$$
Outer integral over $y$:
$$k\int_0^1 (1+3y),dy = k\left[y + \tfrac{3y^2}{2}\right]_0^1 = k\left(1+\tfrac{3}{2}\right) = \tfrac{5}{2}k$$
Set equal to 1:
$$\tfrac{5}{2}k = 1 \implies \boxed{k = \tfrac{2}{5}}$$
(ii) Conditional PDF of X (given Y)
Marginal of $Y$:
$$f_Y(y) = \int_0^1 \tfrac{2}{5}(2x+3y),dx = \tfrac{2}{5}(1+3y), \quad 0 \le y \le 1$$
Conditional PDF:
$$f_{X|Y}(x|y) = \frac{f(x,y)}{f_Y(y)} = \frac{\tfrac{2}{5}(2x+3y)}{\tfrac{2}{5}(1+3y)}$$
$$\boxed{f_{X|Y}(x|y) = \frac{2x+3y}{1+3y}, \quad 0 \le x \le 1}$$
(iii) Independence
Marginal of $X$:
$$f_X(x) = \int_0^1 \tfrac{2}{5}(2x+3y),dy = \tfrac{2}{5}\left[2xy + \tfrac{3y^2}{2}\right]_0^1 = \tfrac{2}{5}\left(2x + \tfrac{3}{2}\right) = \frac{4x+3}{5}$$
Product of marginals:
$$f_X(x),f_Y(y) = \frac{4x+3}{5}\cdot\frac{2(1+3y)}{5} = \frac{2(4x+3)(1+3y)}{25}$$
Compare with joint:
$$f(x,y) = \frac{2(2x+3y)}{5}$$
Since
$$\frac{2(4x+3)(1+3y)}{25} \neq \frac{2(2x+3y)}{5},$$
the joint density does not factor into the product of marginals.
Conclusion: X and Y are NOT independent.
2076 · 5 marks
If two random variables have the joint probability density function $$f(x,y) = \begin{cases} k(2x + 3y), & 0 \leq x \leq 1, 0 \leq y \leq 1 \ 0, & \text{otherwise} \end{cases}$$
find (i) constant $k$ (ii) conditional probability density function of $X$ (iii) Identify whether $X$ and $Y$ are independent. [5]
Show solved answerHide answer
Joint PDF Problem: f(x,y) = k(2x + 3y)
Given Data
- Joint PDF: $f(x,y) = k(2x+3y)$ for $0 \le x \le 1$, $0 \le y \le 1$; zero otherwise.
(i) Finding the Constant k
The total probability must equal 1:
$$\int_0^1 \int_0^1 k(2x+3y), dx, dy = 1$$
Inner integral (over x):
$$\int_0^1 (2x+3y), dx = \left[x^2 + 3xy\right]_0^1 = 1 + 3y$$
Outer integral (over y):
$$k\int_0^1 (1+3y), dy = k\left[y + \tfrac{3y^2}{2}\right]_0^1 = k\left(1 + \tfrac{3}{2}\right) = \frac{5k}{2}$$
Setting equal to 1:
$$\frac{5k}{2} = 1 \implies \boxed{k = \frac{2}{5}}$$
(ii) Conditional PDF of X
The conditional PDF of $X$ given $Y=y$ is $f(x|y) = \dfrac{f(x,y)}{f_Y(y)}$.
Marginal PDF of Y:
$$f_Y(y) = \int_0^1 \frac{2}{5}(2x+3y), dx = \frac{2}{5}\left[x^2 + 3xy\right]_0^1 = \frac{2}{5}(1+3y), \quad 0 \le y \le 1$$
Conditional PDF:
$$f(x|y) = \frac{\frac{2}{5}(2x+3y)}{\frac{2}{5}(1+3y)} = \boxed{\frac{2x+3y}{1+3y}}, \quad 0 \le x \le 1$$
(iii) Independence of X and Y
Marginal PDF of X:
$$f_X(x) = \int_0^1 \frac{2}{5}(2x+3y), dy = \frac{2}{5}\left[2xy + \frac{3y^2}{2}\right]_0^1 = \frac{2}{5}\left(2x + \frac{3}{2}\right) = \frac{4x+3}{5}, \quad 0 \le x \le 1$$
Check factorization:
$$f_X(x)\cdot f_Y(y) = \frac{4x+3}{5}\cdot \frac{2(1+3y)}{5} = \frac{2(4x+3)(1+3y)}{25}$$
Compare with joint:
$$f(x,y) = \frac{2(2x+3y)}{5} = \frac{10(2x+3y)}{25}$$
Since
$$\frac{2(4x+3)(1+3y)}{25} \ne \frac{10(2x+3y)}{25},$$
the equality $f(x,y) = f_X(x)f_Y(y)$ fails.
Conclusion: X and Y are NOT independent.
2075 · 5 marks
Random Variable and Bivariate Probability Distribution
Definition of a Random Variable: A random variable is a function that assigns numerical values to the outcomes of a random experiment. It can be discrete (taking countable values) or continuous (taking any value in an interval).
2075 · 5 marks
If two random variables have the joint probability density function
$$f(x,y) = \begin{cases} k e^{-(x+y)}, & 0 < x < \infty, 0 < y < \infty \ 0, & \text{otherwise} \end{cases}$$
Find (i) constant $k$ (ii) conditional probability density function of $X$ given $Y$ (iii) Var$(3X + 2Y)$. [5]
2080.1 · 5 marks
Let X and Y be two continuous random variable having joint pdf $f(x, y) = c(x^2 + y^2)$, $0 < x < 1$, $0 < y < 1$, $= 0$ otherwise. Determine (a) the value of c. (b) $P(x < 0.5, y > 0.5)$. [5]
Discrete distributions
2080 · 5 marks
Define binomial distribution. Under what conditions is the binomial distribution appropriate? The probability of a novice archer hitting the target with any shot is 0.3. Given that the archer shoots six arrows, find the probability that the target is hit at least once. [5]
Show solved answerHide answer
Binomial Distribution
Given
- Probability of success (hit) per shot: $p = 0.3$
- Probability of failure (miss): $q = 1 - 0.3 = 0.7$
- Number of independent trials (arrows): $n = 6$
- Required: $P(\text{at least one hit}) = P(X \ge 1)$
All required data present.
Solution
Definition
A binomial distribution is a discrete probability distribution giving the probability of obtaining exactly $x$ successes in $n$ independent trials, where each trial results in only one of two outcomes (success or failure) with a constant success probability $p$.
Its probability mass function is:
$$P(X = x) = \binom{n}{x} p^x q^{,n-x}, \quad x = 0, 1, 2, \ldots, n$$
where $q = 1 - p$. It is a biparametric distribution with parameters $n$ and $p$.
Mean $= np$, Variance $= npq$.
Conditions for applicability
- The number of trials $n$ is fixed and finite.
- Each trial has only two mutually exclusive outcomes (success/failure).
- The trials are independent.
- The probability of success $p$ is constant across all trials.
Numerical part
Here each shot is a trial with two outcomes (hit/miss), $n = 6$ fixed, independent shots, and constant $p = 0.3$: so the binomial model applies.
$$X \sim B(n = 6,\ p = 0.3)$$
Using the complement:
$$P(X \ge 1) = 1 - P(X = 0)$$
$$P(X = 0) = \binom{6}{0}(0.3)^0 (0.7)^6 = 1 \cdot 1 \cdot (0.7)^6$$
$$(0.7)^6 = 0.117649$$
Therefore:
$$P(X \ge 1) = 1 - 0.117649 = 0.882351$$
$$\boxed{P(X \ge 1) \approx 0.8824}$$
Interpretation: There is about an 88.24% chance the archer hits the target at least once in six shots.
2079 · 10 marks
Question
Under what conditions does Binomial distribution tend to Poisson distribution? The number of telephone calls received during the month of May is summarized in the following table. Fit the Poisson distribution.
$$\begin{array}{c|ccccc} \text{Number of telephone calls per day} & 0 & 1 & 2 & 3 & 4 \ \hline \text{Number of days} & 8 & 12 & 18 & 13 & 9 \ \end{array}$$
[10]
2079 · 5 marks
The mean and variance of the number of flights arriving late in a day are 2 and 1.6 respectively. Assuming binomial distribution, are those values consistent? If yes, find the probability that (i) none of the flights are late today and (ii) at least one flight is late today. [5]
2078 · 10 marks
a. What do you understand by Poisson distribution? What are its main features? b. What do you mean by joint probability distribution function? Write down its properties.[10]
2078 · 5 marks
Fit a binomial distribution to the following data:
$$\begin{array}{c|ccccccc} X & 0 & 1 & 2 & 3 & 4 & 5 & 6 \ \hline f & 5 & 8 & 15 & 14 & 10 & 6 & 2 \ \end{array}$$
[5]
2076 · 5 marks
A large chain retailer purchases a certain kind of electronic device from a manufacturer. The manufacturer indicates that the defective rate of the device is 15%. The inspector randomly picks 10 items from a shipment. What is the probability that there will be at least one defective item among these 10? [5]
2076 · 5 marks
Message arrives at an electronic message center at random times, with an average of 9 messages per hour. a. What is the probability of receiving at least four messages during the next hour? b. What is the probability of receiving at most three messages during the next hour? [5]
2075 · 10 marks
What do you understand by binomial distribution? What are its main features? What do you mean by marginal probability distribution? Write down its properties.[10]
2075 · 5 marks
Write the properties of Poisson distribution. Fit a Poisson distribution and find the expected frequencies.
$$\begin{array}{c|cccccccc} \text{X} & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 \ \text{Y} & 71 & 112 & 117 & 57 & 27 & 11 & 3 & 1 \end{array}$$
[5]
2080.1 · 5 marks
Fitting a Binomial Distribution
Under what condition binomial probability distribution? Five unbiased coins are tossed 100 times and the following results were obtained. Fit the binomial distribution.
| No of heads | 0 | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|---|
| Frequency | 5 | 24 | 35 | 22 | 10 | 4 |
[5]
2080.1 · 5 marks
Define poisson probability distribution. Cars arrive at a petrol station at an average rate of 3 per minute. Assuming that the cars arrive at random, find the probability that (i) no car arrives during a particular minute. (ii) at least one car arrive during a particular minute. (iii) four cars arrives in any 2 minutes. [5]
Show solved answerHide answer
Poisson Probability Distribution
Definition
The Poisson distribution is a discrete probability distribution that describes the number of events occurring in a fixed interval of time (or space), given that these events occur with a known constant average rate $\lambda$ and independently of each other. It is a limiting case of the binomial distribution when $n \to \infty$, $p \to 0$, while $np = \lambda$ stays finite.
Probability mass function:
$$P(X = x) = \frac{e^{-\lambda},\lambda^x}{x!}, \quad x = 0, 1, 2, 3, \ldots$$
where $\lambda$ is the mean number of occurrences, and $\text{mean} = \text{variance} = \lambda$.
Given Data
- Average arrival rate = $3$ cars per minute
- $\lambda = 3$ (per minute)
(i) No car arrives during a particular minute
$x = 0$, $\lambda = 3$:
$$P(X = 0) = \frac{e^{-3},3^0}{0!} = e^{-3} \approx 0.0498$$
(ii) At least one car arrives during a particular minute
$$P(X \geq 1) = 1 - P(X = 0) = 1 - e^{-3}$$
$$P(X \geq 1) = 1 - 0.0498 \approx 0.9502$$
(iii) Four cars arrive in any 2 minutes
For a 2-minute interval, the mean scales:
$$\lambda' = 3 \times 2 = 6$$
With $x = 4$:
$$P(X = 4) = \frac{e^{-6},6^4}{4!} = \frac{e^{-6}\times 1296}{24}$$
$$= \frac{0.00247875 \times 1296}{24} = \frac{3.2124}{24} \approx 0.1339$$
Summary
| Part | Result |
|---|---|
| (i) $P(X=0)$ | $e^{-3} \approx 0.0498$ |
| (ii) $P(X\ge 1)$ | $1 - e^{-3} \approx 0.9502$ |
| (iii) $P(X=4),\ \lambda'=6$ | $\approx 0.1339$ |
Continuous distribution
2080 · 5 marks
State features of normal distribution. In a photographic process, the developing time of prints as a random variable having normal distribution with mean of 18.25 seconds with standard deviation 0.34 seconds. Find the probability that at least 17.64 seconds to develop one of the prints. [5]
Show solved answerHide answer
Normal Distribution: Features and Probability
Features of Normal Distribution
- Bell-shaped and symmetric about the mean $\mu$; the two halves are mirror images.
- Mean = Median = Mode, all located at the center $\mu$.
- Completely defined by two parameters: mean $\mu$ and standard deviation $\sigma$.
- Total area under the curve equals $1$ (total probability = 1).
- Asymptotic: the curve approaches but never touches the x-axis, ranging from $-\infty$ to $+\infty$.
- It follows the empirical rule: about 68% of values lie within $\mu \pm \sigma$, 95% within $\mu \pm 2\sigma$, and 99.7% within $\mu \pm 3\sigma$.
- PDF:
$$f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}, \quad -\infty < x < \infty$$
Numerical Solution
Given data:
- Mean $\mu = 18.25$ s
- Standard deviation $\sigma = 0.34$ s
- Required: $P(X \geq 17.64)$
Step 1: Standardize
$$Z = \frac{X - \mu}{\sigma} = \frac{17.64 - 18.25}{0.34} = \frac{-0.61}{0.34} = -1.79$$
Step 2: Express probability
$$P(X \geq 17.64) = P(Z \geq -1.79)$$
Step 3: Apply symmetry
$$P(Z \geq -1.79) = P(Z \leq 1.79) = 0.5 + P(0 \leq Z \leq 1.79)$$
Step 4: Z-table value
$$P(0 \leq Z \leq 1.79) = 0.4633$$
Step 5: Final result
$$P(X \geq 17.64) = 0.5 + 0.4633 = \boxed{0.9633}$$
Interpretation: There is approximately a 96.33% probability that a print takes at least 17.64 seconds to develop.
2079 · 5 marks
What do you mean by normal distribution? From a batch of 10000, the lifetime of laptop batteries has a normal distribution with a mean of 40 months and a standard deviation of 8 months. What is the probability that a laptop selected at random will have life time (i) more than 50 months? (ii) between 40 and 50 months? [5]
2078 · 5 marks
The lifetime of a certain electronic component is a normal random variate with the expectation of 5000 hours and a standard deviation of 100 hours. Compute the probabilities under the following conditions:a. Lifetime of components between 3000 to 6500 hours b. Lifetime of components between 3000 to 6500 hours c. Lifetime of components more than 6000 hours [5]
2076 · 10 marks
a. Define Normal distribution. What are the main characteristics of a Normal distribution? b. What do you mean by probability density function? Write down its properties.[10]
2075 · 5 marks
A certain machine makes electrical resistors having a mean resistance of 40 ohms and standard deviation of 2 ohms. Assuming that the resistance follows a normal distribution.(i) What percentage of resistors will have a resistance exceeding 43 ohms?(ii) What percentage of resistors will have a resistance between 30 ohms to 45 ohms? [5]
2080.1 · 10 marks
Define normal distribution. What are the main characteristics of normal distribution? Extruded plastic rods are automatically cut into length 5 inches. Actual length are normally distributed about a mean of 5 inches and their standard deviation is 0.05 inches. (i) What proportion of rods exceed tolerance limits of 4.9 inches to 5.1 inches? (ii) Proportion of rods having tolerance rod which is greater than 6.5 inches.[10]
Show solved answerHide answer
Normal Distribution: Definition, Characteristics, and Numerical
Definition
A normal distribution is a continuous probability distribution, symmetrical and bell-shaped about its mean, defined by two parameters, mean $\mu$ and standard deviation $\sigma$. Its probability density function is:
$$f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}, \quad -\infty < x < \infty$$
Main Characteristics
- It is a continuous distribution with parameters $\mu$ (mean) and $\sigma^2$ (variance).
- The curve is bell-shaped and symmetrical about the mean $\mu$.
- Mean = Median = Mode (all coincide at the centre).
- Maximum ordinate occurs at $x = \mu$, equal to $\frac{1}{\sigma\sqrt{2\pi}}$.
- Skewness $\beta_1 = 0$ (perfectly symmetric).
- Kurtosis $\beta_2 = 3$ (mesokurtic).
- Empirical area rule:
- $P(\mu-\sigma < X < \mu+\sigma) = 0.6826$
- $P(\mu-2\sigma < X < \mu+2\sigma) = 0.9544$
- $P(\mu-3\sigma < X < \mu+3\sigma) = 0.9974$
- Total area under the curve = 1.
- Asymptotic: the curve never touches the X-axis.
Given Data
- Mean $\mu = 5$ inches
- Standard deviation $\sigma = 0.05$ inches
- $X \sim N(5, 0.05^2)$
- Standard normal variate: $Z = \dfrac{X - 5}{0.05}$
Part (i): Proportion exceeding tolerance limits 4.9 to 5.1 inches
Z-scores:
$$Z_1 = \frac{4.9 - 5}{0.05} = -2, \qquad Z_2 = \frac{5.1 - 5}{0.05} = +2$$
Proportion within limits:
$$P(4.9 < X < 5.1) = P(-2 < Z < 2) = 2 \times P(0 < Z < 2) = 2 \times 0.4772 = 0.9544$$
Proportion exceeding limits:
$$P(X < 4.9 \text{ or } X > 5.1) = 1 - 0.9544 = \boxed{0.0456 \ (4.56%)}$$
Part (ii): Proportion having length greater than 6.5 inches
Z-score:
$$Z = \frac{6.5 - 5}{0.05} = \frac{1.5}{0.05} = 30$$
Since $Z = 30$ lies far beyond the standard normal table (which effectively ends near $Z \approx 4$):
$$P(X > 6.5) = P(Z > 30) \approx \boxed{0}$$
A rod exceeding 6.5 inches is 30 standard deviations above the mean, so the proportion is practically zero.
Summary
| Part | Condition | Z-value(s) | Proportion |
|---|---|---|---|
| (i) | X < 4.9 or X > 5.1 | $\pm 2$ | 0.0456 (4.56%) |
| (ii) | X > 6.5 | 30 | $\approx 0$ |
Make Unit 6 stick
Practice STA169 with flashcards & quizzes