⭐ Star on GitHub ✨ Created with Flowpad.ai

🔬 OLS QR Decomposition

Interactive Scientific Computing Debug Tool

Pure JavaScript • No dependencies • Share anywhere

Running OLS QR Analysis...

0.9391
R-squared
0.4385
RMSE
100
Samples
3
Coefficients

📋 Algorithm Steps

1. X_ = addIntercept(X)           # Add intercept column
2. [Q, R] = qrDecomposition(X_)   # QR decomposition  
3. beta = solve(R, Q.T * y)       # Solve triangular system
4. y_hat = X_ * beta              # Generate predictions
5. r2 = 1 - SS_res/SS_tot         # Calculate R²

🎯 Results

Ready! Click "Run Analysis" to see results...