Bayes' Theorem for Employee Napping Probability

  • Thread starter Thread starter temaire
  • Start date Start date
  • Tags Tags
    Theorem
temaire
Messages
275
Reaction score
0

Homework Statement


An employee goes to work from 9 am to 4 pm. He takes a nap for an average of 2 hours if he starts napping before 1 pm and naps for an average of 1 hours if he starts napping after 1 pm. His boss randomly checks up on him once during his shift. If his boss finds him napping, what is the probability that he starts napping before 1 pm?

Homework Equations


Bayes' Theorem:
P(A_1|B)=\frac{P(A_1)P(B|A_1)}{P(B|A_1)P(A_1)+P(B|A_2)P(A_2)}

The Attempt at a Solution


Event A1: Employee naps before 1 pm
Event A2: Employee naps after 1 pm
Event B: Boss finds employee napping

P(A_1)=\frac{4}{7}
P(A_2)=\frac{3}{7}
P(B|A_1)=\frac{2}{7}
P(B|A_2)=\frac{1}{7}

P(A_1|B)=\frac{P(A_1)P(B|A_1)}{P(B|A_1)P(A_1)+P(B|A_2)P(A_2)}
P(A_1|B)=\frac{\frac{4}{7}\cdot \frac{2}{7}}{\frac{2}{7}\cdot \frac{4}{7}+\frac{1}{7}\cdot \frac{3}{7}}
P(A_1|B)=\frac{8}{11}=0.73

Is my solution correct?
 
Physics news on Phys.org
Insufficient information.

You assumed that the starting time of the nap is random with a uniform distribution.
a) That should be specified in the problem.
b) That can lead to problems if the nap starts after 3 PM.

If we use that assumption of a uniform nap starting time and ignore the potential issue with 4 pm, your answer is right.
 
Thanks for the response.

I made the assumption that the naps could be broken up into multiple segments and that the total nap times were 2 hours or 1 hour. This avoids the problem of the employee taking an hour long nap right before his shift ends.
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top