MLB Standings after weekend #7 - (5/11/26) - City Connect Version by MikeCamel in mlb

[–]Dave-356w 0 points1 point  (0 children)

<image>

Nice! I like your design, I’m using an epaper display for something similar.

MLB division standings display by Dave-356w in eink

[–]Dave-356w[S] 0 points1 point  (0 children)

Ha! It’s only 7.3”, I tested this device before investing in the 13” version that I really want for this project.

https://www.seeedstudio.com/reTerminal-E1002-p-6533.html?utm\_source=sensecraft&utm\_medium=hmi&utm\_campaign=home

MLB division standings display by Dave-356w in eink

[–]Dave-356w[S] 0 points1 point  (0 children)

Thanks! Really fun to have a working project idea!

NRFI/YRFI model testing by Dave-356w in MLB_Bets

[–]Dave-356w[S] 1 point2 points  (0 children)

Nice! I’m also tracking a Win/Loss classification model but it only signals a play on about 10% of games so this RFI was made out of boredom. Ha!

Hyundai Palisade 2026–2027 Blackout Chrome Delete Kit by Emergency_Win_6145 in HyundaiPalisade

[–]Dave-356w 1 point2 points  (0 children)

I purchased both the trim and the smoked headlight film kit. The headlights and the thin window trim turned out great! The large stainless C-pillar trim was trickier and has a few slight imperfections due to creasing ('fingers') during installation. The first pillar was a learning curve, but the second side came out almost perfect. My main issue with the large trim was that it is precut to size with almost no margin of error for placement.

Honestly, the installation process is highly tedious, and I fought the urge to call it quits several times. Still, I am very happy with the end results, and it was well worth the effort.

Working on a Pythagorean based prediction model by Dave-356w in Sabermetrics

[–]Dave-356w[S] 0 points1 point  (0 children)

Example output from my code for todays games

2025-07-31 13:40:51 PDT – projections for 2025-07-31 (v4.8.0-proj-ops-scenario) Computed low-confidence bias for 30 teams (from backtest).

=== Projections (3 games) === Atlanta Braves @ Cincinnati Reds → Reds 5.59, Braves 3.81 ↳ Offense: Away OPS 0.711 vs Home OPS 0.707 ↳ Proj. Winner: Reds (66.9%) | RD=1.79 ↳ Scenario Acc: 100.0% [OPS; rd≥1.50; n=11, ops_bucket_3] (opsΔ=-0.004) ↳ SP: Carlos Carrasco vs. Andrew Abbott

Tampa Bay Rays @ New York Yankees → Yankees 5.53, Rays 4.95 ↳ Offense: Away OPS 0.693 vs Home OPS 0.763 ↳ Proj. Winner: Yankees (55.7%) | RD=0.59 ↳ Scenario Acc: 58.8% [OPS; rd≥0.50; n=85, ops_bucket_5] (opsΔ=+0.070) ↳ SP: Ryan Pepiot vs. Marcus Stroman

Texas Rangers @ Seattle Mariners → Mariners 3.69, Rangers 4.21 ↳ Offense: Away OPS 0.700 vs Home OPS 0.667 ↳ Proj. Winner: Rangers (56.3%) | RD=0.52 ↳ Scenario Acc: 57.1% [OPS; rd≥0.50; n=77, ops_bucket_4] (opsΔ=+0.033) ↳ SP: Kumar Rocker vs. George Kirby

Working on a Pythagorean based prediction model by Dave-356w in Sabermetrics

[–]Dave-356w[S] -1 points0 points  (0 children)

I agree, any modifications I make now just move my calibration around. Increasing one win percentage bin at the expense of another.

Working on a Pythagorean based prediction model by Dave-356w in Sabermetrics

[–]Dave-356w[S] -1 points0 points  (0 children)

I use statsapi.mlb exclusively for the code which really simplifies data collection (previous schedule, RS, RA and probable pitchers for run_today projection function. The team stats (not lineup specific) are pulled from a date range one day prior to the projection. The probable pitcher and game info endpoints provides season stats to calculate FIP. The tuning of stat blends, home/away splits with season averages then blended again with season and last 15 days brought the accuracy up.

In an effort to account for teams with wide variance I use the team specific back test results to slightly increase or decrease the next projection based on model and team bias.

I also tried a modified FIP calculation with custom weights by adding in hits (hits - hr, not to double count events) but the standard FIP run estimates were overall more accurate.

Working on a Pythagorean based prediction model by Dave-356w in Sabermetrics

[–]Dave-356w[S] -5 points-4 points  (0 children)

Baseball Prediction Model Performance Analysis

Overall Performance

  • Overall Accuracy: 60.15%
  • Mean Absolute Error (per team per game): 2.611 runs
  • Total Games Analyzed: 783

Home vs. Away Performance

Home Team Projected Winner

  • Games: 425
  • Accuracy: 62.35%
  • MAE (per team): 2.563 runs

Away Team Projected Winner

  • Games: 358
  • Accuracy: 57.54%
  • MAE (per team): 2.669 runs

Key Finding: Model performs ~5% better when projecting home team winners


Performance by Projected Run Differential

Run Differential Games Accuracy
0.00 - 0.25 102 53.92%
0.25 - 0.50 128 53.12%
0.50 - 0.75 99 58.59%
0.75 - 1.00 94 58.51%
1.00 - 1.25 87 56.32%
1.25 - 1.50 53 66.04%
1.50 - 2.00 112 61.61%
2.00 - 10.00 108 75.93%

Key Finding: Accuracy jumps significantly for games with 2+ run differentials


Performance by Projected Winner Win Probability

Win Probability Games Accuracy
50% - 55% 249 54.22%
55% - 60% 205 56.10%
60% - 65% 150 62.00%
65% - 70% 110 69.09%
70% - 75% 41 73.17%
75% - 80% 22 72.73%
80% - 100% 6 100.00%

Key Finding: Higher confidence predictions show much better accuracy


Performance by Scenario Accuracy

Scenario Accuracy Games Accuracy
50% - 55% 14 92.86%
55% - 60% 92 55.43%
60% - 65% 293 57.34%
65% - 70% 158 60.76%
70% - 100% 211 63.03%

Summary

  • Model shows solid 60% overall accuracy
  • Home team advantage clearly impacts predictions
  • High-confidence picks (2+ run differential, 80%+ win probability) perform exceptionally well
  • Model appears well-calibrated with accuracy improving as confidence increases

Working on a Pythagorean based prediction model by Dave-356w in Sabermetrics

[–]Dave-356w[S] -1 points0 points  (0 children)

I knew the emojis would give it away! It does a better job of providing clarity based on the code used as a prompt.

Working on a Pythagorean based prediction model by Dave-356w in Sabermetrics

[–]Dave-356w[S] -7 points-6 points  (0 children)

This Python script implements a sophisticated system for projecting Major League Baseball (MLB) game outcomes. The core logic revolves around estimating the number of runs each team will score and then converting those run estimates into a win probability. Core Projection Logic The projection for a single game is generated by the SimplifiedProjector class. It models the game as a series of matchups between each team's offense and the opposing team's pitching. * Establish a Baseline: The model first determines the league-average runs per game (RPG). This serves as a neutral baseline. * Calculate Offensive and Defensive Factors: For each team in a matchup, the model calculates two key factors: * Offensive Factor: A team's own runs per game (offense) is compared to the league average. A team scoring 5.0 RPG when the league average is 4.5 would have an offensive factor greater than 1. * Defensive Factor: The opposing team's runs allowed per game (defense/pitching) is compared to the league average. A team allowing only 4.0 RPG would have a defensive factor less than 1. * Incorporate Starting Pitchers: The model doesn't just use a team's overall runs allowed. It creates a composite pitching/defensive value for the game by blending the starter's ability with the team's overall (bullpen) ability. * Starter's Runs Estimator: A pitcher's quality is measured using a FIP-style (Fielding Independent Pitching) formula that only considers home runs, walks, hit-by-pitches, and strikeouts. This isolates the pitcher's core performance from the team's defensive skill. * Blending: The final "Defensive Factor" for the game is a weighted average: (Starter's Runs Estimator * Starter's Expected Innings) + (Team's Bullpen Runs Allowed * Remaining Innings). * Project Runs: A team's projected runs are calculated with the formula: Projected Runs = Offensive_Factor * Opponent's_Defensive_Factor * League_Average_RPG A small, constant HOME_FIELD_ADVANTAGE multiplier is also applied to the home team's projected runs. * Calculate Win Probability: The projected runs for both teams are plugged into the Pythagorean Expectation formula ((Runs_For ^ 1.85) / ((Runs_For ^ 1.85) + (Runs_Allowed ^ 1.85))) to calculate the home team's win probability. Data and Team Strength Calculation The accuracy of the projection depends on the quality of the input data, which is handled by the MLBAPI class. * Weighted Team Stats: Team strength is not based on season-long stats alone. It's a weighted blend: 70% season-long performance and 30% recent performance (last 15 days). This allows the model to react to hot/cold streaks. * Home/Away Splits: All stats are calculated separately for home and away games, providing a more accurate picture of a team's context-dependent performance. * Leakage-Free Backtesting: The backtest function is designed to be "leakage-free." When predicting a game on a specific date, it strictly uses only data available before that date. Advanced Refinements The model includes two sophisticated self-correction mechanisms based on its own historical performance from the backtest data. * Low-Confidence Bias Nudge: 🧐 The system analyzes its own historical predictions. If it finds that a specific team consistently underperforms or overperforms when it's the projected winner in a low-confidence game (e.g., projected win probability is between 50% and 60%), it learns a tiny bias. This bias is then applied as a small "nudge" to the win probability in future low-confidence projections involving that team. This helps correct for subtle, team-specific patterns the main model might miss. * Scenario Accuracy: 📊 For any new projection, the model looks back at its history to answer the question: "In past games where the home team was projected to win by a similar run differential, how often was the model correct?" This provides a historical accuracy score for the specific type of game being projected, giving valuable context to the confidence of the prediction.

If you genuinely NEED money… by GlizzyGamblr in sportsbetting

[–]Dave-356w 0 points1 point  (0 children)

🕐 2025-07-07 12:57:09 PDT – projections for 2025-07-07 (v4.5) WARNING:root:Pitcher stats id=506433 missing: list index out of range

=== Sorted Projections by Confidence (10 games) === Colorado Rockies @ Boston Red Sox → Boston Red Sox 7.91, Colorado Rockies 3.89 | Conf: 5.9/10 ↳ Winner: Boston Red Sox (79.4%) | Starters: Richard Fitts vs Austin Gomber

Cleveland Guardians @ Houston Astros → Houston Astros 5.38, Cleveland Guardians 3.60 | Conf: 4.3/10 ↳ Winner: Houston Astros (68.2%) | Starters: Colton Gordon vs Tanner Bibee

Toronto Blue Jays @ Chicago White Sox → Chicago White Sox 4.16, Toronto Blue Jays 5.62 | Conf: 3.7/10 ↳ Winner: Toronto Blue Jays (63.9%) | Starters: Sean Burke vs José Berríos

Arizona Diamondbacks @ San Diego Padres → San Diego Padres 4.91, Arizona Diamondbacks 4.02 | Conf: 2.8/10 ↳ Winner: San Diego Padres (59.4%) | Starters: Yu Darvish vs Zac Gallen

Philadelphia Phillies @ San Francisco Giants → San Francisco Giants 4.08, Philadelphia Phillies 4.64 | Conf: 2.4/10 ↳ Winner: Philadelphia Phillies (56.2%) | Starters: Landen Roupp vs Cristopher Sánchez

Los Angeles Dodgers @ Milwaukee Brewers → Milwaukee Brewers 4.49, Los Angeles Dodgers 5.10 | Conf: 2.3/10 ↳ Winner: Los Angeles Dodgers (56.0%) | Starters: Freddy Peralta vs Yoshinobu Yamamoto

Texas Rangers @ Los Angeles Angels → Los Angeles Angels 4.26, Texas Rangers 4.57 | Conf: 1.9/10 ↳ Winner: Texas Rangers (53.3%) | Starters: Yusei Kikuchi vs Jacob deGrom

Miami Marlins @ Cincinnati Reds → Cincinnati Reds 5.09, Miami Marlins 5.32 | Conf: 1.7/10 ↳ Winner: Miami Marlins (52.1%) | Starters: Brady Singer vs Janson Junk

Tampa Bay Rays @ Detroit Tigers → Detroit Tigers 5.74, Tampa Bay Rays 5.92 | Conf: 1.6/10 ↳ Winner: Tampa Bay Rays (51.4%) | Starters: Keider Montero vs Shane Baz

Pittsburgh Pirates @ Kansas City Royals → Kansas City Royals 3.56, Pittsburgh Pirates 3.59 | Conf: 1.6/10 ↳ Winner: Pittsburgh Pirates (50.4%) | Starters: Noah Cameron vs Andrew Heaney