Dice: Outcomes and probabilities of the roll of a pair of fair dice

DiceR Documentation

Outcomes and probabilities of the roll of a pair of fair dice

Description

Data for Exercise 3.109

Usage

Dice

Format

A data frame/tibble with 11 observations on two variables

x

possible outcomes for the sum of two dice

px

probability for outcome x

References

Kitchens, L. J. (2003) Basic Statistics and Data Analysis. Pacific Grove, CA: Brooks/Cole, a division of Thomson Learning.

Examples


roll1 <- sample(1:6, 20000, replace = TRUE)
roll2 <- sample(1:6, 20000, replace = TRUE)
outcome <- roll1 + roll2
T1 <- table(outcome)/length(outcome)
remove(roll1, roll2, outcome)
T1
round(t(Dice), 5)
rm(roll1, roll2, T1)


BSDA documentation built on Sept. 19, 2023, 1:08 a.m.

Related to Dice in BSDA...