xag said:
I guess I just had to integrate the probability density function between 1 and a.
Can anyone confirm?
What you did gives you the probability of a sample with value less than a.
Try the following instead: First calculate the conditional distribution function\mathbb{P}(X\leqx| X \leq a).
By definition this is equal to
<br />
\frac{\mathbb{P}(X\leq x \wedge X \leq a)}{\mathbb{P}(X\leq a)}<br />
(You already calculated the denominator.)
You can also easily calculate the numerator. For x>a the numerator is \mathbb{P}(X \leq a) which cancels with denominator giving one. For x>a you calculate it in the same way as you did for \mathbb{P}(X \leq a) with a replaced by x. Then you take the derivative with respect to x to find the conditional density function \rho_a(x) (suported on [1,a]), which you then use to calculate the conditional expectation as
\mathbb{E}\left[X|X\leq a\right]=\int_1^a{x\rho_a(x)dx}
A more direct though maybe less obvious formula would be
\mathbb{E}\left[X|X\leq a\right]=\frac{\int_1^a{x\rho(x)dx}}{\int_1^a{\rho(x)dx}},
where \rho(x) is the density function of your original Pareto distribution.
I suggest you try them both and check if they really are the same

-Pere