Switch scatter regression to OLS with statistics#15
Conversation
Code Review: Switch scatter regression to OLS with statisticsThank you for this PR! Overall, this is a solid enhancement that replaces Theil-Sen regression with OLS and adds valuable statistical context to the dashboard. Below is my detailed feedback: Positive Aspects✅ Good statistical implementation: The OLS implementation (extractor/generate_dashboard.py:990-1065) correctly calculates slope, intercept, R², and p-value using standard formulas. ✅ Comprehensive p-value calculation: The implementation of the Student's t-distribution CDF with supporting functions (logGamma, betacf, regularizedIncompleteBeta) is mathematically sound and follows established numerical methods. ✅ Robust error handling: Good defensive programming with checks for edge cases (n < 2, sxx == 0, non-finite values, etc.). ✅ User-friendly display: The regression statistics are well-formatted and presented clearly below each scatter plot. Issues & Concerns1. Missing Justification for Regression Method Change
|
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_69095661587483258cee0fada0a71fcd