Expected value and probability

In summary, Konthelian and I were playing a game yesterday and we figured out that E[X|Y=0]=1 and E[X|Y=1]=2.
  • #1
yevi
66
0
I have the following question:
2 persons shoot it each other. Person A shoots at Person B, if A misses, B shoots at A and so on.
The Game continues until one of them hits the other one.
Probability that A hits B is P1 ,and probability that B hits A is P2.

I need to find the E[X].

They give some guidance:
Declare another Random variable Y as follows:
Y=0 if person A hits person B on fist shot.
Y=1 if person B hits person A on fist shot.
Y=2 if none of them hits on first shot.

I also have a solution, that I don't understand:

The idea is: E(X)=E[E[X|Y]]=[tex]\sum[/tex]E[X|Y=y]P(y) (this I understand)
What I don't understand is how they've calculated the following:
g(0)=E[X|Y=0]=1
g(0)=E[X|Y=1]=2
g(0)=E[X|Y=2]=2+E[X]
 
Physics news on Phys.org
  • #2
yevi said:
g(0)=E[X|Y=0]=1
g(0)=E[X|Y=1]=2
g(0)=E[X|Y=2]=2+E[X]

Hi yevi! :smile:

I don't undestand what "g(0)" means, but the rest is fairly clear:

If Y = 0, then that means that the game stops at 1, so the expected value is 1.

If Y = 1, then that means that the game stops at 2, so the expected value is 2.

If Y = 2, then that means that the game starts all over again, as if there had been no shots, and so the expected value is 2 more than it was at the start. :smile:

(But this is a really cumbersome way of doing it. :frown:

It would be more straightforward to say:
E[X|X=1]=1
E[X|X=2]=2
E[X|X>2]=2 + E[X])
 
  • #3
tiny-tim said:
If Y = 0, then that means that the game stops at 1, so the expected value is 1.

If Y = 1, then that means that the game stops at 2, so the expected value is 2.

What do you mean stops at 1 or at 2?
 
  • #4
yevi said:
What do you mean stops at 1 or at 2?

I mean the game stops at 1 shot, or at 2 shots.

eg, if Y=0, then A hits B on first shot, so game stops with only 1 shot. :smile:
 
  • #5
yevi said:
What do you mean stops at 1 or at 2?

Person A shoots first. Suppose he hits person B. Then it stops at 1 (one turn)

Suppose not (i.e. Person A misses), then now it's person B's turn. He shoots. Suppose he hits person A. Then it stops at 2(two turns)

Now, suppose not again (i.e. person B misses), then now it's back to person A's turn. Hence, it starts over and therefore you have to add 2(two turns) to the expected value. Hope that helps.
 
  • #6
Thank you both!
 
  • #7
Interesting! Apparently Tiny Tim and Konthelian helped you solve this problem: find E(X), yet it was never stated what "X" means!
 
  • #8
HallsofIvy said:
Interesting! Apparently Tiny Tim and Konthelian helped you solve this problem: find E(X), yet it was never stated what "X" means!

Hi HallsofIvy! :smile:

Konthelian and I knew because … we were playing the game yesterday! :wink:

:eek: … nurse … !
 

Related to Expected value and probability

What is expected value?

The expected value is a measure of the average outcome of a random variable over a large number of trials. It is calculated by multiplying each possible outcome by its probability and summing all of these products.

How is expected value related to probability?

The expected value takes into account the probabilities of each outcome in order to calculate the average value. Probability is a measure of the likelihood of a particular outcome occurring, and it is used to determine the weight of each outcome in the expected value calculation.

What is the difference between expected value and actual value?

The expected value is a theoretical value based on the probabilities of each outcome, while the actual value is the observed value in a real-life scenario. The expected value may or may not match the actual value, as it is an average over a large number of trials.

How can expected value be used in decision making?

Expected value can be used as a tool in decision making by providing information about the potential outcomes and their likelihood. It can help individuals or businesses to make informed choices by considering the expected value of each option.

Is expected value always a positive number?

No, expected value can be positive, negative, or zero. It depends on the probabilities and outcomes of the random variable. A positive expected value indicates that the outcome is likely to result in a net gain, while a negative expected value indicates a net loss.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
617
  • Precalculus Mathematics Homework Help
Replies
3
Views
801
  • Precalculus Mathematics Homework Help
Replies
7
Views
601
  • Precalculus Mathematics Homework Help
Replies
13
Views
518
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
15
Views
849
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
3
Views
686
  • Precalculus Mathematics Homework Help
Replies
7
Views
804
Back
Top