I am BEGINNING to study Statistics and Probability and am trying to understand what a probability density function is/is used for.
My current interpretation is:
The name function indicates to me something that provides an output dependent on the input I give it. Taking for example the PDF for the standard normal distribution (shown below);
$$ p(x) = \mathcal{N}(x;0,1) = \frac{1}{\sqrt{2\pi}}e^{-x^2/2} $$
In my mind the above equation describes the probability/likelihood that a continuous random variable $x$ takes on a value in it's sample space (i.e. set of all possible values).
So lets say this PDF (normal distribution) describes the time taken for men to run a marathon (real average is about 4 hours). If plotting this PDF the $y$-axis would contain non-negligible values for corresponding marathon times from around 2 hours (on the extreme left) to 6 hours (on the extreme right) with the average/mean centered at 4 hours.
If I programmed the PDF equation (above) into computer and then ran a script that requested a input $x$; I could provide any real valued input in the domain from $-\infty$ to $+\infty$ and the output of the PDF equation would give me the probability that a man would finish the race in that time?
Why is this useful; If i'm standing at the start line before the race begins and a competitor walks over to me and bets me $20 that he can finish the race in exactly 3 hours, if I know nothing else about him, his training regime etc... I can quickly take out my phone, run the script and enter the value 3 hours and the output can be interpreted as the probability the man will finish the race in exactly 3 hours? If I fancy the odds I might decide it is a good idea to accept his bet.
Questions related to my current understanding are as follows:
(1) Is the the above interpretation correct whole/partially?
(1.1) If partially then where exactly am I getting my wires crossed?
(2) Bonus Question: How would you link an understanding of standard deviation and/or variance into this example?