normal_p2 | R Documentation |
This function is one of those chosen through prompts by normal(). If one is looking for the proportion of observations expected to fall between two values for a distribution that is normal, one can use this function to calculate and visualize that.
normal_p2(x, y, mu, sigma)
x |
the left endpoint of the interval |
y |
the right endpoint of the interval |
mu |
the mean of the normal distribution |
sigma |
the standard deviation of the normal distributions |
> normal_p2(-1.2,-0.8,0,1)
The proportion of observations between -1.2 and -0.8 is 0.09678573
You can get this result by typing:
pnorm(-0.8,0,1)-pnorm(-1.2,0,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.