Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(15 pts) Suppose you have a die (6 faces) where pi) is the probability of the ith face landing face-up. (a) (5 pts) Write R
(15 pts) Suppose you have a die (6 faces) where pi) is the probability of the ith face landing "face-up." (a) (5 pts) Write R code to assign random probabilites to the 6 faces using runif, making sure p is a probability distribution. (b) (7 pts) Write R code to simulate the the rolling of the die 1000 times, keeping track of your answers in an array with 1000 values called "outcome." (c) (5 pts) Add code to display a table of the observed counts for the 6 different faces. (15 pts) Suppose you have a die (6 faces) where pi) is the probability of the ith face landing "face-up." (a) (5 pts) Write R code to assign random probabilites to the 6 faces using runif, making sure p is a probability distribution. (b) (7 pts) Write R code to simulate the the rolling of the die 1000 times, keeping track of your answers in an array with 1000 values called "outcome." (c) (5 pts) Add code to display a table of the observed counts for the 6 different faces
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