TCA Forward

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

B(i)TCA(Forward Algorithm)

Initialization:
start (0) = 1;
E (0) = 0;
I (0) = 0;
end (0) = 0;


E (1)= bE (T) {start (0) start,E + E (0) E,E + I (0) I,E + end (0) end,E}
= bE (T) {(1 x 0.6) + (0 x 0.25) + (0 x 0.5) + (0 x 0.25)}
= 0.12

I (1)= bI (T) {start (0) start,I + E (0) E,I + I (0) I,I + end (0) end,I}
= bI (T) {(1 x 0.4) + (0 x 0.5) + (0 x 0.3) + (0 x 0.2)}
= 0.1
start (1)= end (1) = 0.0


E (2)= bE (C) {start (1) start,E + E (1) E,E + I (1) I,E + end (1) end,E}
= bE (C) {(0 x 0.6) + (0.12 x 0.25) + (0.1 x 0.5) + (0 x 0.25)}
= 0.024

I (2)= bI (C) {start (1) start,I + E (1) E,I + I (1) I,I + end (1) end,I}
= bI (C) {(0 x 0.4) + (0.12 x 0.5) + (0.1 x 0.3) + (0 x 0.2)}
= 0.0225
start (2)= end (2) = 0.0

E (3)= bE (A) {start (2) start,E + E (2) E,E + I (2) I,E + end (2) end,E}
= bE (A) {(0 x 0.6) + (0.024 x 0.25) + (0.0225 x 0.5) + (0 x 0.25)}
= 3.45 x 10-3

I (3)= bI (A) {start (2) start,I + E (2) E,I + I (2) I,I + end (2) end,I}
= bI (A) {(0 x 0.4) + (0.024 x 0.5) + (0.0225 x 0.3) + (0 x 0.2)}
= 4.6875 x 10-3

start (3)= end (3) = 0.0

P(X) = {(3) E,end + I(3) I,end + end(3) end,end + start (3) start,end }
= {(3.45 x 10-3 x 0.25) + (4.6875 x 10-3 x 0.2) + (0 x 0) + (0 x 0)}
= 1.8 x 10 -3

You might also like