{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW1-sta5166

# HW1-sta5166 - "Histogram of N(0,1" boxplot(x,las=1...

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

Jaime Frade STA5166 HW1: Reproduce graphs from the lecture using R. Summary I stored x1 as a random standard normal variable to generate 1000. Each of the four plots listed below exhibit the characteristics of this random normal variable.

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

View Full Document
Summary : I obtained the following variance and summary statistics regarding quartiles. >var(x1) [1] 0.8780359 > summary(x1) Min. 1st Qu. Median Mean 3rd Qu. Max. -3.27900 -0.59400 -0.02774 0.01245 0.65280 3.52800 File name: HW1eda.txt x1<-rnorm(1000,0,1) eda1<-function(x){par(mfrow=c(2,2), oma=c(4,2,6,2), mar=c(5,5,4,2), hist(x,las=1, main =
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "Histogram of N(0,1)"), boxplot(x,las=1, main = "Boxplot of N(0,1)"),iqr<-summary(x)[5]-summary(x)[2], plot(density(x, width=2*iqr), xlab="x",ylab="y", type="l", las=1, main="Normal Probability Curve N(0,1)"), qqnorm(x,las=1, main="Normal Probability Plot for x" ),qqline(x),par(mfrow=c(2,2),oma=c(4,2,6,2),mar=c(5,5,4,2)), mtext(side=3,line=2,cex=1.2,outer=T, "Figure 1. Exploratory Data Analysis Plots" ))} eda1(x1) CODE >source("C:/Documents and Settings/Jaime/Desktop/FALL07/STA5166/hw1eda1.txt") >var(x1) >summary(x1)...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern