M5 Model Tree (Regression Tree with Linear Models in the Leaves)
An M5 model tree is a regression tree whose leaves hold linear regression models instead of constants. Splits maximise the reduction in standard deviation, leaf models are simplified and pruned by an error estimate that penalises parameters, and predictions are smoothed toward the models higher in the tree.
M5 모형 나무는 잎에 상수 대신 선형회귀 모형을 둔 회귀 나무입니다. 표준편차 감소가 가장 큰 분할을 고르고, 모수 수에 벌점을 주는 오차 추정으로 잎 모형을 단순화하고 가지치기하며, 예측값을 위쪽 마디의 모형 쪽으로 평활합니다.
House prices rise linearly with floor area, but the slope differs by district and age. Can a tree give me a few readable linear formulas?
집값이 면적에 따라 선형으로 오르지만 기울기가 지역과 연식마다 다릅니다. 읽기 쉬운 선형식 몇 개로 나눌 수 있습니까?
The method returns the leaf rules with their linear models, the tree size, training RMSE, R squared and cross-validated RMSE.
When to use M5 Model Tree (Regression Tree with Linear Models in the Leaves)
- Continuous outcome with piecewise linear structure
- Readable rules with linear formulas are wanted
- Moderate number of predictors
When to use something else
- Splits should be based on parameter instability tests: use Model-Based Recursive Partitioning (MOB)
- Prediction accuracy matters more than readability: use Gradient Boosting
Assumptions and requirements
- Approximately linear relation within each region
- Enough cases per leaf
- Training sample representative of new data
What the analysis reports
- Leaf rules and linear models
- Number of leaves and depth
- Training and cross-validated error
How to report it
An M5 model tree with [k] linear-model leaves fitted [n] cases with cross-validated RMSE = [value].
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-8.
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-8).
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 M5 Model Tree (Regression Tree with Linear Models in the Leaves) 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.