Let's analyze each of the three models for sending ( n ) packets over the Internet, focusing on the probability mass function (PMF), expectation (( \mathbb{E}[X_i] )), and variance (( \text{Var}(X_i) )) of the number of packets lost ( X_i ) for each model ( i = 1, 2, 3 ).
Model 1: Each Packet Takes a Different Path
Description:
Each of the ( n ) packets is sent over a distinct path. Each path fails independently with probability ( p ).
Probability Mass Function (PMF)
Since each packet's loss is independent, ( X_1 ) follows a Binomial Distribution:
[
P(X_1 = k) = \binom{n}{k} p^k (1 - p)^{n - k}, \quad \text{for } k = 0, 1, 2, \dots, n
]
Expectation
The expected number of lost packets is:
[
\mathbb{E}[X_1] = n \cdot p
]
Variance
The variance in the number of lost packets is:
[
\text{Var}(X_1) = n \cdot p \cdot (1 - p)
]
Explanation
Each packet independently has a probability ( p ) of being lost. The binomial distribution accurately models the number of lost packets under these independent conditions. The expectation and variance formulas are standard for a binomially distributed random variable.
Model 2: All Packets Take the Same Path
Description:
All ( n ) packets are sent over the same path. The path either succeeds entirely or fails entirely, each with probability ( 1 - p ) and ( p ), respectively.
Probability Mass Function (PMF)
Since the path is shared, either all packets are successfully delivered, or all are lost:
[
P(X_2 = 0) = 1 - p
]
[
P(X_2 = n) = p
]
[
P(X_2 = k) = 0, \quad \text{for } k \neq 0, n
]
Expectation
The expected number of lost packets is:
[
\mathbb{E}[X_2] = 0 \cdot (1 - p) + n \cdot p = n \cdot p
]
Variance
The variance in the number of lost packets is:
[
\text{Var}(X_2) = \mathbb{E}[X_2^2] - (\mathbb{E}[X_2])^2 = n^2 p (1 - p)
]
Explanation
All packets share the same path, leading to a situation where the loss is all-or-nothing. This creates a Bernoulli-like scenario where ( X_2 ) can only be ( 0 ) or ( n ). The expectation remains ( n \cdot p ) since it's the probability of the entire path failing, multiplied by the total number of packets. The variance accounts for the high variability introduced by the all-or-nothing nature of the path's success.
Model 3: Half the Packets Take One Path, Half Take Another
Description:
Assuming ( n ) is even, half of the packets (( \frac{n}{2} )) are sent over path A and the other half over path B. Each path fails independently with probability ( p ).
Probability Mass Function (PMF)
Let ( m = \frac{n}{2} ). The possible outcomes are:
- Both Paths Succeed: No packets are lost.
- One Path Fails: ( m ) packets are lost.
- Both Paths Fail: All ( n ) packets are lost.
Thus, the PMF is:
[
P(X_3 = 0) = (1 - p)^2
]
[
P(X_3 = m) = 2p(1 - p)
]
[
P(X_3 = n) = p^2
]
[
P(X_3 = k) = 0, \quad \text{for } k \notin {0, m, n}
]
Expectation
The expected number of lost packets is:
[
\mathbb{E}[X_3] = 0 \cdot (1 - p)^2 + m \cdot 2p(1 - p) + n \cdot p^2 = n \cdot p
]
Variance
The variance in the number of lost packets is:
[
\text{Var}(X_3) = \mathbb{E}[X_3^2] - (\mathbb{E}[X_3})^2 = 2m^2 p (1 - p) = \frac{n^2}{2} p (1 - p)
]
Explanation
By splitting the packets into two groups and sending each group over independent paths, the variability in packet loss is reduced compared to Model 2 but increased compared to Model 1. The possible outcomes are fewer than in the binomial case, leading to a distribution with discrete jumps at ( 0 ), ( m ), and ( n ). The expectation remains ( n \cdot p ), consistent with the linearity of expectation, while the variance is reduced by half compared to Model 2 due to the independence of the two paths.
Summary of Results
| Model | PMF | Expectation ( \mathbb{E}[X_i] ) | Variance ( \text{Var}(X_i) ) |
|---|
| 1. Each Packet on Different Path | ( P(X_1 = k) = \binom{n}{k} p^k (1 - p)^{n - k} ) | ( \mathbb{E}[X_1] = n p ) | ( \text{Var}(X_1) = n p (1 - p) ) |
| 2. All Packets on Same Path | ( P(X_2 = 0) = 1 - p ), ( P(X_2 = n) = p ) | ( \mathbb{E}[X_2] = n p ) | ( \text{Var}(X_2) = n^2 p (1 - p) ) |
| 3. Half Packets on Each of Two Paths | ( P(X_3 = 0) = (1 - p)^2 ), ( P(X_3 = \frac{n}{2}) = 2p(1 - p) ), ( P(X_3 = n) = p^2 ) | ( \mathbb{E}[X_3] = n p ) | ( \text{Var}(X_3) = \frac{n^2}{2} p (1 - p) ) |
Each model offers a different trade-off between risk and variability in packet loss, allowing for strategic choices based on the desired reliability and redundancy.