Solve the following problems using linearity of expectation.

Assignment Help Basic Computer Science
Reference no: EM13158832

Solve the following problems using linearity of expectation. . (For each problem you will want to think about what the appropriate random variables should be and define them explicitly.)

(a) A coin with probability p of coming up heads is tossed independently n times. What is the expected number of maximal "runs", where a "run" is a maximal sequence of consecutive flips that are the same? For example, the sequence HHHTTHTHHH has 5 runs, the first three H, the following two T, and so on.

(b) A certain bubble gum company includes a picture card of a famous basketball player in each pack of bubble gum it sells. A complete set of cards consists of n players. Suppose that every pack you buy is equally likely to contain the picture of any of the n players. Let X be the random variable which is the number of packs you need to buy to have a complete set. What is E(X )? (Hint: think about representing X as the sum over i of the number of steps needed to go from having a set with i distinct players to i + 1 distinct players.)

 

 

Reference no: EM13158832

Questions Cloud

Eclipse or netbeans environments : As recommendation, you can try to use Eclipse or NetBeans environments that are used also for other courses as: Introduction in Java programming and Intermediate programming.
Describe the general secretory pathway : Describe the general secretory pathway in both a Gram positive and Gram negative cell.
Transportation costs incurred by a manufacturing company : Transportation costs incurred by a manufacturing company to ship its product to its customers would be classified as which of the following?
Transaction models for understanding communication : Explain the strengths and weaknesses of the transmission and transaction models for understanding communication by reviewing the theoretical process,
Solve the following problems using linearity of expectation. : Solve the following problems using linearity of expectation. . (For each problem you will want to think about what the appropriate random variables should be and define them explicitly.)
Calculate the ph of a 0.50 m aqueous solution of nh3 : Calculate the pH of a 0.50 M aqueous solution of NH3. The Kb for NH3 is 1.8 x 10-5.
Why might this be the right form for the new business : Respond to the question and to other students' postings. Consider the following when posting your responses: Why might this be the right form for the new business? What might some of the disadvantages be?
Marketing in a business industry : Differentiate between marketing in a business industry of your choice to marketing within the health care industry. Be sure to discuss the key roles, the impact of the external environment, etc. within each industry.
Explain how the structure of the digestive tract : Explain how the structure of the digestive tract in different invertebrate groups affects the size of the organisms they can eat.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining major provisions of telecommunications act

Write down some of the major provisions of the Telecommunications Act of 1996?

  Write difference between logical and physical modeling

What is the difference between logical and physical modeling? Give three reasons why logical models are superior for structuring business requirements.

  Factors finding whether something is politically feasible

Describe political feasibility. What factors go into determining whether something is politically feasible in an organization? Answers may include whether a sponsor exists

  Compute cpi of processor with given workload

Assume that there are no other hazards that require stalling. Compute the CPI of the above processor with the given workload.

  Determine minute at which first customer arrives

Choose a random integer between 1 and 4 to determine the minute at which the first customer arrives. What happens if the arrival is changed from 1 to 4 minutes to 1 to 3 minutes?

  Draw comparisons with software architecture

Draw comparisons with software architecture. How are the disciplines of classical architecture and the software architecture similar? How do they differ?

  Sequence of events necessary to establish communication

Multiple KDC Domains to chain of three KDC. In other words, suppose that Alice wants to talk to Boris through a chain of 3 KDCs. Provide sequence of events necessary to establish communication.

  Draw logic diagram of circuit having flip-flop equations

A sequential circuit has two D flip-flops A and B, two inputs x and y, and one output z. The flip-flop equations and circuit. Draw the logic diagram of the circuit.

  Determine complement of sum of these eight-bit bytes

UDP and TCP use 1s complement their checksums. Assume you have following three 8-bit bytes: 01010011, 01010100, 01110100. Determine 1s complement of sum of these eight-bit bytes?

  Characteristics of risc directly implemented in cisc system

Why do RISC machines operate on registers? Which characteristics of RISC systems could be  directly implemented in CISC systems.

  Steps for company browse the site using this url

The static IP address of the server is 192.168.45.200. What steps do you take so that each computer in  company can browse site by using this URL?

  What are the drawbacks of your changes?

Describe what changes could be made to an operating to break the conditions of non-preemption and hold and wait for deadlock prevention. What are the drawbacks of your changes?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd