Web & frontend·HTML·Learning project
Regression Calculator
An early statistics exercise turned into a tool: enter X/Y pairs and it returns the least-squares line y = ax + b together with the correlation coefficient. I computed everything in plain JavaScript with no libraries, because the point was to implement the formulas from my statistics course rather than call a regression package. Means, SSxy, SSxx, and SSyy are calculated first, and b, a, and r are derived from them. The interface is a Bootstrap table where rows are added and removed, with an output button that recomputes on demand. It is a small project and I treat it as one: two files, no build step, no tests. What it gave me was the confidence that a formula I could write on paper could become something a classmate would actually open.



- Implementing SSxy, SSxx, and SSyy by hand makes the correlation coefficient stop being a black box.
- Dividing by SSxx means a degenerate dataset, such as all X values equal, has to be handled explicitly rather than ignored.
- Two files and no build step is enough for a tool this size; not everything needs a framework.
Scale 0–100: how much this project relied on each skill.