Answered step by step
Verified Expert Solution
Question
1 Approved Answer
R code help Problem 2 Counting a nasty event Based on the setup from problem 1 describe in words the compound event. ind2
R code help
Problem 2 Counting a nasty event
Based on the setup from problem 1 describe in words the compound event.
ind2<- abs(sampleSpace$die1 -sampleSpace$die2) <=2 & abs(sampleSpace$die2 -sampleSpace$die3) <=2
Call this event A. By counting elements in A using sampleSpace and ind2 what is P(A)?
Problem 1 setup
sampleSpace<-expand.grid(die1= 1:6, die2= 1:6, die3 = 1:6) lengths(sampleSpace) nrow(sampleSpace) typeof(sampleSpace) ind<-sampleSpace$die1 == 4 ind typeof(ind) sampleSpace[ind, ] lengths(sampleSpace[ind, ])
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