Skip to content

Methods · Regression · Bayesian regression

Bayesian Linear Regression with Hyper-g Prior

This Bayesian linear regression places Zellner's g-prior on the coefficients and a hyper-g prior on g, so the amount of shrinkage toward zero is learned from the data instead of being fixed. The posterior of every coefficient and the Bayes factor against the intercept-only model are computed exactly.

이 베이지안 선형회귀는 계수에 젤너의 g 사전분포를, g에 하이퍼-g 사전분포를 두어 0 방향 수축의 정도를 고정하지 않고 자료에서 학습합니다. 각 계수의 사후분포와 절편만 있는 모형에 대한 베이즈 인자를 정확히 계산합니다.

How strong is the evidence that my predictors explain the outcome, and how much should their effects be shrunk?

설명변수들이 결과를 설명한다는 증거가 얼마나 강하고, 그 효과를 얼마나 수축해야 합니까?

The method reports the Bayes factor of the model against the intercept-only model, the posterior shrinkage factor with its credible interval, and posterior means, SDs and credible intervals for each coefficient.

When to use Bayesian Linear Regression with Hyper-g Prior

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Under a hyper-g prior the Bayes factor against the null model was log BF = [value], with posterior shrinkage [value].

Common variants

자주 쓰는 설정

The same analysis with settings already chosen. Each runs Bayesian Linear Regression with Hyper-g Prior itself, at the same price.

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-6.

    독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-6).

Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.

허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.

Run Bayesian Linear Regression with Hyper-g Prior on Quorant

Data you need
a table (CSV or Excel) with an outcome variable and predictor (feature) columns
Price
400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
Checking
Compared with independent computations
Before you pay
A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.

Method ID Q21092 · Reviewed 2026-10-25