myncurve: Plot normal curve and probability region P(X <= a)

View source: R/mycontcurve.R

myncurveR Documentation

Plot normal curve and probability region P(X <= a)

Description

Display the curve, shaded area between the curve and x axis from −∞ to x=a, and calculate the area (probability, P(X ≤ a)), which is released to the command-line in a list. From MATH 4753 Lab 6.

Usage

myncurve(mu, sigma, a)

Arguments

mu

the mean of the normal distribution

sigma

the standard deviation of the normal distribution

a

for calculating the area (probability P(X <= a))

Value

a list containing probability P(X <= a)

Examples

myncurve(mu = 10, sigma = 5, a = 6)


bbydino/ISSA-ROCK-AND-ROLL documentation built on April 27, 2022, 10:03 p.m.