Hacker News new | ask | show | jobs
by clircle 1710 days ago
A very odd method where logistic regression would have sufficed. I would have done something like

    library(mgcv)
    gam(y ~ s(x), data, family = binomial)
to do a wiggly logistic regression, and avoid the binning issue entirely.

You can do it Bayesianly if you like, but I don't see why we should discretize the data into buckets.

And what am I supposed to take away from the normalized histogram?

1 comments

Yes that would probably work! GAMs are a bit of a black box to me so I find it hard to reason about them. I think my method is a bit simpler and it’s more straightforward to get uncertainties, but certainly less elegant than a smooth solution.