femtomc / Jaynes.jl

E.T. Jaynes home phone.
https://femtomc.github.io/Jaynes.jl
Apache License 2.0
45 stars 1 forks source link

Use `randn` in noise for Bayesian example #35

Closed mschauer closed 4 years ago

codecov[bot] commented 4 years ago

Codecov Report

Merging #35 into master will decrease coverage by 0.18%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   32.67%   32.48%   -0.19%     
==========================================
  Files          65       65              
  Lines        2286     2287       +1     
==========================================
- Hits          747      743       -4     
- Misses       1539     1544       +5     
Impacted Files Coverage Δ
src/contexts/hierarchical/simulate.jl 50.00% <0.00%> (-40.91%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f76ec08...5b1e618. Read the comment docs.

mschauer commented 4 years ago

You probably also want to do

est_β = sum(map(zip(ps.calls, lnw)) do (cl, w)
                 get_ret(cl[:β])*exp(w)
             end) 
println("Estimated β: $est_β") # 2.99...