Question
Please read all three pictures to get full understanding, no need to complete Monte Carlo simulation. Just numerically price expectation:

Interview question (JP Morgan) You have 10 blue balls and 8 red balls, lined up in a queue. What is the expected number of balls that have a neighbor of a different color?
Hint: for each slot in the queue, define an indicator random variable. Apply the rule of total conditional expectation to evaluate the expectation of each indicator. Note that different indicators might need to be treated differently based on where their slot is in the queue. If possible, run a Monte Carlo simulation to verify your answer
l received a few queries about Problem 1 of HW07. I like to give you a bit more hint and clarification. Let X denote the number of balls that have a neighbor of a diferent color, and i denote a slot index ranging from 1 to 18 1. If slot i has two neighbors, then the indicator of slot i retuns 0 only when the balls in the 3 slots (1-1, i, i+1) all have the same color 2. The range for, X is from 2 (inclusive) to 18 (inclusive) 3. The answer EpX is higher than 10
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Let m be no. of red balls
Let n be no. of blue balls

Now we have the followingP(X1) - P(i.is.red).P(i 1.is.blueli.is.red) + P(i.is.blue).P(i + l.is.redli.is.blue) 7m 2mn m+nm+n- E A] EX)--10+8 m+nm+n-l (m+ n)(m+n-1) 2mn m+ n mtn-1 -(m + n)(m+ n-1) 2×10 × 8 80 9

Add a comment
Know the answer?
Add Answer to:
Please read all three pictures to get full understanding, no need to complete Monte Carlo simulation....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT