Interactive Scientific Computing Debug Tool
Pure JavaScript • No dependencies • Share anywhere
Running OLS QR Analysis...
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²
Ready! Click "Run Analysis" to see results...