• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

Random Variables

Extracts from this document...

Introduction

Problem Statement:

The game of Unlucky 7 is one of the most famous (or notorious) of all gambling games played with dice. In this game, the player rolls a pair of six-sided dice (assumed to be fair), and the SUM of the numbers that turn up on the two faces is noted. If the sum is 7 or 11 on the first roll, then the player wins immediately. If the sum is 2, 3, or 12 on the first roll, then the player loses immediately. If any other sum appears, then the player continues to throw the dice until the first sum is repeated (the player wins) or the sum of 7 appears (the player loses).

Requirements:

  1. Compute the theoretical probabilities for each sum of a dice roll (rounded to the nearest thousandth decimal place). Use for the simulation model.
  • Since the random variable is the sum of the two fair die, we need to create a probability table that correlates to the probability of the sums 2-12, inclusive.
  • From prior knowledge, I know that this particular probability distribution is binomial, and the total number of ways is 6² because there is six possibilities on a fair dice, and since we are rolling two at the same time, it is the exponent.

RV = SUM

P(SUM)

Decimal Approximation

2

1/36

.028

3

2/36

.056

4

3/36

.083

5

4/36

.111

6

5/36

.139

7

6/36

.166

8

5/36

.139

9

4/36

.111

10

3/36

.083

11

2/36

.056

12

1/36

.028

  • The decimal approximation for P(SUM = 7) is rounded down one thousandths place so the sum of all the decimal approximation values are equal to one, and not above one.
  • Hence, now the total of the decimal approximations are 1.
  1. Design a five-step simulation experiment for the game of Unlucky 7. Describe each of the five steps completely. Conduct 20 trials. Record the results.
  • Problem:
  1. To simulation 20 trials of the game Unlucky 7.
  • Key Components:
  1. Upon the first roll, if the player receives a 7 or an 11, then they win immediately. If they receive a 2, 3, or 12, then they lose immediately.
  2. If any other sum appears than the ones listed above, the player must keep on playing until the first sum is repeated, in which they win, or the sum of 7 appears, in which case they lose.
  3. All trials will be of different lengths.
  4. The sums are ranged from 2 to 12, inclusive.
  • Underlying Assumptions:
  1. The dice are fair.
  2. The person playing and the person running the game are not cheating.
  • Simulation Model:
  1. Based upon the theoretical decimal approximations, I will assign the numbers 000-999 a certain sum value.
  2. SUM = 2 → 000-027
  3. SUM = 3 → 028-083
  4. SUM = 4 → 084-166
  5. SUM = 5 → 167-277
  6. SUM = 6 → 278-416
  7. SUM = 7 → 417-582
  8. SUM = 8 → 583-721
  9. SUM = 9 → 722-832
  10. SUM = 10 → 833-915
  11. SUM = 11 → 916-971
  12. SUM = 12 → 972-999
  • Conclusions:
  1. Conclusions will be made in the next few requirements.
  • Trials:
  1. Trial 1
  • 482—7
  • WIN
  1. Trial 2
  • 266—5
  • 967—11
  • 571—7
  • LOSE
  1. Trial 3
  • 564—7
  • WIN
  1. Trial 4
  • 589—8
  • 169—5
  • 96—4
  • 807—9
  • 891—10
  • 78—3
  • 869—10
  • 619—8
  • WIN
...read more.

Middle

955-11246—5326—6882—10965—11839—10818—9762—9704—8833-1095—4WIN
  1. Trial 6
  • 984—12
  • LOSE
  1. Trial 7
  • 795—9
  • 901—10
  • 471—7
  • LOSE
  1. Trial 8
  • 480—7
  • WIN
  1. Trial 9
  • 125—4
  • 837—10
  • 498—7
  • LOSE
  1. Trial 10
  • 764—9
  • 801—9
  • WIN
  1. Trial 11
  • 941—11
  • WIN
  1. Trial 12
  • 621—8
  • 082—3
  • 628—8
  • WIN
  1. Trial 13
  • 167—5
  • 566-7
  • LOSE
  1. Trial 14
  • 987—12
  • LOSE
  1. Trial 15
  • 224—5
  • 038—3
  • 390—6
  • 969—11
  • 943—11
  • 810—9
  • 911—10
  • 633—8
  • 608—8
  • 427—7
  • LOSE
  1. Trial 16
  • 549—7
  • WIN
  1. Trial 17
  • 949—11
  • WIN
  1. Trial 18
  • 726—9
  • 790—9
  • WIN
  1. Trial 19
  • 709—8
  • 171—5
  • 215—5
  • 249—5
  • 277—5
  • 178—5
  • 590—8
  • WIN
  1. Trial 20
  • 440—7
  • WIN
  • There was 13 WINS and 7 LOSSES.
  1. Create a relative frequency histogram to summarize the population distribution for the sum of the dice roll.
  1. Answer the following questions.
  • What type of random variable is represented in this game?
  1. This game represents a discrete random variable. The random variable is the sum of the two fair die.
  • What is the shape of the distribution?
  1. The distribution has  a standard normal shape—bell shaped, single-peaked, area under curve is 1. Furthermore, this distribution is binomial further ensuring that is symmetrical.
  • What sum appears most likely to occur? What sum appears least likely to occur?
  1. The sum of 7 is most likely to appear, since it has the highest probability (6/36). The sums of 2 and 12 are the least likely to occur since they have the lowest probability (1/36).
  • What is the relative frequency of winning on the first roll of the dice?
