Skip to content

Bug in rng_fn of HalfStudentT #6657

Closed
Closed
@ricardoV94

Description

@ricardoV94

return np.asarray(np.abs(stats.t.rvs(nu, sigma, size=size, random_state=rng)))

sigma should be passed by keyword as scale, otherwise it’s read as loc

Found in https://discourse.pymc.io/t/pm-halfstudentt-dist-failing-to-give-correct-shape/11821

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions