Skip to content

Fix LogNormal to use scale=mu instead of loc=mu#42

Merged
saudzahirr merged 1 commit into
masterfrom
fix/lognormal-scale-parameter
May 19, 2026
Merged

Fix LogNormal to use scale=mu instead of loc=mu#42
saudzahirr merged 1 commit into
masterfrom
fix/lognormal-scale-parameter

Conversation

@saudzahirr
Copy link
Copy Markdown
Member

In scipy's lognorm, the scale parameter maps to exp(mu) of the underlying normal distribution, while loc shifts the whole distribution. Using loc produced an incorrect distribution shape.

Closes #28

In scipy's lognorm, the `scale` parameter maps to exp(mu) of the
underlying normal distribution, while `loc` shifts the whole
distribution. Using `loc` produced an incorrect distribution shape.

Closes #28

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@saudzahirr saudzahirr self-assigned this May 19, 2026
@saudzahirr saudzahirr added the bug label May 19, 2026
@sonarqubecloud
Copy link
Copy Markdown

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@saudzahirr saudzahirr merged commit c296419 into master May 19, 2026
14 checks passed
@saudzahirr saudzahirr deleted the fix/lognormal-scale-parameter branch May 19, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LogNormal definition incorrect

2 participants