Bayesian Fractional Polynomial Regression
Bayesian fractional polynomial regression compares every combination of power transformations of continuous covariates as a linear model under a hyper-g prior, giving posterior probabilities for each covariate's inclusion, its degree of non-linearity and its power terms.
베이즈 분수다항 회귀는 연속 공변량의 거듭제곱 변환 조합을 하나하나 하이퍼-g 사전분포 아래의 선형모형으로 비교해, 각 공변량의 포함 여부와 비선형 정도, 거듭제곱 항의 사후확률을 구합니다.
Is the effect of age on my outcome linear, logarithmic or more curved, and how sure can I be, without running a sequence of significance tests?
나이가 결과에 미치는 효과가 직선인지, 로그 꼴인지, 더 휘어 있는지를 유의성 검정을 줄줄이 하지 않고 확률로 판단할 수 있나요?
Give a numeric outcome and up to three covariates. Each continuous covariate can be excluded or enter as FP1 or FP2 with the standard powers; every combination is a linear model whose marginal likelihood under Zellner's g-prior with a hyper-g prior is computed exactly. The output lists the most probable models, inclusion and non-linearity probabilities, the coefficients of the best model and a model-averaged curve.
When to use Bayesian Fractional Polynomial Regression
- You want to choose functional forms for continuous covariates with probabilities rather than a closed test procedure.
- You want model-averaged curves that reflect uncertainty about the transformation.
- There are at most three candidate covariates.
When to use something else
- You want the frequentist MFP procedure or a binary, count or survival outcome: use Multivariable Fractional Polynomial Regression.
- You have many predictors and only linear terms: use Bayesian Model Averaging for Linear Regression.
- You want fully flexible smooth curves: use Generalized Additive Models (GAM).
Assumptions and requirements
- Gaussian linear model with constant error variance.
- The true curve is well approximated by one- or two-term fractional polynomials.
- Covariates are shifted to be positive before transformation.
What the analysis reports
- Posterior probabilities of the top models with log Bayes factors and R-squared
- Posterior inclusion, FP1, FP2 and non-linearity probabilities per covariate
- Coefficients of the most probable model with credible intervals
- Model-averaged effect curve of the first continuous covariate
How to report it
Bayesian fractional polynomial selection with a hyper-g prior gave the highest posterior probability ([value]) to the model [model]; the posterior probability that [covariate] has a non-linear effect was [value].
Related methods
- Multivariable Fractional Polynomial Regression
- Bayesian Model Averaging for Linear Regression
- Generalized Additive Models (GAM)
- Bayesian Linear Regression
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-6.
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 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 Fractional Polynomial Regression 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.