Completed: / exercises

HW5. Nondeterministic and Probabilistic Information Spaces

Due date: 2026-02-20 23:59.
Recommended Resources:

Kalman Filters

Recall that with a Kalman filter the robot's motion is modeled with
x_{k+1} = A_kx_k + B_ku_k + w_k \\\
And the robot's sensing is modeled with
y_{k+1} = C_{k+1}x_{k+1} + v_{k+1} \\\
In which

Kalman Script 1

These exercises will use the following interactive script.
ManualKalman
This script shows how the Kalman filter's information state evolves on a simple robot with the following state space X, action space U, and observation space Y
X = Y = U = \mathbb{R}^2 \\\
This script has four actions:
To use the script, first set the initial Gaussian probability distribution by setting a mean position and an initial covariance matrix and hit the "Set to this distribution" button. A green dot indicates where the mean estimation of the robot's position is and a heatmap shows the probability distribution of the potential robot states.

Problem 1

Choose the correct statements about the system simulated by the ManualKalman script.
Warning: You have not logged in. You cannot answer.

Problem 2

Choose the correct statements.
Use the ManualKalman script provided to determine which answers are correct.
Warning: You have not logged in. You cannot answer.

Kalman Script 2

These exercises will use the following interactive script.
Kalman
This script is intended to show the performance of the Kalman filter under different levels of sensor and movement noise. One of the models is intentionally broken. The movement and sensor errors for this model are not Gaussian.
To use the script, select a model. Hitting "next step" will cause the robot to move and a sensor reading to be taken. The chart will show four different points:
There are four models. Run each of them and then answer the following four questions (each model is the answer to one question).

Problem 3

Which model has very low Kalman gain for both coordinates? In other words, in which model is the sensor noise significantly higher than the movement noise?
Warning: You have not logged in. You cannot answer.

Problem 4

Which model has very high Kalman gain for both coordinates? In other words, in which model is the sensor noise significantly lower than the movement noise?
Warning: You have not logged in. You cannot answer.

Problem 5

Which model has a sensor that has a very low amount of noise when determining the robot's x coordinate but a very high amount of noise when determining the robot's y coordinate?
Warning: You have not logged in. You cannot answer.

Problem 6

Which model is broken? The sensor and movement noise should be obviously non-Gaussian.
Warning: You have not logged in. You cannot answer.

Additional Questions about Kalman Filters

Problem 7

Choose the correct statements about Kalman filters.
Warning: You have not logged in. You cannot answer.

Nondeterministic Information Spaces, Localization, Mapping

The next few questions will use the following environments, action sets, and observation set.
Each environment is a 4x4 grid in which each square can be uniquely identified by a letter+number. For example, A3 or B1.
After the robot moves, it takes a sensor reading. The robot's sensors can detect the color of the square it is in (red, green, yellow, clear). A unique sensor reading (blocked) is returned if the robot attempts to make a movement that would take it off the edge of the grid (in this case, the robot remains in the square that it started in). The set of observations is shown in the diagram below as the set Y.
The three environments E₁, E₂, E₃ are shown in the diagram. Each square is labelled by the sensor reading the robot receives when it moves into the square.
The robot is able to move into the grey squares, but the sensor reading associated with each grey square is not known in advance. They can be considered spaces that were "unexplored" at the start of the robot's movements. The robot cannot start in a grey square.
So,
A robot might be using one of three action sets. Each action within these action sets can have more than one possible outcome for where the robot moves. The set U₁ contains only one action, "move", in which the robot tries to move to one of the four squares adjacent to its current location. The set U₂ contains the actions "horizontal" (in which the robot attempts to move left or right) and "vertical" (in which the robot attempts to move up or down). The set U₃ contains the actions "down/left" (in which the robot attempts to move down or left) and the action "up/right" (in which the robot attempts to move up or right).

Problem 8

Consider a robot with the action set
U_1 = \{\text{move}\} \\\
Let 𝑦̃ = [y₀, y₁, y₂, y₃, ..., yₖ] be the sensor history.
Let ũ = [u₁, u₂, u₃, ..., uₖ] be the actuation history.
Let [x₀, x₁, x₂, x₃, ..., xₖ] be the sequence of states that the robot traversed. Unlike the sensor and actuation history, this is unlikely to be known.
The state x₀ denotes the starting state prior to any movement attempts. Assume that x₀ is NOT in a grey square to start with. The observation y₀ denotes the observation received from the starting state (this will never be the "blocked" result).
Let 𝑋ₛ(𝑦̃,ũ) be the set of states consistent with 𝑦̃ and ũ.
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Problem 9

Consider a robot with the action set
U_2 = \{\text{horizontal, vertical}\} \\\
Let 𝑦̃ = [y₀, y₁, y₂, y₃, ..., yₖ] be the sensor history.
Let ũ = [u₁, u₂, u₃, ..., uₖ] be the actuation history.
Let [x₀, x₁, x₂, x₃, ..., xₖ] be the sequence of states that the robot traversed. Unlike the sensor and actuation history, this is unlikely to be known.
The state x₀ denotes the starting state prior to any movement attempts. Assume that x₀ is NOT in a grey square to start with. The observation y₀ denotes the observation received from the starting state (this will never be the "blocked" result).
Let 𝑋ₛ(𝑦̃,ũ) be the set of states consistent with 𝑦̃ and ũ.
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Problem 10

Consider a robot with the action set
U_3 = \{\text{down/left, up/right}\} \\\
Let 𝑦̃ = [y₀, y₁, y₂, y₃, ..., yₖ] be the sensor history.
Let ũ = [u₁, u₂, u₃, ..., uₖ] be the actuation history.
Let [x₀, x₁, x₂, x₃, ..., xₖ] be the sequence of states that the robot traversed. Unlike the sensor and actuation history, this is unlikely to be known.
The state x₀ denotes the starting state prior to any movement attempts. Assume that x₀ is NOT in a grey square to start with. The observation y₀ denotes the observation received from the starting state (this will never be the "blocked" result).
Let 𝑋ₛ(𝑦̃,ũ) be the set of states consistent with 𝑦̃ and ũ.
Choose the correct statements.
Warning: You have not logged in. You cannot answer.

Authors

Hannah Erickson
?