How Many Color Runs Can You Expect When Rolling a Tricolored Die 20 Times?

  • Thread starter Thread starter binjip
  • Start date Start date
Click For Summary
SUMMARY

The expected number of color runs when rolling a tricolored die 20 times can be calculated using geometric distributions and recursive relationships. The die has 4 blue sides (P(Z=Blue) = 2/3), 1 green side (P(Z=Green) = 1/6), and 1 red side (P(Z=Red) = 1/6). The expected number of runs can be derived by defining B(n), G(n), and R(n) for the expected runs starting with blue, green, and red respectively, and establishing recursions based on the outcomes of the previous rolls.

PREREQUISITES
  • Understanding of geometric distribution (Geo(p))
  • Knowledge of expected value calculations in probability
  • Familiarity with recursive functions and relationships
  • Basic concepts of probability theory related to discrete random variables
NEXT STEPS
  • Study the properties of geometric distributions in probability theory
  • Learn how to derive expected values for discrete random variables
  • Explore recursive algorithms and their applications in probability problems
  • Investigate the concept of runs in sequences and their mathematical implications
USEFUL FOR

Students studying probability theory, mathematicians interested in combinatorial problems, and anyone analyzing random processes involving discrete outcomes.

binjip
Messages
5
Reaction score
0

Homework Statement



Hi,

Suppose we have a die with 3 colors on it.

4 sides are blue => P(Z=Blue) = 2/3
1 side is green => P(Z=Green) = 1/6
1 side is red => P(Z=Red) = 1/6

I throw it 20 times and have Z=(Z1,..., Z20). Now what is the expected number of "runs"?

Run is defined as the number of times the color changes, or equivalently, as the number of consistent blocks of a color.

For example: string "bbgrg" has 4 runs ( |bb|, |g|, |r|, |g| )

Homework Equations





The Attempt at a Solution



Attempt #1:
Change the representation of the sequence from "bbgrg" into a sequence of 1 and 0. One being a new color block (a success), 0 being just another ball of the previous color.
"bbgrg" becomes 10111.

In other words, P(Xi=1), if {Zi != Zi+1}.

This is, however, only a restatement of the problem and doesn't solve the initial problem: how many "1" do I have in 20 throws?

Attempt #2:

The number of throws before a given color occurs is geometrically distributed (Geo(p)). Thus:

E(number of throws until blue occurs) = 1/P(Z=Blue) = 3/2
E(number of throws until green occurs) = 1/P(Z=Green) = 6
E(number of throws until red occurs) = 1/P(Z=Red) = 6

I also know E(# Blue) = n * P(Z=Blue) = 20*2/3 = 40/3
E(# Green) = E(# Red) = 20/6

I could maybe use those 2 pieces of information but I can't see how. Any comments are welcomed.



Thank you for help.
 
Physics news on Phys.org
binjip said:

Homework Statement



Hi,

Suppose we have a die with 3 colors on it.

4 sides are blue => P(Z=Blue) = 2/3
1 side is green => P(Z=Green) = 1/6
1 side is red => P(Z=Red) = 1/6

I throw it 20 times and have Z=(Z1,..., Z20). Now what is the expected number of "runs"?

Run is defined as the number of times the color changes, or equivalently, as the number of consistent blocks of a color.

For example: string "bbgrg" has 4 runs ( |bb|, |g|, |r|, |g| )

Homework Equations





The Attempt at a Solution



Attempt #1:
Change the representation of the sequence from "bbgrg" into a sequence of 1 and 0. One being a new color block (a success), 0 being just another ball of the previous color.
"bbgrg" becomes 10111.

In other words, P(Xi=1), if {Zi != Zi+1}.

This is, however, only a restatement of the problem and doesn't solve the initial problem: how many "1" do I have in 20 throws?

Attempt #2:

The number of throws before a given color occurs is geometrically distributed (Geo(p)). Thus:

E(number of throws until blue occurs) = 1/P(Z=Blue) = 3/2
E(number of throws until green occurs) = 1/P(Z=Green) = 6
E(number of throws until red occurs) = 1/P(Z=Red) = 6

I also know E(# Blue) = n * P(Z=Blue) = 20*2/3 = 40/3
E(# Green) = E(# Red) = 20/6

I could maybe use those 2 pieces of information but I can't see how. Any comments are welcomed.



Thank you for help.

I would do it by an iterative method. If B(n) = expected number of runs in n tosses, given the first toss is Blue, and G(n), R(n) are defined similarly, I would get the answer in terms of B(20), G(20) and R(20). Then I would get recursions for B(n), G(n) and R(n) by noting how B(n) is related to B(n-1), G(n-1) and R(n-1) by looking at the next colour, etc.

RGV
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 53 ·
2
Replies
53
Views
10K
  • · Replies 34 ·
2
Replies
34
Views
7K
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K