Map for vensim-stan connection #61
hyunjimoon
started this conversation in
brain belief 🟩
Replies: 2 comments
-
Other agendas with Jair and Paul
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@tomfid I think it's time for our first cookbook! I will share this map of Bayes-SD to will help students stress-test stanify this monday. If it isn't too much to ask could you help me by filling in the vensim column? For the collaboration, I put the code for table here. Our previous discussion on Nathaniel's Rosetta stone ml - biostats map might be second-order relevant. #23 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
All codes including demo on prey-predator and inventory management will be actively updated in https://github.com/Data4DM/stanify. The gap between system dynamics and Bayesian statistics cannot be filled in one semester, but we can increase its filling rate together! Please leave error report or question in stanify repository as issue here. I am preparing for demo for 15.879 class, upcoming Friday. Note that this post is not official and I am responsible for all potential wrong facts.
I summarized below lessons I learned during three months of vensim - stan connection. I strongly encourage you to leave comments which will help me allocate my resource on the features that can benefit you the most.
Variable types and end goal
Customized computation model
Relative, not absolute
time_step
originally,
time_step
was not translated to stan file;stocked_flow
structure is howtime_step
first got introduced to stannew parameterization via fraction of time step over correlation time 0 <
tolerance
=time_step
/correlation_time
< 1 (just as adjustment time has the same information as fraction). Time step is not translated to stan model. Astime_step
is an artifact whereascorrelation_time
is physical, modelers should customize tolerance according to their needs. At one side of thetolerance
spectrum, miniscule tolerance will make your model impractical from heavy computation (10 simulations per sec.) whereas large tolerance (i.e. largertime_step
) will make your model unrealistic.helpful explanation on tolerance: "two-sided tolerancing is like goal posts in a football game; all data within tolerances are equally acceptable"
Data as stock
if data <> NA, 0, distance
)Stock vector
stock_init
value is HIGHLY implementation-sensitive e.g. affected by order of computation.stock _vector
is affected bytolerance
e.g. downsampledtarget simulated data
, vector to be matchedreference_throughput
parameter, then let all stocks initialized around parameter (Tom's rec). Focus on variation design after initializing. e.g.:Need for convergence diagnostics
(upcoming)
my questions
Q1. Can
stock_init
be affected bytolerance
?Q2. How to select
tolerance
, a sweet spot for both practical and realistic portrayal?@jandraor after your research summary tomorrow I wish to discuss the above (if time permits).
@tomfid the above is the summary of our discussion last week; may I ask for some feedback?
Beta Was this translation helpful? Give feedback.
All reactions