# Thread:

1. ## Conditional probability

Hello, I'm stuck on a problem and I wasn't getting any answer in the pre-university statistic topic so I'd be very grateful if someone could help:

To go to work employs take their car or the bus. If they take their car they have 1/2 chances to be late, if they take the bus only 1/4 chances to be late. If they are on time one day they will take the same mean of transportation the next day, if they are late they switch. If p is the probability that an employ goes to work on day one with his car:

a) what is the probability that he'll go to work with his car on day n?

I started by writing the probability with the conditional probability that he went to work on day n-1... but that's the best i can come up with I don't know what else I can do.

b) what is the probability that he will be late on day n.

c)what is the limit when n---> inf for a) and b).

I thought of something but it doesn't work:
$C_{n}=\{\text{arrives with car on day n}\}$
$A=\{\text{arrives on time}\}$

then if $P$ is our function of probability:
$P(C_n)=P(A|C_{n-1})+P(A^{c}|C_{n-1}^c))=\frac{1}{2} P(C_{n-1})+\frac{1}{4}P(C_{n-1}^c)= \frac{1}{2} P(C_{n-1}) + \frac{1}{4}(1-P(C_{n-1})) = \frac{1}{4} (P(C_{n-1})+1)$

then recursively you get

$\frac{P(C_{1})}{4^n} + \sum^{n}_{k=1} \frac{1}{4^k}= \frac{P(C_{1})}{4^n} + \frac{1- \frac{1}{4^{n-1}}}{ \frac{3}{4}}$

but if n---->inf then $P(C_n)$ is greater than 1... find the big mistake....

thanks a lot in advance.

2. ## Re: Conditional probability

Hey sunmalus.

Are you familiar with Markov Chains?

Markov chain - Wikipedia, the free encyclopedia

3. ## Re: Conditional probability

No I didn't but it's exactly what I needed. Thanks a lot!!

4. ## Re: Conditional probability

btw it works the way I did it. But I forgot to put a (1/4) if front of the last expression.....
And then I find the same thing as when using Markov chains!
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 6, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9532255530357361, "perplexity_flag": "middle"}