Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6. Generate a vector of 1000 standard normal random variables using the command x=rnorm (1000), use R to compute the 1st, 5th, 95th and 99th

image text in transcribed

6. Generate a vector of 1000 standard normal random variables using the command x=rnorm (1000), use R to compute the 1st, 5th, 95th and 99th percentile of your x; Also compute the mean and variance of your x variable. Generate a vector of 1000 student t random variables using the command y=rt(1000,3), use R to compute the 1st, 5th, 95th and 99th percentile of your y; Also compute the mean and variance of your y variable. Make and print two histogram for these two dataset. What can you say regarding the differences between these two distributions. ( no need to print out the generated 2000 numbers)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions