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

Let X be the length of the initial run in a random ordering of n ones and m zeros. That is, if the first k values are the same (either all ones or all zeros), then X Ú k. Find E[X].

Short Answer

Expert verified

The E[X}of the problem if X be the length of the initial run in a random ordering of n ones and m zeros E[L]=nm+1+mn+1.

Step by step solution

01

Given information

X= length of the initial run in a random ordering of n ones and m zeros

k-value are same

02

Solution

The solution will be shown below,

E[L]=E[LFirst vlaue is one]n(n+m)

+E[LFirst value is0]m(n+m)

Now if first value =1,

Length of run will be position of first 0when considering remaining n+m-1values, of which n-1are one's and mare zero's

E[L]=n+mm+1nn+m+n+mn+1mn+m

E[L]=nm+1+mn+1

03

Final answer

The E[X]of the given problem Will be E[L]=nm+1+mn+1.

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

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