Projects

Data Visualization

Curve Fitter

An interactive curve-fitting demo with point entry, pan, zoom, and real-time coefficient updates.

JavaScript
p5.js
Data visualization

Why It Is Useful

The project is useful because it turns regression from a black-box calculation into a visible process. Users can see how a model adapts to data.

Problem It Solves

Fitting a curve can feel opaque when the only output is a final equation or score.

Real-World Applications

  • Calibration tools that fit equations to measurements.
  • Engineering analysis where model behavior needs to be inspected visually.
  • Teaching optimization and regression with immediate feedback.

Concepts Used

  • Gradient descent
  • Loss minimization
  • Coordinate transforms
  • Interactive plotting

Solution Used

  • The sketch stores user-provided points and renders them in a pannable coordinate space.
  • The fitting loop updates coefficients to reduce prediction error.
  • The plot and values update together so model behavior stays visible.