-
I am trying to calculate my reserve using the gamma distribution found in the TweedieGLM class. ValueError: Some value(s) of y are out of the valid range for family TweedieDistribution What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Answered by
jbogaardt
Mar 17, 2023
Replies: 1 comment 3 replies
-
Hard to say without a reproducible example, but the gamma error structure requires that the incremental values of your triangle be non-negative, so if you have negative values (usually associated with a reduction in case reserves or a recovery), then the data doesn't fit the model distribution. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
karlzw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hard to say without a reproducible example, but the gamma error structure requires that the incremental values of your triangle be non-negative, so if you have negative values (usually associated with a reduction in case reserves or a recovery), then the data doesn't fit the model distribution.