A primitive Python script to analyse basic gold price statistics of July.
Bitcoin BTC (BTC-USD) Live Price, News, Chart & Price History - Yahoo Finance
Added a primitive linear regression prediction.
See if you can beat the statistics:


Statistics for July 2026
-----------------------------------------------------------------
Monthly maximum based on daily high: $66,910.06
Median of the month's daily highs: $64,638.70
Median of the month's daily lows: $63,206.21
Monthly minimum based on daily low: $57,747.77
Primitive linear projection
-----------------------------------------------------------------
Regression source period: July 2026 only
Prediction period: August 2026
Last actual observation: 2026-07-31
Prediction ending date: 2026-08-31
Daily-high regression slope: $92.5500 per observation
Daily-low regression slope: $112.7765 per observation
Projected daily high at period end: $67,271.73
Projected daily low at period end: $64,779.17
============================================================
SUMMARY OF CALCULATED VALUES:
============================================================
1. Monthly Maximum (Daily High): $66910.06
2. Monthly Maximum Median (Daily High): $64638.70
3. Monthly Minimum Median (Daily Low): $63206.21
4. Monthly Minimum (Daily Low): $57747.77
5. Predicted End of Next Month (High): $68029.80
6. Predicted End of Next Month (Low): $67052.00
============================================================
============================================================
PRIMITIVE LINEAR PROJECTION
============================================================
Latest actual observation: 2026-07-31
Projection ending date: 2026-08-24
Daily-high regression slope: $92.5500 per observation
Daily-low regression slope: $112.7765 per observation
Projected daily high at period end: $68,029.80
Projected daily low at period end: $67,052.00
============================================================
@creator do you only care about price as of the end of the month or if ANY value is outside the given range the option resolves as no instantly?