Question

7. A probability generating function encodes the probabilities of different events happening with a gener- ating function. For example, consider tossing a coin until the first time you get a heads. Then, let pn be the probability that you had to flip the coin n times until you got a heads for the first time. The probability generating function for this problem would be f(z) = Σ Pnz. 膨:1 (a) If your coin has a probability p of landing heads on any particular coin toss, find the value of pa in terms of p. (b) Find a closed form for the probability generating function for this coin (c) What is f(1)? Give a non-algebraic reason for why this is true. (d) The average number of times you need to flip the coin in order to get a heads would be given by n Pn Compute this value using your generating function from part (b)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a)

For getting heads for the first time on nth toss, we have got all tails on (n-1) tosses.

probability of tails = 1-p and all tosses are independent of each other, then

p_n = (1-p)^{n-1}p

(b)

n-1 アn n= 1 7l n= 1 7l n= 1

= pxsum_{n=0}^{infty } ((1-p)x)^{n}

= px rac{1}{1 - (1-p)x} = rac{px}{1 - x + px} (By sum of geometric series with common ratio = (1-p)x and first term = 1}

(c)

1-1+p*1=p/p = 1

This is true because f(1) is sum of all probabilities for possible values of n which is always equal to 1.

(d)

By definition of probability generating function, average number of times need to flip the coin is,

f'(1)= rac{mathrm{d} }{mathrm{d} x}_{x=1} rac{px}{1 - x + px} = rac{mathrm{d} }{mathrm{d} x}_{x=1} rac{p(1-x+px)- px(-1 + p)}{(1 - x + px)^2}

= rac{p(1-1+p*1)- p*1(-1 + p)}{(1 - 1 + p*1)^2} = rac{p^2 + p - p^2}{p^2} = rac{1}{p}

Add a comment
Know the answer?
Add Answer to:
7. A probability generating function encodes the probabilities of different events happening with a gener- ating...
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
  • An experiment consists of tossing an unfair coin (53% chance of landing on heads) a specified...

    An experiment consists of tossing an unfair coin (53% chance of landing on heads) a specified number of times and recording the outcomes. (a) What is the probability that the first head will occur on the second trial? (Use 4 decimal places.) Does this probability change if we toss the coin three times? What if we toss the coin four times? The probability changes if we toss the coin three times, but does not change if we toss the coin...

  • An experiment consists of tossing an unfair coin (49% chance of landing on heads) a specified...

    An experiment consists of tossing an unfair coin (49% chance of landing on heads) a specified number of times and recording the outcomes. (a) What is the probability that the first head will occur on the second trial? (Use 4 decimal places.) Does this probability change if we toss the coin three times? What if we toss the coin four times? The probability changes if we toss the coin four times, but does not change if we toss the coin...

  • A box contains five coins. For each coin there is a different probability that a head...

    A box contains five coins. For each coin there is a different probability that a head will be obtained when the coin is tossed. (Some of the coins are not fair coins!) Let pi denote the probability of a head when the i th coin is tossed (i = 1, . . . , 5), and suppose that p1 = 0, p2 =1/4, p3 =1/2, p4 =3/4, p5 =1. The experiment we are interested in consists in selecting at random...

  • probability: please solve it step by step. thanks An unfair coin has probability of heads equal...

    probability: please solve it step by step. thanks An unfair coin has probability of heads equal to p. An experiment consists of flipping this unfair coin n times and then counting the number of heads. a. Let Y; be a random variable which is 1 if the ith flip is heads and 0 if the ith flip is tails, where 1 sisn. Show that E (Y) = p and V(Y) = p-p2. b. Derive the moment-generating function of Y. c....

  • Question 7 (4 points). Find the probabilities. Give your answers as fractions (1) You tossa fair...

    Question 7 (4 points). Find the probabilities. Give your answers as fractions (1) You tossa fair coin three times. What are the chances that you get at least two heads? (2) You toss a fair coin three times. What are the chances that you get at least two heads in a row? ces that the second number is greater than the first? (4) You roll a fair die twice. What are the chances that the second number is twice as...

  • This is discrete mathematics If you do it right, I must give praise. You must use probability spa...

    This is discrete mathematics If you do it right, I must give praise. You must use probability space is a triple relative acknowledge. S: is a sample sapce E=p(s) is the set of all events P: E-->R is a function. The important thing that I need to say three times:   If you don't know how to do it, please don't do it. don't copy others, especially for question (a), give sample space, probability measure The important thing that I need...

  • Problem 7. Suppose that a coin will be tossed repeatedly 100 times; let N be the...

    Problem 7. Suppose that a coin will be tossed repeatedly 100 times; let N be the number of Heads obtained from 100 fips of this coin. But you are not certain that the coin is a fair coin.it might be somewhat biased. That is, the probability of Heads from a single toss might not be 1/2. You decide, based on prior data, to model your uncertainty about the probability of Heads by making this probability into random variable as wl....

  • 1. You are told that .coin has probability of a Head either p 1/3 or p = 2/3. You must a test Ho p= Ha p You toss the c...

    1. You are told that .coin has probability of a Head either p 1/3 or p = 2/3. You must a test Ho p= Ha p You toss the coin 3 times and get Y Heads. You decide to reject Ho in favor of Ha if Y = 2 or Y 3. (Note that the count of Heads Y is the CSS for p.) What are the two error probabilities a and B for this test? What is the power...

  • Math 12 Quantithe Literacy Teddual Assignment: Lesson 16 Hasie Probability (15 pts) Name: letesh below, make...

    Math 12 Quantithe Literacy Teddual Assignment: Lesson 16 Hasie Probability (15 pts) Name: letesh below, make sure to include labels. Show work where necessary.rund der Make sure all labels and H ote sentences R Bestien Cuestion 16: If you flip a fair com 10 times and it lands heads up 5 times, this would e coin landing heads up. Is this an example of theoretical or empirical probably resoning 2) The spinner below shows five equally sized slices. Tom spun...

  • Problem: Write a function named coinToss that simulates the tossing of a coin. When you call the function, it should ge...

    Problem: Write a function named coinToss that simulates the tossing of a coin. When you call the function, it should generate a random number in the range of 1 through 2. If the random number is 1, the function should display “heads.” If the random number is 2, the function should display “tails.” Demonstrate the function in a program that asks the user how many times the coin should be tossed and then simulates the tossing of the coin that...

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