Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

proportion _ win iv . What value does the proportion of wins move towards as the number of games played increases? How does this value

proportion_win
iv. What value does the proportion of wins move towards as the number of games played
increases? How does this value compare to the probability of winning? [3]
flongrightarrow
v. Use the R codes below to plot a graph that shows how the proportion of wins changed
as more games are played. [6]*attached to submission
# create data
number_of_games-
c(100,200,300,400,500,600,700,800,900,1000)
Probability -c()
data - data.frame(number_of_games, probability)
# usual line chart
plot(probability number_of_games, data, type ="1",
col=c("steelblue","#69b3a2"), lwd=2) Guided Investigation Chapter P
Tetrahedral Dice
A game involves tossing two tetrahedral dice, where if a pair is obtained, i.e., a pair of 1s or a
pair of 2s etc., the game is won.
i. Complete the following table to show all possible outcomes if two tetrahedral dice is
tossed. [8]
ii. What is the probability of winning the game? Describe what the probability is in this
instance. [3]
25% probability of winning, rolling a pair
iii. Use the following R codes below to determine the proportion of wins given the
increasing number of games played and complete the table that follows. [10]
j
#Create a vector of possible results, 1 is a win and 0
#is a loss.
outcome_vector -c(0,0,0,1)
#Sample with replacement
numberOfGames-100
sampled vector - sample (outcome vector, size =
numberofGames, replace = TRUE)
proportion_win-sum(sampled_vector)/numberofGames
image text in transcribed

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

Students also viewed these Databases questions