Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

seminar q 1 - . Question 1. a. Generate a random variable with 1000 observations using the normal distribution, X~N(50,100) in R. b. Display the

image text in transcribed

seminar q 1 - . Question 1. a. Generate a random variable with 1000 observations using the normal distribution, X~N(50,100) in R. b. Display the distribution of the RV in a histogram. c. What is the mean and standard deviation? d. Presume that what you generated in a. and b. is a population distribution. Now take 10.000 samples with 100 observations in R. e. What would you expect the distribution of the resulting 10,000 sample means to look like? f. Draw a histogram of the sampling distribution and check whether your conjecture is correct. g. What is the mean of that distribution and what is the standard error? h. Which statistical concept have you just demonstrated through this simulation? Question 2. Do the same steps a-g as in question 1 but now generate a random variable with n=1000 using the Poisson distribution with =1 (hint: R calls this parameter lambda) What distribution does the sampling distribution approximate?

seminar q 2- Do the same steps a-g as in question 1 but now generate a random variable with n=1000 using the Poisson distribution with =1 (hint: R calls this parameter lambda) What distribution does the sampling distribution approximate?

} C. a. Test the hypothesis from seminar question 1 again using R b. Now create a RV x from a sample with n=1000, drawn from a population with mean 530 and standard deviation 90, and adapt the function to test the hypothesis that the population mean is 525. What do you decide? Now create a new RV y with n=35, drawn from a population with mean 530 and standard deviation 90. Test the hypothesis that the population mean is 525 again. d. Create a function that performs one-sided hypothesis tests of means (again, by varying the function defined at the beginning) e. Draw a sample of n=64 from a population with mean 25000 and standard deviation 750. Test the one-sided hypothesis in seminar question 2 again. What do you decide? Is this the correct decision or are you making an error? If yes, which type of error

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

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

2nd Edition

0470624701, 978-0470624708

More Books

Students also viewed these Databases questions