Question: Solve using program R studio. please show the code and result. Thank you Problem #1 (a) Write an R function that is used to simulate

Solve using program R studio. please show the code and result. Thank you

Problem #1

(a) Write an R function that is used to simulate the outcomes of a student guessing on a multiplechoice test questions that contains n questions and p options for each question.

(b) Use the created function to simulate the outcomes of a student guessing on a multiple-choice test questions that contains 50 questions and 4 options for each question, using set.seed(100). Print the generated random numbers and the corresponding logical results.

(c) Find the total number of correct answers for this student using the results of (b).

(d) Calculate simulated student score and compare it with the theoretical expected value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!