Example 1
Question: A student spends 1 to 5 hours daily practising coding problems. The probability distribution of the number of hours X spent per day is given by: \[P(X = x) = \begin{cases} kx, & x = 1, 2, 3 \\ k(6 - x), & x = 4, 5 \\ 0, & \text{otherwise} \end{cases}\] where x denotes the number of hours. Find the value of k, and hence find \(P(1 < X < 5)\).
Solution: Step 1: Use the condition that the sum of all probabilities equals 1. The possible values of X are 1, 2, 3, 4, 5. For \(x = 1, 2, 3\): \(P(X = x) = kx\) For \(x = 4, 5\): \(P(X = x) = k(6 - x)\) So: \[P(X=1) = k, \quad P(X=2) = 2k, \quad P(X=3) = 3k\] \[P(X=4) = k(6-4) = 2k, \quad P(X=5) = k(6-5) = k\] Step 2: Sum all probabilities and set equal to 1. \[k + 2k + 3k + 2k + k = 1\] \[9k = 1\] \[k = \frac{1}{9}\] Step 3: Find \(P(1 < X < 5)\). The integer values of X strictly between 1 and 5 are: 2, 3, 4. \[P(1 < X < 5) = P(X=2) + P(X=3) + P(X=4)\] \[= 2k + 3k + 2k = 7k\] Substituting \(k = \frac{1}{9}\): \[P(1 < X < 5) = 7 \times \frac{1}{9} = \frac{7}{9}\]
Answer: \(k = \dfrac{1}{9}\) and \(P(1 < X < 5) = \dfrac{7}{9}\)
Example 2
Question: A person exercises between 1 and 6 days per week. The probability distribution of the number of days X per week is: \[P(X = x) = \begin{cases} kx^2, & x = 1, 2 \\ k(10 - x), & x = 3, 4, 5, 6 \\ 0, & \text{otherwise} \end{cases}\] Find k and hence find \(P(2 \le X < 6)\).
Solution: Step 1: Use the total probability condition. For \(x = 1, 2\): \(P(X = x) = kx^2\) For \(x = 3, 4, 5, 6\): \(P(X = x) = k(10 - x)\) Listing each probability: \[P(X=1) = k(1)^2 = k\] \[P(X=2) = k(2)^2 = 4k\] \[P(X=3) = k(10-3) = 7k\] \[P(X=4) = k(10-4) = 6k\] \[P(X=5) = k(10-5) = 5k\] \[P(X=6) = k(10-6) = 4k\] Step 2: Sum all probabilities and set equal to 1. \[k + 4k + 7k + 6k + 5k + 4k = 1\] \[27k = 1\] \[k = \frac{1}{27}\] Step 3: Find \(P(2 \le X < 6)\). The integer values of X satisfying \(2 \le X < 6\) are: 2, 3, 4, 5. \[P(2 \le X < 6) = P(X=2) + P(X=3) + P(X=4) + P(X=5)\] \[= 4k + 7k + 6k + 5k = 22k\] Substituting \(k = \frac{1}{27}\): \[P(2 \le X < 6) = \frac{22}{27}\]
Answer: \(k = \dfrac{1}{27}\) and \(P(2 \le X < 6) = \dfrac{22}{27}\)