stan-dev / stan-dev/docs

SBC documentation

Open
#947 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
43
Forks
133
Avg merge
11h 32m
Merged PRs (30d)
4

Description

Dear stan-dev team,

I have a question regarding the document on simulation based calibration:
https://mc-stan.org/docs/stan-users-guide/simulation-based-calibration.html

The document says:

To summarize, the following pseudocode computes the values for the test or for visualization in a histogram.

Inputs: M draws, J bins, N parameters, ranks r[n, m]
b[1:J] = 0
for (m in 1:M) {
  ++b[1 + floor(r[n, m] * J / (M + 1))]
}

Just before the ranks were indexed as r[n, k] where k was the number of parameters. Is there an error in the pseudo code that should read:

Inputs: N data sets, M draws, J bins, K parameters, ranks r[n, k]
For a given k:
b[1:J] = 0
for (n in 1:N) {
  ++b[1 + floor(r[n, k] * J / (M + 1))]
}

Many thanks for your help,

Best wishes,

Melodie

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the simulation-based calibration guide at the linked URL and locate its source in the documentation repository. Compare the rank notation and pseudocode with the surrounding explanation, then correct the inconsistent variables if confirmed. Done means the pseudocode matches the preceding definition of the ranks and the guide remains internally consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
tex
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.