Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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

Study anywhere. Anytime. Across all devices.

Sign-up for free