stan-dev/math - Open Source PR Review Scorecard

The Stan Math Library is a C++ template library for automatic differentiation of any order using forward, reverse, and mixed modes. It includes a range of built-in functions for probabilistic modeling, linear algebra, and equation solving.

C-Rank Grade: A (Welcoming) - 60/100

External PR Merge Rate: 41%

Response Time: 14h

First Timer Success: 29%

Frequently Asked Questions

Is stan-dev/math welcoming to first-time open-source contributors?

stan-dev/math has a recorded first-timer success rate of 28.6%. Repositories ranked A typically provide actionable feedback during code reviews and actively nurture new community contributors.

How fast can I expect code review feedback on my pull request?

Maintainers in stan-dev/math respond to incoming external pull requests in approximately 29.0 hours. Keeping PRs focused on single tasks and ensuring tests pass helps maintainers review faster.

What does the 60.0 C-Rank™ score (A Tier) represent?

The C-Rank™ system evaluates GitHub projects on a 0–100 scale using real data: PR merge rates, review turnaround time, active maintainer presence, and first-time contributor success. A score of 60.0 places stan-dev/math in the A tier.

What is the external contributor pull request merge rate for stan-dev/math?

The external contributor pull request merge rate for stan-dev/math is 40.5%, based on public PR activity from non-core contributors.

Are there Good First Issues available in stan-dev/math?

stan-dev/math currently has 3 active issue(s) tagged with beginner-friendly labels like "good first issue", "beginner", or "up-for-grabs".

A
stan-dev/math847
GitHub
Back to Explorer
A
SCORE 60
★ WelcomingC++847 stars74d ago

stan-dev/math

Verdict: Highly receptive maintainers with consistent review turnaround and reliable acceptance for clean diffs. Outside contributors observe a median review response in 29.0 hours, and 41% of outside PRs are merged into main.

Open Access: Outside PRs Welcomed
GitHub
Compare••
Jump to:
Beat 2: Observed 6-Month Contributor Metrics
Rolling 180-day telemetry
Outside Merge Rate
40.5%
Moderate PR acceptance rate
Review Turnaround
13 hours
Standard maintainer review cycle
First-Timer Success
28.6%
Accepts new contributor PRs
Team & Bus Factor
22 Reviewers
Highly collaborative maintainer core
Beat 3: Proof - Recent Outside Merged PRs
10 Verified Merges
Pull RequestContributorTurnaroundMerged AtStatus
#3508@SteveBronderRapid mergeNov 20Merged
#3457@jgabryRapid mergeOct 15Merged
#3412@godking123Rapid mergeOct 13Merged
#3424@jachymbRapid mergeOct 1Merged
#3402@barracuda15619h 42m to mergeSep 16Merged
#3394@WardBrian4m to mergeSep 9Merged
#3363@jaburgoyneRapid mergeAug 30Merged
#3375@Purna-Chandra-4706Rapid mergeAug 28Merged
#3346@florence-bockting615h 6m to mergeAug 12Merged
#3355@charlesm9389h 57m to mergeAug 8Merged
PR Size Sweet Spot
< 150 lines

Historical merge velocity and acceptance rate categorized by lines of code:

Small (< 150 lines)Fast Review (<24h)
51% Merge
Medium (150–500 lines)Moderate Review
39% Merge
Large (> 500 lines)High Stalling Risk
18% Merge

Tip: Maintainer Sweet Spot: PRs under 150 lines merge in ~19 hours (51% approval). Large PRs (>500 lines) take ~139 hours (18% approval). Keep your diff compact for rapid review.

Optimal Review Window
7 Active

Maintainers are most responsive during these observed active hours:

Primary Active Window
Tuesday - Thursday • 13:00 – 17:00 UTC
Tuesday - ThursdayPeak: 14:00 UTCConfidence: 42%
Embed Live C-Rank™ Badge

Showcase your verified welcoming reputation directly on your GitHub repository README:

GetMerged C-Rank badge for stan-dev/mathLive SVG (auto-updates on rescore)
[![GetMerged C-Rank](https://getmerged.abhishekco.de/api/badge/stan-dev/math)](https://getmerged.abhishekco.de/stan-dev/math?utm_source=github&utm_medium=badge)

Active Good First Issues (3)

View on GitHub

The code was generated by chatgpt sol. The math patch code is attached. The algorithm is from https://dl.acm.org/doi/10.1145/3423597. @WardBrian this is the solver we discussed about. functions { // Replace this body to prototype a different scalar equation f(x, ...)=0. // This example solves x^3 - theta[1] = 0. real itp_residual(real x, vector theta, array[] real x_r, array[] int x_i) { return x * x * x - theta[1]; } int itp_n_half(real width, real x_tolerance, int max_num_steps) { int n_half = 0; real bisection_width = 2.0 * x_tolerance; while (bisection_width < width) { if (n_half >= max_num_steps) { reject("solve_itp_prototype: max_num_steps is too small for the ", "requested bracket width and x_tolerance"); } bisection_width *= 2.0; n_half += 1; } return n_half; } // Overflow-resistant regula-falsi point for opposite-signed fa and fb. real itp_false_position(real a, real b

📅 Opened Aug 21, 2026💬 5 comments
Quality: 80/100Contribute

To facilitate working with the sum-to-zero constraint in multivariate contexts, it would be valuable to be able to specify not only individual sum_to_zero_vectors but also matrices for which all rows or all columns are constrained to sum to zero. To my knowledge, there is no universally standard name for such a mathematical object (nor to Claude's knowledge, which only produced a list of suggestions), but for the sake of starting a conversation, I would propose something like row_centered_matrix and col_centered_matrix (and perhaps row_centred_matrix and col_centred_matrix as aliases for spelling-dialect neutrality). The primary use case for me would be hierarchical modelling with correlated multivariate random effects, e.g., random-slopes models or multivariate item-response models. To reduce problems with funnel geometries during sampling, it can be wise to write such models using ‘raw’ parameters with standard normal priors and then construct the actual parameters in the transfo

📅 Opened Aug 18, 2026💬 3 comments
Quality: 80/100Contribute

Good day, It is currently possible to have location parameter of 0 in poisson_lpmf and negative_infinity() in poisson_log_lpmf; I've also verified this works with the _glm functions: model { real works = poisson_lpmf(1 | 0), works2 = poisson_log_lpmf(1 | negative_infinity()); } However, this is not possible with neg_binomial_2 functions: model { real fails = neg_binomial_2_lpmf(1 | 0, 1), fails2 = neg_binomial_2_log_lpmf(1 | negative_infinity(), 1); } which errors out with: Exception: neg_binomial_2_lpmf: Location parameter is 0, but must be positive finite! I think it would be reasonable to permit similar behaviour as for the Poisson functions?

📅 Opened Apr 13, 2026💬 5 comments
Quality: 70/100Contribute
Looking for more C++ beginner tasks?Explore C++ GFI

Contributor Reviews & Maintainer Feedback

Real contributor ratings on code review speed, maintainer helpfulness, and beginner receptivity.

Have you contributed to math?

Share your experience with code reviews, responsiveness, and onboarding to guide other external contributors.

3 ratings required
Maintainer helpfulness
Review speed
Beginner friendliness

Contributor Compatibility & Review Speed Analysis for stan-dev/math

When evaluating whether to contribute to stan-dev/math, response velocity and maintainer engagement are crucial. GetMerged continuously tracks pull request trajectories, first-comment latency, and code review rounds to help developers avoid submitting pull requests to backlogged repositories.

Currently, maintainers of stan-dev/math acknowledge new external contributions in approximately 13 hours. Out of all submitted pull requests from non-core authors in the last 180-day window, 40.5% were successfully merged into the primary branch.

Frequently Asked Questions - Contributing to stan-dev/math

01

Is stan-dev/math welcoming to first-time open-source contributors?

stan-dev/math has a recorded first-timer success rate of 28.6%. Repositories ranked Welcoming typically provide actionable feedback during code reviews and actively nurture new community contributors.

02

How fast can I expect code review feedback on my pull request?

The initial maintainer response time averages ~13 hours. Keeping PRs scoped to single concerns and ensuring CI checks succeed will optimize review turnaround.

03

What does the 60.0 C-Rank™ score represent?

The C-Rank™ index scores repositories on a 0 to 100 scale using an objective formula: external PR merge rates, initial response speed, active maintainer count, and first-time contributor retention. A score of 60.0 places stan-dev/math in the Welcoming tier.

04

What is the external contributor pull request merge rate for stan-dev/math?

The external pull request merge rate is 40.5%. GetMerged isolates non-core community contributions so external developers get an accurate benchmark of PR acceptance probability.

05

Are there beginner Good First Issues open in stan-dev/math?

Yes, stan-dev/math currently has 3 active issue(s) tagged with beginner-friendly labels. You can inspect these directly from the repository issues tab.

GetMerged C-Rank™ Indexing Standard

All metrics displayed for stan-dev/math are automatically retrieved via the public GitHub API and recalculated daily. Insider pull requests submitted by repository owners or organization members are excluded from merge rate calculations to preserve objective external contributor statistics.