# Probability Mass Function

1. Aug 4, 2009

### Orphen89

1. The problem statement, all variables and given/known data

Let X be a random variable with PMF

x 0 2 4 5
p(x) 0.15 0.30 0.30 0.25

(The x values above are supposed to match up with the p(x) values)

Find P[2 < X < 4], P[X $$\leq$$ 3]

3. The attempt at a solution

Okay, I kinda have an idea on how to do this, but I just want to make sure. To find P[2 < X < 4], I think it's basically just .3 + .3, since the PMF must equal 1 then you'd basically just have to add both p(x) values together. For P[X $$\leq$$ 3], I think it's .15 + .2 (since both are less than 3). Are these answers correct, or am I completely wrong? (I have a bad feeling I am...)

2. Aug 4, 2009

### Dick

For the first one neither 2 nor 4 satisfy 2<x<4, do they? For the other one do you mean .15+.3? Or are you more confused than I think?

3. Aug 4, 2009

### konthelion

What you are trying to find is the cumulative distribution function (cdf) which is defined by:

$$P(X \leq x) = \sum_{y \leq x} p(y)$$

To use different numbers... say you want to find $$P(X \leq 2)$$, it would be

$$P(X \leq 2) = p(0) + p(2) =...$$

but $$P(X < 2) = p(0) \neq p(0) + p(2) = P(X \leq 2)$$.

You're confusing the two symbols (<) less than or greater than and (<=) less than or equal to.

Edit: Also,

This is really irrelevant. By definition of a pmf, the sum of all possible p(x_i) = 1. Here you are confusing the symbols.

Last edited: Aug 4, 2009
4. Aug 4, 2009

### Orphen89

Yup, I was meant to write .15+.3 for the second one.

Sorry, my class actually hasn't covered cdfs just yet (we've only done pmfs and are learning about binomial and poisson random variables at the moment). Do you know another way to do it with pmfs, or is it irrelevant in this case?
Also, from what I understand, in order to find P[2 < X < 4], you have to find P(3)? (Which is zero in this case?)

Thanks for all the help.

5. Aug 4, 2009

### Dick

Right. It's zero. But you don't have to 'find P(3)'. There just aren't any points in your distribution that are strictly between 2 and 4.