Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos. #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chapters/hmm/hmm_filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"source": [
"\n",
"Since all the quantities are finite length vectors and matrices,\n",
"we can implement the whole procedure using matrix vector multoplication:\n",
"we can implement the whole procedure using matrix vector multiplication:\n",
"```{math}\n",
":label: eqn:fwdsAlgoMatrixForm\n",
"\\valpha_t =\\text{normalize}\\left(\n",
Expand Down Expand Up @@ -278,7 +278,7 @@
"\n",
"In practice it is more numerically stable to compute\n",
"the log likelihoods $\\ell_t(j) = \\log p(\\obs_t|\\hidden_t=j)$,\n",
"rather than the likelioods $\\lambda_t(j) = p(\\obs_t|\\hidden_t=j)$.\n",
"rather than the likelihoods $\\lambda_t(j) = p(\\obs_t|\\hidden_t=j)$.\n",
"In this case, we can perform the posterior updating in a numerically stable way as follows.\n",
"Define $L_t = \\max_j \\ell_t(j)$ and\n",
"\\begin{align}\n",
Expand Down
4 changes: 2 additions & 2 deletions chapters/ssm/hmm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"### Example: Casino HMM\n",
"\n",
"To illustrate HMMs with categorical observation model,\n",
"we consider the \"Ocassionally dishonest casino\" model from {cite}`Durbin98`.\n",
"we consider the \"Occasionally dishonest casino\" model from {cite}`Durbin98`.\n",
"There are 2 hidden states, representing whether the dice being used in the casino is fair or loaded.\n",
"Each state defines a distribution over the 6 possible observations.\n",
"\n",
Expand Down Expand Up @@ -241,7 +241,7 @@
"Let us check correctness by computing empirical pairwise statistics\n",
"\n",
"We will compute the number of i->j latent state transitions, and check that it is close to the true \n",
"A[i,j] transition probabilites."
"A[i,j] transition probabilities."
]
},
{
Expand Down