b.lab-Ch3

# b.lab-Ch3 - Outline The Normal PDF and CDF Lab Assignment 3...

This preview shows pages 1–4. Sign up to view the full content.

Outline The Normal PDF and CDF Lab Assignment # 3 Lab3: Continuous Distributions M. George Akritas M. George Akritas Lab3: Continuous Distributions

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Outline The Normal PDF and CDF Lab Assignment # 3 The Normal PDF and CDF Lab Assignment # 3 Due Date M. George Akritas Lab3: Continuous Distributions
Outline The Normal PDF and CDF Lab Assignment # 3 Plotting and comparing 1. Plotting the standard normal pdf and cdf: 1.1 Make a grid of points on the x-axis: ”x=seq(-4,4,0.01)” 1.2 Calculate the standard normal pdf and cdf for each point in the grid: ”yd=dnorm(x), yp=pnorm(x)” (comma within ” ” means hit return). 1.3 Plot the pdf and cdf: ”plot(x,yd,type=”l”), plot(x,yp,type=”l”)” 1.4 Superimpose the two plots: ”plot(x,yd,type=”l”), lines(x,yp,type=”l”)” 2. Superimposing three normal PDFs: ”plot(x,dnorm(x,0,0.5),type=”l”,col=”blue”), lines(x,dnorm(x),type=”l”, col=”red”), lines(x,dnorm(x,0,2),type=”l”,col=”black”)” M. George Akritas Lab3: Continuous Distributions

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 9

b.lab-Ch3 - Outline The Normal PDF and CDF Lab Assignment 3...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online