Update docs for new sig_figs default in CmdStan#862
Merged
bob-carpenter merged 2 commits intomasterfrom Mar 3, 2025
Merged
Conversation
bob-carpenter
requested changes
Mar 3, 2025
src/reference-manual/transforms.qmd
Outdated
| Stan’s arithmetic is implemented using double-precision | ||
| floating-point numbers, which may cause computation to behave | ||
| differently than mathematics. For example, the lower bound constraint | ||
| is defined with a logarithm constraint which mathematically excludes |
Member
There was a problem hiding this comment.
The constraint is positivity.
It's enforced with an exp() inverse transform of unconstrained parameters, which are always a finite non-zero number in arithmetic, but which can underflow to 0 or overflow to +infinity with floating-point representations.
src/reference-manual/transforms.qmd
Outdated
| a variance parameter that has been declared to be larger than 0. | ||
| In general, double-precision floating-point numbers cannot reliably store | ||
| more than 16 digits of a number in decimal. | ||
| See more about [Floating point Arithmetic in Stan user's guide](../stan-users-guide/floating-point.qmd). |
Member
There was a problem hiding this comment.
- "Floating" and "Arithmetic" should not be capitalized.
- I'd make the link just "floating point arithmetic"
- Stan user's guide -> Stan User's Guide (italics and capitalized as a book title)
src/reference-manual/transforms.qmd
Outdated
| more than 16 digits of a number in decimal. | ||
| See more about [Floating point Arithmetic in Stan user's guide](../stan-users-guide/floating-point.qmd). | ||
|
|
||
| These issues can be exacerbated by the fact that CmdStan stores the output to |
src/reference-manual/transforms.qmd
Outdated
| See more about [Floating point Arithmetic in Stan user's guide](../stan-users-guide/floating-point.qmd). | ||
|
|
||
| These issues can be exacerbated by the fact that CmdStan stores the output to | ||
| CSV files with 8 digits accuracy by default. More digits can be requested by the user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Submission Checklist
<<{ since VERSION }>>Summary
Changes for stan-dev/cmdstan#1308
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: