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
Get step-by-step solutions from verified subject matter experts
