Perform the following steps:
- For a normal distribution, the user can use dnorm, which will return the height of a normal curve at 0:
> dnorm(0) Output: [1] 0.3989423
- Then, the user can change the mean and the standard deviation in the argument:
> dnorm(0,mean=3,sd=5) Output: [1] 0.06664492
- Next, plot the graph of a normal distribution with the curve function:
> curve(dnorm,-3,3)
- In contrast to dnorm, which returns the height of a normal curve, the pnorm function can return the area under a given value:
> pnorm(1.5) Output: [1] 0.9331928
- Alternatively, to get the area over a certain ...