Conditional expectations - E(X|X>5)

84 Views Asked by At

Struggling a little bit with this concept in class.

So using R I trialled 10,000 students taking a test (10 question, 4 multiple choice answers, only one of which is correct). I have a table of frequencies 0-10 how many correct answers each student got based on pure guessing.

Now I need to calculate E(X|X>5) i.e. the mean of passing scores. I'm not really sure how to approach this and not sure how to apply conditional expectations - whenever I look at examples they seem to use two random variable and not one? I think my understanding may be lacking.

Looking for simple and straight forward answers.

Edit. Is there a way to answer this question with Bayes theorem? this is a homework assignment and it was heavily implied that this is an exercise of conditional expectation.

1

There are 1 best solutions below

3
On BEST ANSWER

If $X$ is a (suitable) random variable with CDF $\mathsf F_X$ then: $$\mathsf E[X\mid X>5]=\frac{\mathsf EX\mathbf1_{X>5}}{\mathsf P(X>5)}=\frac{\int_5^{\infty}xd\mathsf F_X(x)}{\int_5^{\infty}d\mathsf F_X(x)}$$