roulette: Roulette

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Sets up a sample space for the experiment of spinning a roulette wheel once.

Usage

1
roulette(european = FALSE, makespace = FALSE)

Arguments

european

logical.

makespace

logical.

Details

If european is TRUE, then a traditional EU roulette wheel with 37 pockets is used, otherwise, a standard US roulette wheel with 38 pockets is used. Entries in the data frame are ordered in the customary way to facilitate the calculation probabilities regarding called bets.

Value

A data frame, with columns num and color, and an equally likely probs column if makespace is TRUE.

Author(s)

G. Jay Kerns gkerns@ysu.edu.

See Also

cards

Examples

1
2
roulette()
roulette(european = TRUE, makespace = TRUE)

Example output

Loading required package: combinat

Attaching package: 'combinat'

The following object is masked from 'package:utils':

    combn

Loading required package: fAsianOptions
Loading required package: timeDate
Loading required package: timeSeries
Loading required package: fBasics
Loading required package: fOptions


Rmetrics Package fOptions
Pricing and Evaluating Basic Options
Copyright (C) 2005-2014 Rmetrics Association Zurich
Educational Software for Financial Engineering and Computational Science
Rmetrics is free software and comes with ABSOLUTELY NO WARRANTY.
https://www.rmetrics.org --- Mail to: info@rmetrics.org
Loading required package: hypergeo
Loading required package: VGAM
Loading required package: stats4
Loading required package: splines

Attaching package: 'VGAM'

The following object is masked from 'package:hypergeo':

    is.zero

The following object is masked from 'package:fAsianOptions':

    erf


Attaching package: 'prob'

The following objects are masked from 'package:base':

    intersect, setdiff, union

   num color
1   27   Red
2   10 Black
3   25   Red
4   29 Black
5   12   Red
6    8 Black
7   19   Red
8   31 Black
9   18   Red
10   6 Black
11  21   Red
12  33 Black
13  16   Red
14   4 Black
15  23   Red
16  35 Black
17  14   Red
18   2 Black
19   0 Green
20  28 Black
21   9   Red
22  26 Black
23  30   Red
24  11 Black
25   7   Red
26  20 Black
27  32   Red
28  17 Black
29   5   Red
30  22 Black
31  34   Red
32  15 Black
33   3   Red
34  24 Black
35  36   Red
36  13 Black
37   1   Red
38  00 Green
   num color      probs
1    0 Green 0.02702703
2   26 Black 0.02702703
3    3   Red 0.02702703
4   35 Black 0.02702703
5   12   Red 0.02702703
6   28 Black 0.02702703
7    7   Red 0.02702703
8   29 Black 0.02702703
9   18   Red 0.02702703
10  22 Black 0.02702703
11   9   Red 0.02702703
12  31 Black 0.02702703
13  14   Red 0.02702703
14  20 Black 0.02702703
15   1   Red 0.02702703
16  33 Black 0.02702703
17  16   Red 0.02702703
18  24 Black 0.02702703
19   5   Red 0.02702703
20  10 Black 0.02702703
21  23   Red 0.02702703
22   8 Black 0.02702703
23  30   Red 0.02702703
24  11 Black 0.02702703
25  36   Red 0.02702703
26  13 Black 0.02702703
27  27   Red 0.02702703
28   6 Black 0.02702703
29  34   Red 0.02702703
30  17 Black 0.02702703
31  25   Red 0.02702703
32   2 Black 0.02702703
33  21   Red 0.02702703
34   4 Black 0.02702703
35  19   Red 0.02702703
36  15 Black 0.02702703
37  32   Red 0.02702703

prob documentation built on May 2, 2019, 12:20 p.m.