normal_p2: Find the Proportion of Observations Between Two Points in a...

View source: R/normal_p2.R

normal_p2R Documentation

Find the Proportion of Observations Between Two Points in a Normal Distribution

Description

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.

Usage

normal_p2(x, y, mu, sigma)

Arguments

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

Examples


> 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)

jrpriceUPS/Math160UPS documentation built on April 28, 2024, 12:41 p.m.