I beg your pardon for the undescriptive title and it's lack of proper jargon. All of this has been quite a few years in the past for me.
Here is my problem displayed in image form: Paint Skills
As you can probably see, I want to know how to calculate the average tries needed to reach a "Done" state in a problem where you go back to the previous stage upon failure.
Stage 1: 1/14 odds at being Done in Stage 1, 13/14 odds to move to Stage 2.
Stage 2: 1/3 odds to move to Stage 3, 2/3 odds to have to move back to Stage 1.
Stage 3: 1/4 odds at being Done, 3/4 odds to move back to Stage 2.
I have legitimately no idea on how to approach this, as I can't think of a way to express the possibility of being stuck in loop between the stages and how many times you'd have to go through them for a success.
Add in the fact, that I need to know the average amount of times you are at each step because I want to know the associated cost, and I am completely lost.
I hope some kind soul here can enlighten me :)
Best wishes, kahntesy
Labelling the nodes $1,2,3$ as $A, B, C$, we proceed step by step, eg
With $1$ step from $A$, we are either done, or with Pr = $\frac{13}{14}$, we reach $B$
Framing equations for movement step by step, for # of steps we get
$\displaylines{A = 1 +13B/14\\B = 1+C/3 + 2A/3\\C =1 +3B/4}$
Solving, we get $A = 167/11, B = 168/11, C = 137/11$