Initial condition for stationary distribution of LSS with a constant term
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the documented LSS example with and without mu_0, then inspect the LSS constructor, stationary_distributions, and remove_constants(lss) behavior mentioned in the issue. Done should mean that a constant-term model either receives a suitable default initial condition or clearly warns that an explicit one is required, with the behavior covered by a regression test.
Written by the indexing model from the issue text.
Description
A couple of students were having trouble with the LSS model and calling stationary_distributions because they hadn't created it with an initial condition. So the following works
using QuantEcon
A1 = 0.6;
a = 1.0
A = [A1 a; 0 1]
C1 = 4
C = [C1;0]
G = [1 0]
x_0 = [0; 1.0] #Important that the initial condition is in the correct place!
lss = LSS(A, C, G; mu_0 = x_0)
#If you look at the notes and the documents, it says you need an initial condition
μ_x, μ_y, Σ_x, Σ_y = stationary_distributions(lss)
But changing it to lss = LSS(A, C, G) does not
The issue is that the code doesn't warn them that this wouldn't work and doesn't correct the default initial condition (which I assume is just 0s)?
So, is there any way to either warn them that this is not kosher with a constant term, or (even better!) adjust the default initial condition to include the constants? You are already detecting the constant terms with the remove_constants(lss) function?
- Dominant language
- Julia
- Stars
- 554
- Forks
- 309
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from QuantEcon/QuantEcon.jl
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
QuantEcon/QuantEcon.jl#398 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
QuantEcon/QuantEcon.jl#396 ·
-
Redo documentation 2 Opendocs help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
QuantEcon/QuantEcon.jl#365 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
QuantEcon/QuantEcon.jl#283 · 1 comment ·
-
enhancement help wanted test
Difficulty 4/5 3-5 days Newbie friendliness 38/100
QuantEcon/QuantEcon.jl#275 · 1 reaction ·
All issues in QuantEcon/QuantEcon.jl
Similar issues
-
tagbot-manual
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Sienna-Platform/PowerSystems.jl#1800 ·
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100