# Thread: What's the probability density function of a fair coin flip?

1. Is it p(x) = 1/2 for all R? ...wait it can't be a density function right? is x is the number of coin flip and p(x) is the number of tails, how would you define it?  2.

3. You have two events H and T. P(H) = P(T) = 1/2. For n flips, use binomial distribution with p = 1/2.  4. I think you can't define a probability density function for discrete variables. Yet, you could still think of "tail" and "head" as two values of a continuous variable x and in that case the probability density function would be the sum of two Dirac functions. In that case the probability density function would be:

p(x) = 1/2 delta(x - "head") + 1/2 delta (x - "tail" )

where "head" and "tail" are the values of x you have chosen to represent "head" and "tail".

In this way, the integral (with boundaries depending on your definition of the continuous variable x) becomes 1 (1/2 + 1/2).

Correct me if I'm wrong.  5. Originally Posted by fred91 I think you can't define a probability density function for discrete variables. Yet, you could still think of "tail" and "head" as two values of a continuous variable x and in that case the probability density function would be the sum of two Dirac functions. In that case the probability density function would be:

p(x) = 1/2 delta(x - "head") + 1/2 delta (x - "tail" )

where "head" and "tail" are the values of x you have chosen to represent "head" and "tail".

In this way, the integral (with boundaries depending on your definition of the continuous variable x) becomes 1 (1/2 + 1/2).

Correct me if I'm wrong.
You are correct in asserting you can't have a density function for discrete random variables. However you are making things unnecessarily complicated. In these cases simply work with the distribution function.  Bookmarks
 Posting Permissions
 You may not post new threads You may not post replies You may not post attachments You may not edit your posts   BB code is On Smilies are On [IMG] code is On [VIDEO] code is On HTML code is Off Trackbacks are Off Pingbacks are Off Refbacks are On Terms of Use Agreement