Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I would like to evaluate the value of the following SmoothKernelDistribution at the location, say, 2.35. What is the right way to do it?

data1 = {1, 2, 3};
DD = SmoothKernelDistribution[data1, 0.5];
Plot[PDF[DD, x], {x, -2, 10}]
share|improve this question
    
You mean PDF[DD, 2.35]? –  belisarius Nov 3 '13 at 6:16
    
pretty much yes. actually to measure the area under the curve where the values are above 2.35 –  Doron Nov 3 '13 at 6:21

2 Answers 2

up vote 3 down vote accepted

To "measure the area under the curve where the values are above 2.35", evalute

1. - CDF[DD, 2.35]

0.382878

This is the same as

NIntegrate[PDF[DD, x], {x, 2.35, ∞}]

0.382878

share|improve this answer

Just for variety also:

SurvivalFunction[DD, 2.35]

yields...

0.382878

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.