Richie-Lee / Bayesian_AB_Test

MSc_Thesis code repository
0 stars 0 forks source link

scipy.special & scipy.stats package "Beta" functions work differently - why? #6

Closed Richie-Lee closed 10 months ago

Richie-Lee commented 10 months ago
Richie-Lee commented 10 months ago

https://chat.openai.com/share/6a6bbec6-cbd6-4a24-8289-29872da3ee03

scipy.special.beta: Normalising constant, simply output by plugging parameters a,b in beta functions (just math)

scipy.stats.beta: pdf, it's a function that uses the normalising constant above (" kinda like total surface under curve") to get something that integrates to 1. Good for getting specific likelihoods at some x, and thus for visualisation purposes.

For BF: scipy.special.beta for Visualisation: scipy.stats.beta

Richie-Lee commented 10 months ago

Note that you cannot simply use the stats.beta to visualise the same thing we obtained originally.

bottom line: Beta function != beta distribution