stephens999 / fiveMinuteStats

A repo of short "vignettes" illustrating statistical concepts
http://stephens999.github.io/fiveMinuteStats
Other
298 stars 86 forks source link

Bug report: code in hmm.rmd #46

Closed FangBigSheep closed 5 years ago

FangBigSheep commented 5 years ago

In the vignette of HMM, file hmm.Rmd, in the forward algorithm

Line 80:

alpha[t+1,k]__ = m[k]*emit(k,X[t])

it seems that line should be

alpha[t+1,k] = m[k]*emit(k,X[t + 1])

Please check.

stephens999 commented 5 years ago

fixed thanks