[Probability] Expected Value of Random Variable

trash
Messages
13
Reaction score
0

Homework Statement


A man wants to travel to four cities (A,B,C,D) but he has such a bad memory that he can't remember the cities that visited, therefore, if he travel to city A he can choose between (B,C,D) and if he then travel to B he can choose between (A,C,D).
Find v, If v it's the expected value of how many times he would have to travel before visited all cities at least once.


Homework Equations


X= "# of times required to visit all cities at least once."
E(X) = \Sigma xp_{X}(x)itex]<br /> <br /> <br /> <h2>The Attempt at a Solution</h2><br /> I&#039;m having some issue trying to find the probability function p_{X}(x).<br /> Since he already traveled to some city -let&#039;s say A- and then travels to another city -let&#039;s say B-, then P(&quot;going to another city not traveled before&quot;) = {C,D}/{A,C,D} = 2/3.<br /> It seems to me that P{X=4}= (2/3)*(1/3).<br /> <br /> Now, how can i get P {X=n} ?. I&#039;ve been thinking about a binomial distribution, but it doesn&#039;t seem quite right because with X~Bin(n,p) i can&#039;t just use one value of p -that changes depending of how many different cities he already visited.
 
Physics news on Phys.org
It seems to me that P{X=4}= (2/3)*(1/3).
Right.

What is the probability that the man visited just 2 cities after n visits? What is the probability that he visited just 3?
If you know those two, it is easier to calculate p(x).
 
trash said:

Homework Statement


A man wants to travel to four cities (A,B,C,D) but he has such a bad memory that he can't remember the cities that visited, therefore, if he travel to city A he can choose between (B,C,D) and if he then travel to B he can choose between (A,C,D).
Find v, If v it's the expected value of how many times he would have to travel before visited all cities at least once.


Homework Equations


X= "# of times required to visit all cities at least once."
E(X) = \Sigma xp_{X}(x)itex]<br /> <br /> <br /> <h2>The Attempt at a Solution</h2><br /> I&#039;m having some issue trying to find the probability function p_{X}(x).<br /> Since he already traveled to some city -let&#039;s say A- and then travels to another city -let&#039;s say B-, then P(&quot;going to another city not traveled before&quot;) = {C,D}/{A,C,D} = 2/3.<br /> It seems to me that P{X=4}= (2/3)*(1/3).<br /> <br /> Now, how can i get P {X=n} ?. I&#039;ve been thinking about a binomial distribution, but it doesn&#039;t seem quite right because with X~Bin(n,p) i can&#039;t just use one value of p -that changes depending of how many different cities he already visited.
<br /> <br /> This is much like the &quot;coupon collector&#039;s problem&quot;, except that here we cannot immediately collect a coupon of the type that we have just now collected. See, eg., <a href="http://en.wikipedia.org/wiki/Coupon_collector%27s_problem" target="_blank" class="link link--external" rel="nofollow ugc noopener">http://en.wikipedia.org/wiki/Coupon_collector&#039;s_problem</a><br /> <br /> The number of trips is a sum on three independent, but not identically-distributed geometric random variables. Getting the mean is a lot easier than getting the whole probability distribution.
 
Thanks, both of you.

mfb said:
Right.

What is the probability that the man visited just 2 cities after n visits? What is the probability that he visited just 3?
If you know those two, it is easier to calculate p(x).

Let me give it a try:
>What is the probability that the man visited just 2 cities after n visits?
He's in a random city and travel to another random city, then if he chooses always the city he already visited from a total of three, then

P{"the man visited just 2 cities after n visits" } = (1/3)^(n-2)

>What is the probability that he visited just 3?
I'm not sure if i know how to do this, but here what I'm heading:
Case 1: After he arrives to the second city he chooses a different city, then keep traveling between
---> P (case 1) = (2/3)^(n-2)
Case 2: After he arrives to the second city he chooses a city he already visited, then a different city:
---> P (case 2) = (1/3)[(2/3)^(n-3)]
...
Case k: After he arrives to the k city he chooses a city he already visited k times, then a different city:
---> P (case k) = (1/3)[(2/3)^(n-(k+1))]

And P{"What is the probability that he visited just 3?"} = \bigcup P(case i)

Then P("the man visited just 4 cities after n visits") = 1 - P("the man visited just 3 cities after n visits") - P("the man visited just 2 cities after n visits").

Ray Vickson said:
This is much like the "coupon collector's problem", except that here we cannot immediately collect a coupon of the type that we have just now collected. See, eg., http://en.wikipedia.org/wiki/Coupon_collector's_problem

The number of trips is a sum on three independent, but not identically-distributed geometric random variables. Getting the mean is a lot easier than getting the whole probability distribution.
Then, for this excersise would be something like "Suppose that there are 4 types of cities, and that each day a traveler randomly visit one of those with probability pi corresponding to the ith city, how many travels do you expect he needs to do before having visited every city at least once?"

Maybe can i use the k cases i used before -the corresponding pi-?
 
trash said:
Thanks, both of you.



Let me give it a try:
>What is the probability that the man visited just 2 cities after n visits?
He's in a random city and travel to another random city, then if he chooses always the city he already visited from a total of three, then

P{"the man visited just 2 cities after n visits" } = (1/3)^(n-2)

>What is the probability that he visited just 3?
I'm not sure if i know how to do this, but here what I'm heading:
Case 1: After he arrives to the second city he chooses a different city, then keep traveling between
---> P (case 1) = (2/3)^(n-2)
Case 2: After he arrives to the second city he chooses a city he already visited, then a different city:
---> P (case 2) = (1/3)[(2/3)^(n-3)]
...
Case k: After he arrives to the k city he chooses a city he already visited k times, then a different city:
---> P (case k) = (1/3)[(2/3)^(n-(k+1))]

And P{"What is the probability that he visited just 3?"} = \bigcup P(case i)

Then P("the man visited just 4 cities after n visits") = 1 - P("the man visited just 3 cities after n visits") - P("the man visited just 2 cities after n visits").


Then, for this excersise would be something like "Suppose that there are 4 types of cities, and that each day a traveler randomly visit one of those with probability pi corresponding to the ith city, how many travels do you expect he needs to do before having visited every city at least once?"

Maybe can i use the k cases i used before -the corresponding pi-?

Assume he starts is some city, so that starting place is a "visit", but is not a "trip". (If you don't like that convention, just shift the number of steps by 1.) So, he starts by having visited 1 city. On the first step he travels to some other city, so after 1 step he will have visited 2 cities. After that, the number of steps N3 he needs to take to visit a new (as-yet-unvisited) city is a geometric random variable with success probability p3 = 2/3. Once a new city has been visited (so he has now visited 3 different cities) the number of steps N4 he needs to take to take to first visit the 4th city is a geometric random variable with success probability p4 = 1/3. The total number of steps is N = 1 + T3 + T4, where T3 and T4 are independent. Of course, the expected value is EN = 1 + E(T3) + E(T4), and this is easy to get (because there are standard formulas for the expected value of a geometric random variable).

We can get the probability P{N = n}, n = 3,4,5, ... either by computing the convolution of the two geometric distributions, or by using generating-function methods.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top