<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Algorithms Q&amp;A - Recent questions in HMM</title>
<link>https://notexponential.com/questions/artificial-intelligence/hmm</link>
<description>Powered by Question2Answer</description>
<item>
<title>MLE for given HMM and Observation Sequence</title>
<link>https://notexponential.com/1053/mle-for-given-hmm-and-observation-sequence</link>
<description>&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;qa-q-view-tags&quot; style=&quot;clear: both; margin-bottom: 12px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;&lt;/div&gt;&lt;div class=&quot;qa-q-view-content qa-post-content&quot; style=&quot;word-break: break-word; margin-bottom: 16px; color: rgb(51, 51, 51); font-family: Helvetica, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;&quot;&gt;&lt;div&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;We are given an MDP&amp;nbsp;with&amp;nbsp;3 states: Red, Green, Blue (RGB).&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;strong&gt;Emission probabilities:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;R --&amp;gt; 1 (p=1/3), 2&amp;nbsp;(p=1/3), 3 (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;G --&amp;gt; 1 (p=1/3), 2&amp;nbsp;(p=1/3), 3 (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;B --&amp;gt; 1 (p=1/3), 2&amp;nbsp;(p=1/3), 3 (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;strong&gt;Transition Matrix&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;R --&amp;gt; R (p=1/3), G&amp;nbsp;(p=1/3), B (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;G --&amp;gt; G&amp;nbsp;(p=1/2), B (p=1/2)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;B --&amp;gt; B (p=1)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;These are the observations: 1, 2, 3, 1, 1, 2, 1, 2, 3, 1, 1, 2, 2, 1, 3, 2, 2, 1, 1, 2, 1, 1, 1, 2, 1&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;What is the most likely explanation for this observation sequence?&lt;br&gt;Initial state is R.&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</description>
<category>HMM</category>
<guid isPermaLink="true">https://notexponential.com/1053/mle-for-given-hmm-and-observation-sequence</guid>
<pubDate>Sat, 25 Apr 2026 15:40:44 +0000</pubDate>
</item>
<item>
<title>MLE for given HMM and Observation Sequence</title>
<link>https://notexponential.com/1050/mle-for-given-hmm-and-observation-sequence</link>
<description>&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;We are given an MDP&amp;nbsp;with&amp;nbsp;3 states: Red, Green, Blue (RGB).&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;strong&gt;Emission probabilities:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;R --&amp;gt; 1 (p=1/3), 2&amp;nbsp;(p=1/3), 3 (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;G --&amp;gt; 1 (p=1/3), 2&amp;nbsp;(p=1/3), 3 (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;B --&amp;gt; 1 (p=1/3), 2&amp;nbsp;(p=1/3), 3 (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;strong&gt;Transition Matrix&lt;/strong&gt;&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;R --&amp;gt; R (p=1/3), G&amp;nbsp;(p=1/3), B (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;G --&amp;gt; R (p=1/3), G&amp;nbsp;(p=1/3), B (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;B --&amp;gt; R (p=1/3), G&amp;nbsp;(p=1/3), B (p=1/3)&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;These are the observations: 1, 2, 3, 1, 1, 2, 1, 2, 3, 1, 1, 2, 2&lt;/p&gt;&lt;p style=&quot;margin-top: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 14px;&quot;&gt;What is the most likely explanation for this observation sequence?&lt;br&gt;Initial state is not known and is equally likely from all states.&lt;/p&gt;</description>
<category>HMM</category>
<guid isPermaLink="true">https://notexponential.com/1050/mle-for-given-hmm-and-observation-sequence</guid>
<pubDate>Sat, 25 Apr 2026 13:26:54 +0000</pubDate>
</item>
<item>
<title>MLE for the given MDP and Observation Sequence (RGB Color Cycler)</title>
<link>https://notexponential.com/1047/mle-for-the-given-mdp-and-observation-sequence-color-cycler</link>
<description>&lt;p&gt;We are given an MDP&amp;nbsp;with&amp;nbsp;3 states: Red, Green, Blue (RGB).&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Emission probabilities:&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;R --&amp;gt; 1 (p=0.4), 2, (p=0.5), 3 (p-0.1)&lt;/p&gt;&lt;p&gt;G --&amp;gt; 1 (p=0.3), 2 (p=0.3), 3 (p=0.4)&amp;nbsp;&lt;/p&gt;&lt;p&gt;B --&amp;gt; 1 (p=0.4), 2 (p=0.1), 3 (p=0.1), 4 (p=0.4).&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Transition Matrix:&lt;/strong&gt;&amp;nbsp;R -&amp;gt; G (p = 1.0), G -&amp;gt; B (p = 1.0), B -&amp;gt; R (p = 1.0).&amp;nbsp;&lt;/p&gt;&lt;p&gt;These are the observations: 1, 2, 3, 4, 1, 3, 1, 2, 3&lt;/p&gt;&lt;p&gt;What is the most likely explanation for this observation sequence?&lt;br&gt;Initial state is not known and is equally likely from all states.&lt;/p&gt;</description>
<category>HMM</category>
<guid isPermaLink="true">https://notexponential.com/1047/mle-for-the-given-mdp-and-observation-sequence-color-cycler</guid>
<pubDate>Sat, 25 Apr 2026 01:09:37 +0000</pubDate>
</item>
<item>
<title>Heads - 2 in a row</title>
<link>https://notexponential.com/1014/heads-2-in-a-row</link>
<description>I have two coins, Fair coin - gives H and T with 0.5 probability each, and a Biased coin, always gives H.&lt;br /&gt;
&lt;br /&gt;
I pick one of the two coins randomly and toss it. It comes up as heads. I toss it again. What is the probability that it comes up as heads again?</description>
<category>HMM</category>
<guid isPermaLink="true">https://notexponential.com/1014/heads-2-in-a-row</guid>
<pubDate>Tue, 14 Apr 2026 21:06:07 +0000</pubDate>
</item>
<item>
<title>Robot States and Sensors</title>
<link>https://notexponential.com/819/robot-states-and-sensors</link>
<description>Suppose we have a robot that can be in one of two states: state 1 or state 2. The robot moves between states according to the following rules:&lt;br /&gt;
&lt;br /&gt;
If the robot is in state 1, it has a 70% chance of staying in state 1 and a 30% chance of transitioning to state 2.&lt;br /&gt;
&lt;br /&gt;
If the robot is in state 2, it has a 60% chance of staying in state 2 and a 40% chance of transitioning to state 1.&lt;br /&gt;
&lt;br /&gt;
The robot has two sensors: sensor 1 and sensor 2. The sensors are not perfect and sometimes give incorrect readings. The emission probabilities for each sensor are as follows:&lt;br /&gt;
&lt;br /&gt;
If the robot is in state 1, sensor 1 gives the correct reading with a probability of 0.8 and an incorrect reading with a probability of 0.2. If the robot is in state 2, sensor 1 gives the correct reading with a probability of 0.4 and an incorrect reading with a probability of 0.6.&lt;br /&gt;
&lt;br /&gt;
If the robot is in state 1, sensor 2 gives the correct reading with a probability of 0.3 and an incorrect reading with a probability of 0.7. If the robot is in state 2, sensor 2 gives the correct reading with a probability of 0.9 and an incorrect reading with a probability of 0.1.&lt;br /&gt;
&lt;br /&gt;
Assume that the robot starts in state 1 with equal probability and generates the following sensor readings over time:&lt;br /&gt;
&lt;br /&gt;
sensor 1: correct, correct, incorrect&lt;br /&gt;
&lt;br /&gt;
sensor 2: incorrect, correct, correct&lt;br /&gt;
&lt;br /&gt;
What is the most likely sequence of states that the robot went through to generate these observations?</description>
<category>HMM</category>
<guid isPermaLink="true">https://notexponential.com/819/robot-states-and-sensors</guid>
<pubDate>Mon, 08 May 2023 21:05:20 +0000</pubDate>
</item>
<item>
<title>Newsletter optimization using HMM</title>
<link>https://notexponential.com/762/newsletter-optimization-using-hmm</link>
<description>&lt;p&gt;You are trying to sell a product by using an email newsletter (delivered weekly).&amp;nbsp; A visitor can be interested in the product due to 2 different interests. &amp;nbsp;If they are interested due to interest 1 (for example “soccer”), they may click a link (link 1) you have in the newsletter.&amp;nbsp; If they are interested due to interest 2 (for example “tennis”), they may click a different link (link 2).&amp;nbsp; Here is the probability table that shows the likelihood of viewer clicking these two links:&lt;/p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;&lt;strong&gt;Interest&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;&lt;strong&gt;Link 1&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;&lt;strong&gt;Link 2&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;No Interest&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.01&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.05&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;Interest 1&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.3&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.6&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;Interest 2&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.4&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.8&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p style=&quot;text-align:left&quot;&gt;Interest 1 and Interest 2&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.8&lt;/p&gt;&lt;/td&gt;&lt;td style=&quot;vertical-align:top; width:128px&quot;&gt;&lt;p&gt;0.95&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;We do not know the initial state of the visitor.&amp;nbsp; If the visitor has no interest in interest 1 or interest 2, she a 10% probability of developing either of those interests (independently) during the week. When she has one of the interests, there is&amp;nbsp;&amp;nbsp;a 20% probability of her developing the other interest as well.&amp;nbsp; Once an interest is developed, that interest is never lost.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Draw and explain an HMM to model this problem.&lt;/li&gt;&lt;li&gt;You make the following observations in 8 weeks of newsletter delivers: &amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;No Click, Link 1, Link 1, No Click, Link 1, Link 1 and Link 2, Link 1 and Link 2, Link 2, Link 1 and Link What is the best explanation for the interest level of the visitor during those 8 weeks?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>HMM</category>
<guid isPermaLink="true">https://notexponential.com/762/newsletter-optimization-using-hmm</guid>
<pubDate>Sun, 02 May 2021 12:59:28 +0000</pubDate>
</item>
</channel>
</rss>