Probabilistic-Programming-and-Bayesian-Methods-for-Hackers icon indicating copy to clipboard operation
Probabilistic-Programming-and-Bayesian-Methods-for-Hackers copied to clipboard

Chapter 4: error about sorting posteriors of reddit submissions

Open fralc opened this issue 8 months ago • 0 comments

this code doesn't produce the 5% quantile:

v = np.sort( posteriors[i] )[ int(0.05*N) ]

this would do it:

v = np.sort( posteriors[i] , axis=0)[ int(0.05*N) ]

fralc avatar Mar 27 '25 14:03 fralc