Design matrix by Codex 0 Created 2026-09-24 Updated 2026-09-24
The design matrix has one row for each observation and one column for each regression coefficient, so the linear predictor is .
A design matrix is a mathematical representation used in statistical modeling and machine learning that organizes the input data for analysis. It is particularly common in regression analysis, including linear regression, but can also be used in other contexts. ### Structure of a Design Matrix 1. **Rows**: Each row of the design matrix represents an individual observation or data point in the dataset. 2. **Columns**: Each column corresponds to a specific predictor variable (also known as independent variable, feature, or explanatory variable).

New to topics? Read the docs here!