...read more.

Conclusion

  1. Create a list of sample mean sums as the number of dice rolls increase from 1 to 20. Plot a frequency polygon of observations (number of dice rolls) versus sample mean. Discuss the law of large numbers.

Roll #

Average

Roll #

Average

1

7

11

76/11 ≈ 6.90

2

6

12

43/6 ≈ 7.17

3

23/3 ≈ 7.67

13

94/13 ≈ 7.23

4

7.5

14

7

5

7.4

15

7.2

6

7.5

16

7.125

7

50/7 ≈ 7.14

17

116/17 ≈ 6.82

8

6.75

18

127/18 ≈ 7.06

9

7

19

132/19 ≈ 6.95

10

7.3

20

6.9

image00.jpg

The law of large number states that as the number of trial increases, the mean (average) tend to go towards the theoretical (expected) mean. As exemplified by the frequency polygon shown above, this law holds true for this binomial probability because the frequency polygon appears to be approaching 7, and at certain times, is at seven (as shown in the table above also). Hence, as more dice are rolled, the average should eventually be extremely close to seven.

  1. Construct a normal probability plot. Is the sum of dice rolls normally distributed?

image01.jpg

  • By the normal probability plot, shown below, the data appears to be relatively linear (it has a slight curvature) thus showing that the sum of dice rolls is somewhat normally distributed, but not definitively.

Laboratory #3

Random Variables

image02.png

Pooja Mehta

5th period

AP/IB Statistics

Mr. LeKander

12-14-2009

...read more.

This student written piece of work is one of many that can be found in our International Baccalaureate Maths section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related International Baccalaureate Maths essays

  1. Math IA type 2. In this task I will be investigating Probabilities and investigating ...

    Consequently we can conclude that the expected value for Ben is because it would be which would be The standard deviation of this binomial random variable has the formula Where n is the number of trials which would be 10 here, since there are 10 points played.

  2. Modelling Probabilities in Tennis. In this investigation I shall examine the possibilities for ...

    Because we know it is a convergent sequence, and we can calculate its sum to infinity: Therefore A's probability of winning once deuce is called become over a long game. To calculate A's probability of winning in a game with deuce we must calculate the probability of the original deuce occurring.

  1. Mathematics (EE): Alhazen's Problem

    out, = 0 If we assign the following variables: P = , M = Then we have = 0 Further expanding the second bracket of the second sum, = 0 Assigning the following variables: p = , m = We have the following: = 0 Solution: Because the point O(x,y)

  2. Modelling Probabilities in Games of Tennis

    sometimes he might score a couple of points below or above the mean. It is very unlikely for him to get more than 8 points or less than 4. Part 2: Non-extended play games. 2. Different ways in which a game might be played.

  1. THE DICE GAME - calculating probabilities

    32/216 Bob rolls 1 - Ann wins 35/36 of the time... 35/216 Ann wins a total of 57.8% of the time Second: In case when Ann is rolling for the second time is only happened when both Ann and Bob didnt win the first roll.

  2. A logistic model

    With a considerably large growth rate, r=2.9, the long-term sustainable limit is reached after already 3 years, and since this limit cannot be surpassed over a long time, the fourth year is characterized by a drop in population (ie. the death of roughly thirty thousand fish), followed by a demographic explosion.

  1. The purpose of this investigation is to create and model a dice-based casino game ...

    probability that player A first rolls a number less than p before rolling p. Therefore the probability that a number p is recognized as player A?s higher roll is . Given that player A?s higher roll is p, player B must roll an integer q such that for player A to win the game.

  2. Modelling Probabilities on games of tennis

    The table below shows the values of the probabilities: x P (X=x) [Fraction form] P (X=x) [Decimal form] 0 0.000017 1 0.000339 2 0.003048 3 0.016258 4 0.056902 5 0.136565 6 0.227608 7 0.260123 8 0.195092 9 0.086708 10 0.017342 To check whether the fractions found are correct, they all are added up, as their sum should be 1.

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work