Alaa Zaitoon
Skip to content
FastAPI & Next.js 14 Statistical Dashboard

Smart Regression & Data Insight System

A production-grade statistical inference and regression dashboard. Driven by a FastAPI backend acting as the single source of mathematical truth, it handles closed-form Ordinary Least Squares, full ANOVA decomposition, t-tests, standard errors, and Cook's distance for influence detection, complete with client-side interactive ECharts and dynamic server-generated PDF reporting.

Problem Statement

Traditional statistical analysis tools are either overly complex desktop software or lack modern interactive visual feedback. Users need a streamlined web platform to upload datasets, configure variables, and run linear regression with instant visual and mathematical validation.

System Architecture

A decoupled architecture using a high-performance FastAPI backend for complex statistical math (OLS, ANOVA, p-values) acting as the single source of truth, and a Next.js frontend rendering dynamic charts using Apache ECharts. Reports are generated dynamically using ReportLab in Python.

Engineering Challenges & Solutions

Handling numerical stability during closed-form OLS matrix inversions with highly collinear data, and optimizing dynamic PDF generation to align mathematical notations correctly under pressure.

App Interface Preview

Smart Regression & Data Insight System preview

Technologies Used

FastAPIPython 3.12Next.js 14TypeScriptTailwind CSSNumPy / SciPyEChartsReportLabPlaywright / Pytest

Core Features

  • Full statistical inference engine (ANOVA, two-sided p-values, 95% CIs, F-statistics)
  • Six dynamic ECharts diagnostic plots (residuals, leverages, Cook's distance, correlation heatmaps)
  • Plain-English diagnostic recommendation system for outlier & multicollinearity detection
  • Interactive 5-step workflow: upload, configure, visualize, statistical analysis, and report export