Very High Probability Density Function Score and How to Calculate Probability [closed]

I'm new to statistics and i want to calculate the probability value from continuous random variable. From my understanding, we can achieve this by using Probability Density Function (PDF) and then calculate the probability under the curve by using Integral.

I have sample data (100 rows) with values like 0.91181, 0.91166, and so on. I use Python programming to do the calculation. Here's the PDF calculation code:

return (1. / np.sqrt(2 * 3.14 * sigma**2)) * 2.718 ** (-(x - mu) ** 2 / (2.* sigma**2))

and here's the screenshot result from PDF using python

I know that PDF doesn't give "probability" value, but it gives "density" value so it is very possible for the value to exceeds 1.

But as you can see, in my case the PDF values are really high (even more than 2500).

So is it okay if i keep using these high PDF values ? And if i want to know the probability of a random variable 'x' will be between 0,9117 and 0,9118, how do i define f(x) in this formula ?

closed as unclear what you're asking by Cyclohexanol., Shailesh, cansomeonehelpmeout, Ethan Bolker, José Carlos SantosApr 19 '18 at 15:04

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

There is no a priori evidence of a problem. If your PDF is $f(x)$, the values of $f(x)$ are (as you noted) not probabilities, so there is no inconsistency with them exceeding 1, even if they do so by a large amount. To obtain a probability, the PDF must be integrated over a particular region, and yours greatly exceeds 1 on only a very small chunk of the real line.
2. it should have the property that $\int_{-\infty}^{\infty} f(x) \, \textrm d x = 1$.