Probabilistic Models and Uncertainty
Update the hidden pump condition
BOTIE
Examples, experiments and workspace controls
Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.
Try your own inputs
Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.
Context for this challenge
Apply the transposed row-stochastic transition matrix to the previous belief.
Botie has yesterday’s belief, a transition model, and likelihoods for today’s reading.
Inspect the component calculation
Matrix times vector(
Rows of coefficients: Swap rows and columns(
Matrix: Check transition rows(
Transition table: Transition matrix
)
)
Input vector: Check a probability distribution(
Probabilities: Previous state probabilities
)
)Examples and results
- Transition matrix
0.9 0.1 0.2 0.8 - Previous state probabilities
- 00.8
- 10.2
- Required result
- 00.76
- 10.24
- Transition matrix
1 0 0 1 - Previous state probabilities
- 01
- 10
- Required result
- 01
- 10
Try a fresh construction
This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.
Stuck? Inspect a worked construction
The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.
Assumptions and test precision
This filters supplied models. It does not learn transitions or decode the most likely full path. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.
Your last tested pieces can start the full construction. An existing draft there keeps its own pieces.
A previously faulty pump may have recovered
This check uses the pieces from “Predict the pump state, then condition on its reading”.
BOTIE
- Previous state probabilities
- 00
- 11
- Transition matrix
0.8 0.2 0.25 0.75 - Reading likelihoods
- 00.9
- 10.1
Use a number, text, or an array matching the requested result. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
Which part of the construction would be missing if you merely multiplied yesterday's belief by today's likelihoods?
Keep temporal prediction and measurement correction as separate operations.
This filters supplied models. It does not learn transitions or decode the most likely full path.
Work through the Python challenges →