Skip to content

Add skew student-t#31

Merged
aloctavodia merged 4 commits intopymc-devs:mainfrom
fonnesbeck:skew_studentt
Jan 25, 2026
Merged

Add skew student-t#31
aloctavodia merged 4 commits intopymc-devs:mainfrom
fonnesbeck:skew_studentt

Conversation

@fonnesbeck
Copy link
Member

Includes empirical tests

z = (x - mu) / sigma
y = 0.5 * (1 + z / pt.sqrt(a + b + z**2))
result = pt.betainc(a, b, y)
result = pt.switch(pt.eq(x, -pt.inf), 0.0, result)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a function for this cdf_bounds or similar

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like cdf_bounds works for distributions with infinite support when their formulae naturally evaluate to 0/1 at the limits (like Gumbel, Laplace, Normal). The skew-studentt formula produces inf/inf → NaN at x = ±inf, so it needs the explicit equality check that cdf_bounds doesn't provide. Unless I am reading this wrong.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right!

@aloctavodia aloctavodia changed the title Added draft skew student-t Add skew student-t Jan 24, 2026
@aloctavodia aloctavodia merged commit 9ddd6c9 into pymc-devs:main Jan 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants