Giter Club home page Giter Club logo

statistical-rethinking-2023-python-notes's Issues

m15.1 not sampling as well as in Rethinking

Dear Kpjmcg,

I am working on the same dataset as you following along the book and implementing the model using Pymc. Using the data of the divorce I am getting some really bad sampling but in the book it doesn't seem to be a problem? do you have any idea why? I am trying with your code as we speak.
this is my model, my values are standardized
my model:

with pm.Model(coords=coords_div) as Model_missing_data:
    
    a = pm.Normal("intercept",0,0.2)
    bA = pm.Normal("beta_age",0,0.5)
    bM = pm.Normal("beta_marriage",0,0.5)
    
    mu_div = a + bA*age + bM*mar
    sigma_div = pm.Exponential("error",1)
    # true divorce rate
    div_true = pm.Normal("Divorce_True",mu_div, sigma_div,dims="obs_id")
    # Observed divorce rate generated by the (unknown) true div rate
    D_obs = pm.Normal("Divorce_Obs",mu = div_true, sigma =div_sd ,observed=div)

   ```
thanks for your work,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.