Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. What R command would give you the 95th percentile for a chi-squared distribution with 10 degrees of freedom? 6. Generate a vector of 1000
5. What R command would give you the 95th percentile for a chi-squared distribution with 10 degrees of freedom? 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started