Examining E(X) and VAR(X) for a Fair Die Tossed n Times

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

The discussion focuses on calculating the expected value E(X) and variance VAR(X) for the random variable X, which represents the number of times the pattern "1 2" appears when a fair die is tossed n times. The solution involves using a three-state Markov chain model to analyze the transitions between states: starting, having tossed '1', and achieving the pattern '12'. The participant encountered difficulties in setting up the equations correctly and sought clarification on the expected outcomes for specific values of n, particularly n=3.

PREREQUISITES
  • Understanding of Markov chains and their state transition probabilities
  • Familiarity with expected value and variance calculations in probability theory
  • Basic knowledge of random variables and their properties
  • Ability to solve recurrence relations
NEXT STEPS
  • Study the principles of Markov chains and their applications in probability
  • Learn how to derive expected values and variances for random variables
  • Explore recurrence relations and methods for solving them
  • Review advanced probability topics, particularly those related to expected-cost problems
USEFUL FOR

This discussion is beneficial for students studying probability theory, particularly those tackling problems involving Markov chains and expected values. It is also useful for educators seeking to clarify concepts related to random variables and their distributions.

cournot
Messages
1
Reaction score
0

Homework Statement


a fair die is tossed n times
let X be the number of times that the pattern 1 2 is observed
(a) E(X) (b) VAR(X)

(it's a question from a past exam)

Homework Equations





The Attempt at a Solution



E(X)=E(E(X|first=1)+E(X|first ≠ 1))
let E(X)=f(n)
f(n)=((1+f(n-2))*(1/6)+(5/6)*f(n-1))*(1/6)+f(n-1)*(5/6)
I think I'm setting up the equation wrong since I got something other than 12/(6^3) as I plug in n=3.
However, even if I set it up correctly, I still have no idea how to solve this equation...
Any help would be greatly appreciated.
 
Physics news on Phys.org
What do you mean by "the pattern 1 2"?
 
cournot said:

Homework Statement


a fair die is tossed n times
let X be the number of times that the pattern 1 2 is observed
(a) E(X) (b) VAR(X)

(it's a question from a past exam)

Homework Equations





The Attempt at a Solution



E(X)=E(E(X|first=1)+E(X|first ≠ 1))
let E(X)=f(n)
f(n)=((1+f(n-2))*(1/6)+(5/6)*f(n-1))*(1/6)+f(n-1)*(5/6)
I think I'm setting up the equation wrong since I got something other than 12/(6^3) as I plug in n=3.
However, even if I set it up correctly, I still have no idea how to solve this equation...
Any help would be greatly appreciated.

The following suggestions may be helpful (if you know something about Markov chains) or incomprehensible if you don't know Markov chains. Anyway, you can reduce it to a standard expected-cost calculation in a 3-state Markov chain. The three states are (1) state 1 (start, or start again); (2) state 2 (have tossed '1'); and (3) state 3 (have just achieved pattern '12'). We are in state 1 to start (before tossing). From state 1 we go go state 1 with probability 5/6 and to state 2 with probability 1/6. Frorm state 2 we go to state 1 with probability 4/6 (if we toss 3,4,5,6), to state 1 with probability 1/6 (if we toss 1, so throw out the previous '1' result and start another possible pattern), and to state 3 with probability 1/6 (if we toss '2'). From state 3 we go to state 1 with probability 5/6 and to state 2 with probability 1/6.

Your random variable X is the number of times we visit state 3 in N tosses. We can regard this as an expected cost problem, where we pay $1 each time we hit state 3, and we are interested in the mean and variance of N-period cost. There are standard formulas that can be applied; these can be found in many sources dealing with Markov chains, but will not usually be found in introductory probability textbooks, for example.

RGV
 

Similar threads

Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 15 ·
Replies
15
Views
8K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K