Differentiating beta distribution PDF w.r.t. shape parameters #7720
Answered
by
sharadmv
MatthewGerber
asked this question in
Q&A
-
Hello - I am trying to use Jax to calculate the derivative of the beta distribution's PDF w.r.t. its shape parameters. The output does not match my expectations. Here's my minimal example, with my questions and output embedded and the plot attached. Much appreciation in advance to anyone who can shed light on these questions. Matt
|
Beta Was this translation helpful? Give feedback.
Answered by
sharadmv
Aug 26, 2021
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MatthewGerber
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is tricky!
When
a = 0.1
andb=0.1
, the beta has modes at 0 and 1 (you can see the pdf shoot towards infinity in those regions). By increasinga
slightly, we actually increase the density ofx = 0.01
untila
gets too big and then the density ofx = 0.01
starts decreasing again. We can see this in the plot ofjax_beta_pdf
for various values ofa
:I hope that answered your question!