Consider n independent flips of a coin having probability p of landing on heads. Say that a changeover occurs whenever an outcome differs from the one preceding it. For instance, if n=5 and the outcome isHHTHT, then there are 3 changeovers. Find the expected number of changeovers. Hint: Express the number of changeovers as the sum of n1 Bernoulli random variables.

Short Answer

Expert verified

The expected number of changeovers is(n-1)2p(1-p).

Step by step solution

01

Given Information

Let n independent flips of a coin have probability pof landing on heads.

02

Explanation

Define indicator random variables Ijthat marks if there was a changeover between jthand (j+1)st flip, j=1,...,n-1. Observe that Ij=1if and only if we have Head in jthflip and Tail in (j+1)st flip or if we have Tail in jthflip and Head in (j+1)st flip.

So, we have that

PIj=1=2p(1-p).
03

Explanation

Define xas the total number of changeovers. We have that X=j=1n-1Ijand using the linearity of the expectation, we have that

E(X)=jEIj=jPIj=1

=(n-1)·2p(1-p).

04

Final Answer

The expected number of changeovers is(n-1)2p(1-p).

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

A total of n balls, numbered 1through n, are put into n urns, also numbered 1through nin such a way that ball iis equally likely to go into any of the urns 1,2,..i.

Find (a) the expected number of urns that are empty.

(b) the probability that none of the urns is empty.

Cards from an ordinary deck are turned face up one at a time. Compute the expected number of cards that need to be turned face up in order to obtain

(a) 2 aces;

(b) 5 spades;

(c) all 13 hearts.

Consider a gambler who, at each gamble, either wins or loses her bet with respective probabilities pand 1-p. A popular gambling system known as the Kelley strategy is to always bet the fraction 2p-1of your current fortune when p>12. Compute the expected fortune afterngambles of a gambler who starts with xunits and employs the Kelley strategy.

In an urn containing n balls, the ith ball has weight W(i),i = 1,...,n. The balls are removed without replacement, one at a time, according to the following rule: At each selection, the probability that a given ball in the urn is chosen is equal to its weight divided by the sum of the weights remaining in the urn. For instance, if at some time i1,...,ir is the set of balls remaining in the urn, then the next selection will be ij with probability W(ij)/k=1rW(ik), j = 1,...,r Compute the expected number of balls that are withdrawn before the ball number 1is removed.

If 101items are distributed among 10 boxes, then at least one of the boxes must contain more than 10 items. Use the probabilistic method to prove this result.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free