PPolySim OS
For Educators · Factor Model

Factor Model for a mortgage

Built for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs. Simulate a mortgage live below — adjust the inputs and watch it respond, right in your browser.

1

Linear Regression

open full solver →
Linear RegressionLive

Controls

Presets

Ordinary least squares finds the line that minimizes the sum of squared vertical residuals (the gray drop-lines). R² measures the fraction of variance the line explains — 1 is perfect, 0 is useless. Add noise or remove points to watch the fit and R² degrade.

▶ Run in Python

Data Inspector

Fitted slope0.000
Intercept0.000
0.000
Correlation r0.000

Governing equation

Reading this result: R² = 0.00: noise (2) swamps the signal, so least squares can barely tell the slope from flat — adding data points would tighten the estimate.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

Principal Component AnalysisLive

Controls

Presets

PCA finds the directions along which data varies most. The eigenvectors of the covariance matrix are the principal components (cyan = most variance, green = least), and their eigenvalues are the variances along each. Projecting onto the top components is the basis of dimensionality reduction.

▶ Run in Python

Data Inspector

Variance PC10.00
Variance PC20.00
PC1 explains0%
PC1 angle

Governing equation

Reading this result: PC1 explains 0% of the variance here; the stronger the correlation between features, the more PCA concentrates information on that first component.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Factor Model

Frequently asked questions

Is this good for educators?
Yes — this version of "Factor Model for a mortgage" is framed for educators teaching it to a class. Drop a live demo into a lecture or assign it as a shareable link — no lab installs.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.