pymc-devs / pymc-examples

Examples of PyMC models, including a library of Jupyter notebooks.
https://www.pymc.io/projects/examples/en/latest/
MIT License
259 stars 212 forks source link

Ordinal regression #533

Closed NathanielF closed 1 year ago

NathanielF commented 1 year ago

Example Notebook using Ordinal Regression Model

Related to this issue: https://github.com/pymc-devs/pymc-examples/issues/277

Notebook is a work in progress. Just experimenting with different model specifications on fake data with known properties. Current plan is fit and explain the regression model with a discussion of the priors over the cut points and evaluating different implications of the model specification. Rough plan is to then apply the techniques to examples in Agresti's book on categorical data analysis.

Helpful links

review-notebook-app[bot] commented 1 year ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

NathanielF commented 1 year ago

Marking this one as ready for a pull request because I think i have the bones of what I want... but not quite the structure. I also know @drbenvincent has thoughts on this one too. So opening it up for feeback or pushback, suggestions

Broad structure at the moment is

  1. Open with scenario of employee rating system to motivate the view of a latent sentiment and explicit rating.
  2. Generate fake data and visualise it. Explain the nature of the regression model
  3. Run a variety of models
  4. Plot outcomes
  5. Use Krushcke's movie data set to compound the importance of modelling ordinal data properly
  6. Conclude
drbenvincent commented 1 year ago

Great stuff. Reviewing this and the other notebook is definitely on my list 🙂

drbenvincent commented 1 year ago

I hope to have time to review this Friday or Monday. Feel free to ping me if I violate that 🫠

NathanielF commented 1 year ago

Giving this one a nudge @drbenvincent

drbenvincent commented 1 year ago

Thanks for the reminder. A bunch of house move things get finished today, so should have capacity for this very soon :)

NathanielF commented 1 year ago

Just giving another nudge here @drbenvincent. At this point i'm pretty happy with it.

drbenvincent commented 1 year ago

Sorry, taking a look now :)

NathanielF commented 1 year ago

Made those changes. Think we're all good now. Thanks for the review!