document.write( "Question 1166169: The number of members arriving at a gym follows a Poisson distribution with a mean of 2 members per minute.\r
\n" ); document.write( "\n" ); document.write( "(a) What is the probability that 3 members arrive in 30 seconds?
\n" ); document.write( "(b) Determine the probability (in percentage) that the lady at the front entrance can have a 2 minute uninterrupted coffee break?\r
\n" ); document.write( "\n" ); document.write( "The average time a member trains at the gym is 80 minutes with a standard deviation of 10 minutes. Assuming a normal distribution, determine the probability that a randomly selected member trains:\r
\n" ); document.write( "\n" ); document.write( "(c) for longer than an hour.
\n" ); document.write( "(d) between 90 and 105 minutes.
\n" ); document.write( "

Algebra.Com's Answer #852868 by CPhill(2189)\"\" \"About 
You can put this solution on YOUR website!
```python?code_reference&code_event_index=2
\n" ); document.write( "import numpy as np
\n" ); document.write( "from scipy.stats import poisson, norm\r
\n" ); document.write( "\n" ); document.write( "# (a) Probability that 3 members arrive in 30 seconds (0.5 min)
\n" ); document.write( "# Mean mu_a = 2 members/min * 0.5 min = 1
\n" ); document.write( "mu_a = 1
\n" ); document.write( "P_a = poisson.pmf(3, mu_a)\r
\n" ); document.write( "\n" ); document.write( "# (b) Probability that 0 members arrive in 2 minutes (uninterrupted break)
\n" ); document.write( "# Mean mu_b = 2 members/min * 2 min = 4
\n" ); document.write( "mu_b = 4
\n" ); document.write( "P_b_decimal = poisson.pmf(0, mu_b)
\n" ); document.write( "P_b_percentage = P_b_decimal * 100\r
\n" ); document.write( "\n" ); document.write( "# (c) Probability that a member trains for longer than an hour (60 minutes)
\n" ); document.write( "# T > 60. Mu = 80, Sigma = 10. Z = (60 - 80) / 10 = -2.0
\n" ); document.write( "Z_c = -2.0
\n" ); document.write( "# P(Z > -2.0) = 1 - P(Z <= -2.0)
\n" ); document.write( "P_c = 1 - norm.cdf(Z_c)\r
\n" ); document.write( "\n" ); document.write( "# (d) Probability that a member trains between 90 and 105 minutes
\n" ); document.write( "# Z_90 = (90 - 80) / 10 = 1.0
\n" ); document.write( "Z_90 = 1.0
\n" ); document.write( "# Z_105 = (105 - 80) / 10 = 2.5
\n" ); document.write( "Z_105 = 2.5
\n" ); document.write( "# P(1.0 < Z < 2.5) = P(Z < 2.5) - P(Z < 1.0)
\n" ); document.write( "P_d = norm.cdf(Z_105) - norm.cdf(Z_90)\r
\n" ); document.write( "\n" ); document.write( "print(f\"P(a): {P_a}\")
\n" ); document.write( "print(f\"P(b) decimal: {P_b_decimal}\")
\n" ); document.write( "print(f\"P(b) percentage: {P_b_percentage}\")
\n" ); document.write( "print(f\"P(c): {P_c}\")
\n" ); document.write( "print(f\"P(d): {P_d}\")\r
\n" ); document.write( "\n" ); document.write( "```\r
\n" ); document.write( "\n" ); document.write( "```text?code_stdout&code_event_index=2
\n" ); document.write( "P(a): 0.06131324019524039
\n" ); document.write( "P(b) decimal: 0.01831563888873418
\n" ); document.write( "P(b) percentage: 1.8315638888734178
\n" ); document.write( "P(c): 0.9772498680518208
\n" ); document.write( "P(d): 0.15244558860568092\r
\n" ); document.write( "\n" ); document.write( "```\r
\n" ); document.write( "\n" ); document.write( "This is a comprehensive probability question that tests your understanding of both **Poisson** and **Normal** distributions. Here are the step-by-step solutions for each part.\r
\n" ); document.write( "\n" ); document.write( "## Member Arrivals (Poisson Distribution)\r
\n" ); document.write( "\n" ); document.write( "The number of members arriving follows a Poisson distribution with a mean rate $\lambda = 2$ members per minute. The formula for the Poisson probability mass function is:
\n" ); document.write( "$$P(X=k) = \frac{e^{-\lambda t} (\lambda t)^k}{k!}$$
\n" ); document.write( "where $\lambda t$ is the expected number of arrivals in the time interval $t$.\r
\n" ); document.write( "\n" ); document.write( "### (a) What is the probability that 3 members arrive in 30 seconds?\r
\n" ); document.write( "\n" ); document.write( "1. **Calculate the mean ($\lambda t$) for the given interval:**
\n" ); document.write( " The time interval $t$ is $30$ seconds, which is $0.5$ minutes.
\n" ); document.write( " $$\lambda t = (2 \text{ members/min}) \times (0.5 \text{ min}) = 1$$
\n" ); document.write( " The mean number of members arriving in $30$ seconds is $\mu = 1$.\r
\n" ); document.write( "\n" ); document.write( "2. **Calculate $P(X=3)$:**
\n" ); document.write( " Using the Poisson formula with $k=3$ and $\lambda t=1$:
\n" ); document.write( " $$P(X=3) = \frac{e^{-1} (1)^3}{3!} = \frac{e^{-1}}{6}$$
\n" ); document.write( " $$P(X=3) \approx \mathbf{0.0613}$$\r
\n" ); document.write( "\n" ); document.write( "-----\r
\n" ); document.write( "\n" ); document.write( "### (b) Determine the probability (in percentage) that the lady at the front entrance can have a 2 minute uninterrupted coffee break?\r
\n" ); document.write( "\n" ); document.write( "An uninterrupted coffee break means **zero** members arrive during the $2$ minutes.\r
\n" ); document.write( "\n" ); document.write( "1. **Calculate the mean ($\lambda t$) for the given interval:**
\n" ); document.write( " The time interval $t$ is $2$ minutes.
\n" ); document.write( " $$\lambda t = (2 \text{ members/min}) \times (2 \text{ min}) = 4$$
\n" ); document.write( " The mean number of members arriving in $2$ minutes is $\mu = 4$.\r
\n" ); document.write( "\n" ); document.write( "2. **Calculate $P(X=0)$:**
\n" ); document.write( " Using the Poisson formula with $k=0$ and $\lambda t=4$:
\n" ); document.write( " $$P(X=0) = \frac{e^{-4} (4)^0}{0!} = e^{-4}$$
\n" ); document.write( " $$P(X=0) \approx 0.018315$$\r
\n" ); document.write( "\n" ); document.write( "3. **Convert to percentage:**
\n" ); document.write( " $0.018315 \times 100\% \approx \mathbf{1.83\%}$\r
\n" ); document.write( "\n" ); document.write( "-----\r
\n" ); document.write( "\n" ); document.write( "## Member Training Time (Normal Distribution)\r
\n" ); document.write( "\n" ); document.write( "The training time $T$ follows a Normal distribution with mean $\mu = 80$ minutes and standard deviation $\sigma = 10$ minutes.\r
\n" ); document.write( "\n" ); document.write( "We use the **Z-score** formula $Z = \frac{T - \mu}{\sigma}$ to standardize the values.\r
\n" ); document.write( "\n" ); document.write( "### (c) for longer than an hour.\r
\n" ); document.write( "\n" ); document.write( "We want to find $P(T > 1 \text{ hour})$. Since $1 \text{ hour} = 60 \text{ minutes}$: $P(T > 60)$.\r
\n" ); document.write( "\n" ); document.write( "1. **Calculate the Z-score for $T=60$:**
\n" ); document.write( " $$Z_{60} = \frac{60 - 80}{10} = \frac{-20}{10} = -2.0$$\r
\n" ); document.write( "\n" ); document.write( "2. **Find the probability:**
\n" ); document.write( " We look for $P(Z > -2.0)$. Since the Normal distribution is symmetric, $P(Z > -z) = P(Z < z)$.
\n" ); document.write( " $$P(Z > -2.0) = 1 - P(Z \le -2.0)$$
\n" ); document.write( " Using the standard normal table or calculator for $Z=-2.0$:
\n" ); document.write( " $$P(Z > -2.0) \approx \mathbf{0.9772}$$\r
\n" ); document.write( "\n" ); document.write( "-----\r
\n" ); document.write( "\n" ); document.write( "### (d) between 90 and 105 minutes.\r
\n" ); document.write( "\n" ); document.write( "We want to find $P(90 < T < 105)$.\r
\n" ); document.write( "\n" ); document.write( "1. **Calculate the Z-scores for $T=90$ and $T=105$:**
\n" ); document.write( " $$Z_{90} = \frac{90 - 80}{10} = \frac{10}{10} = \mathbf{1.0}$$
\n" ); document.write( " $$Z_{105} = \frac{105 - 80}{10} = \frac{25}{10} = \mathbf{2.5}$$\r
\n" ); document.write( "\n" ); document.write( "2. **Find the probability:**
\n" ); document.write( " We look for $P(1.0 < Z < 2.5)$.
\n" ); document.write( " $$P(1.0 < Z < 2.5) = P(Z < 2.5) - P(Z < 1.0)$$
\n" ); document.write( " Using the standard normal table or calculator:
\n" ); document.write( " $$\begin{aligned} P(Z < 2.5) &\approx 0.99379 \\ P(Z < 1.0) &\approx 0.84134 \end{aligned}$$
\n" ); document.write( " $$P(1.0 < Z < 2.5) = 0.99379 - 0.84134 = \mathbf{0.15245}$$
\n" ); document.write( "
\n" );