Generate 100 points from a standard normal distribution and use the built-in R command qqplot() to produce a probability plot. Comment on your plot.
Added by Jaime W.
Close
Step 1
Generate 100 points from a standard normal distribution using the rnorm() function in R: ``` set.seed(123) # for reproducibility x <- rnorm(100) ``` Show more…
Show all steps
Your feedback will help us improve your experience
Teresa Wray and 59 other Intro Stats / AP Statistics educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Using R: Use sapply to simulate the result of taking the mean of 100 random numbers from the normal distribution for 10 independent samples
Lucas F.
The density of a bivariate normal distribution with mean equal to (0,0) and correlation matrix equal to ρ = [1.0 0.5; 0.5 1.0] is f(x,y) = 1/(π√3) exp[-2(x^2 + y^2 - xy)/3]. Write R code that will create objects x and y that are each equal to the sequence {-3.00, -2.95, ..., 2.95, 3.00}. Then create a matrix z and populate it with the values of f(x,y) for each combination of x and y values. A nested for loop can be used to do this. Once this has been completed create a contour plot of the data. The lines on the plot should be red.
Sri K.
Generate 100 random numbers from normal distribution with mean 5 and standard deviation 2. (Hint: use the function rnorm(), and you can search it in R for help) (a) Recode the 100 numbers that you generated at the beginning in the following way: If it is less than 0, code it as 0; if it is less than 5 but bigger than or equal to 0, code it as 1; if it is bigger than or equal to 5, code it as 2. (b) Make the recoded numbers as the second column, and combine it with the original numbers to create a data frame, call it "NormData". (c) Save the "NormData" created in part (b) as a ".txt" file. (d) Save the "NormData" created in part (b) as a ".RData" file.
Recommended Textbooks
Elementary Statistics a Step by Step Approach
The Practice of Statistics for AP
Introductory Statistics
Watch the video solution with this free unlock.
EMAIL
PASSWORD