Skip to content

Commit

Permalink
new commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chadallison committed Aug 21, 2024
1 parent 66ec0b2 commit 27b40dc
Show file tree
Hide file tree
Showing 28 changed files with 112 additions and 67 deletions.
134 changes: 67 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ interpretability.

### Yesterday’s Largest Victories

1. Arizona Diamondbacks def. Miami Marlins 9-6
2. Cincinnati Reds def. Toronto Blue Jays 6-3
3. Oakland Athletics def. Tampa Bay Rays 3-0
1. Toronto Blue Jays def. Cincinnati Reds 10-3
2. Cleveland Guardians def. New York Yankees 9-5
3. Baltimore Orioles def. New York Mets 9-5

------------------------------------------------------------------------

Expand All @@ -132,20 +132,20 @@ interpretability.

##### Most Volatile Teams

1. Oakland Athletics (6.78)
1. Oakland Athletics (6.79)
2. Colorado Rockies (6.74)
3. Arizona Diamondbacks (6.72)

##### Most Volatile Offenses

1. Arizona Diamondbacks (3.61)
2. Oakland Athletics (3.6)
3. Minnesota Twins (3.41)
2. Oakland Athletics (3.61)
3. Minnesota Twins (3.4)

##### Most Volatile Defenses

1. Colorado Rockies (3.42)
2. Boston Red Sox (3.33)
1. Colorado Rockies (3.43)
2. Boston Red Sox (3.31)
3. Atlanta Braves (3.27)

------------------------------------------------------------------------
Expand All @@ -170,16 +170,16 @@ interpretability.

### Best Records in Last Ten Games

1. Houston Astros (9-1)
1. Houston Astros (8-2)
2. Arizona Diamondbacks (7-3)
3. Kansas City Royals (7-3)
3. Atlanta Braves (7-3)
4. Los Angeles Dodgers (7-3)
5. Milwaukee Brewers (7-3)
6. Oakland Athletics (7-3)
7. San Diego Padres (7-3)
8. Atlanta Braves (6-4)
9. Chicago Cubs (6-4)
10. Detroit Tigers (6-4)
6. San Diego Padres (7-3)
7. Chicago Cubs (6-4)
8. Cleveland Guardians (6-4)
9. Detroit Tigers (6-4)
10. Kansas City Royals (6-4)

------------------------------------------------------------------------

Expand All @@ -201,26 +201,26 @@ interpretability.

##### Most Home-Dependent Teams

- Colorado Rockies (46.8% home / 27% away)
- Seattle Mariners (58.7% home / 42.9% away)
- San Francisco Giants (57.8% home / 42.9% away)
- Colorado Rockies (46.8% home / 28.1% away)
- Seattle Mariners (58.7% home / 42.2% away)
- San Francisco Giants (58.5% home / 42.9% away)

##### Better-on-the-Road Teams

- Boston Red Sox (47.5% home / 57.1% away)
- New York Yankees (53.4% home / 62.1% away)
- San Diego Padres (54% home / 58.7% away)
- Boston Red Sox (47.5% home / 57.8% away)
- New York Yankees (52.5% home / 62.1% away)
- Los Angeles Angels (40.3% home / 45.8% away)

------------------------------------------------------------------------

### Winning and Losing Streaks

- **Winning Streaks**: Kansas City Royals (W5), Milwaukee Brewers (W5),
Houston Astros (W3), Atlanta Braves (W2), Detroit Tigers (W2), Los
Angeles Dodgers (W2), San Francisco Giants (W2), Texas Rangers (W2)
- **Losing Streaks**: Chicago White Sox (L3), Cleveland Guardians (L3),
Los Angeles Angels (L3), Boston Red Sox (L2), Minnesota Twins (L2),
New York Yankees (L2), Pittsburgh Pirates (L2)
- **Winning Streaks**: Milwaukee Brewers (W6), Atlanta Braves (W3), Los
Angeles Dodgers (W3), San Francisco Giants (W3), Arizona Diamondbacks
(W2), Colorado Rockies (W2), San Diego Padres (W2)
- **Losing Streaks**: Chicago White Sox (L4), Minnesota Twins (L3), New
York Yankees (L3), Miami Marlins (L2), Philadelphia Phillies (L2),
Seattle Mariners (L2), St. Louis Cardinals (L2)

<!-- ___ -->
<!-- ### Day of Week Results -->
Expand Down Expand Up @@ -280,19 +280,19 @@ interpretability.

##### Longest Streaks of Scoring Three or More Runs

- Kansas City Royals (23)
- Colorado Rockies (9)
- Minnesota Twins (5)
- Philadelphia Phillies (5)
- Pittsburgh Pirates (4)
- Kansas City Royals (24)
- Colorado Rockies (10)
- Minnesota Twins (6)
- Pittsburgh Pirates (5)
- Arizona Diamondbacks (3)

##### Longest Streaks of Allowing Fewer Than Five Runs

- Detroit Tigers (13)
- Kansas City Royals (5)
- Milwaukee Brewers (5)
- New York Yankees (5)
- New York Mets (4)
- Detroit Tigers (14)
- Milwaukee Brewers (6)
- San Francisco Giants (5)
- Atlanta Braves (4)
- Oakland Athletics (4)

------------------------------------------------------------------------

Expand Down Expand Up @@ -331,36 +331,36 @@ data.frame(team = all_teams) |>
```

## team last25
## 1 Arizona Diamondbacks 1.920
## 2 San Diego Padres 1.878
## 3 Kansas City Royals 0.980
## 4 San Francisco Giants 0.864
## 5 Minnesota Twins 0.734
## 6 Chicago Cubs 0.620
## 7 Milwaukee Brewers 0.504
## 8 Tampa Bay Rays 0.493
## 9 New York Mets 0.386
## 10 Houston Astros 0.300
## 11 Detroit Tigers 0.210
## 12 Miami Marlins 0.137
## 13 Oakland Athletics 0.066
## 14 Seattle Mariners 0.028
## 15 Los Angeles Dodgers 0.002
## 16 Toronto Blue Jays 0.000
## 17 Cleveland Guardians -0.077
## 18 New York Yankees -0.106
## 19 Cincinnati Reds -0.115
## 20 Baltimore Orioles -0.241
## 21 Los Angeles Angels -0.248
## 22 Colorado Rockies -0.403
## 23 Boston Red Sox -0.452
## 24 Atlanta Braves -0.505
## 25 Pittsburgh Pirates -0.519
## 26 Philadelphia Phillies -0.687
## 27 St. Louis Cardinals -0.977
## 28 Washington Nationals -1.158
## 29 Texas Rangers -1.229
## 30 Chicago White Sox -1.626
## 1 San Diego Padres 1.913
## 2 Arizona Diamondbacks 1.789
## 3 Tampa Bay Rays 0.819
## 4 San Francisco Giants 0.710
## 5 Chicago Cubs 0.645
## 6 Minnesota Twins 0.610
## 7 Milwaukee Brewers 0.605
## 8 Kansas City Royals 0.568
## 9 Houston Astros 0.448
## 10 Oakland Athletics 0.165
## 11 Toronto Blue Jays 0.144
## 12 Cleveland Guardians 0.045
## 13 Seattle Mariners 0.032
## 14 Los Angeles Dodgers 0.001
## 15 Miami Marlins -0.066
## 16 Baltimore Orioles -0.094
## 17 New York Mets -0.120
## 18 Detroit Tigers -0.124
## 19 New York Yankees -0.144
## 20 Atlanta Braves -0.214
## 21 Los Angeles Angels -0.256
## 22 Colorado Rockies -0.384
## 23 Pittsburgh Pirates -0.402
## 24 Cincinnati Reds -0.495
## 25 Philadelphia Phillies -0.558
## 26 Boston Red Sox -0.623
## 27 St. Louis Cardinals -0.963
## 28 Washington Nationals -1.105
## 29 Texas Rangers -1.656
## 30 Chicago White Sox -1.709

------------------------------------------------------------------------

Expand Down
Binary file modified README_files/figure-gfm/unnamed-chunk-10-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-12-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-14-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-15-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-16-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-19-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-20-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-22-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-25-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-26-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-27-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-28-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-29-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-30-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-31-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-34-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-35-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-36-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-38-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-6-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-7-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-8-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README_files/figure-gfm/unnamed-chunk-9-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions data/end_games.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1871,3 +1871,18 @@ date,game_pk,away_score,away_team,home_team,home_score,win_team,lose_team,win_sc
2024-08-19,745380,3,Minnesota Twins,San Diego Padres,5,San Diego Padres,Minnesota Twins,5,3
2024-08-19,745294,3,Chicago White Sox,San Francisco Giants,5,San Francisco Giants,Chicago White Sox,5,3
2024-08-19,746109,0,Seattle Mariners,Los Angeles Dodgers,3,Los Angeles Dodgers,Seattle Mariners,3,0
2024-08-20,746029,3,Arizona Diamondbacks,Miami Marlins,1,Arizona Diamondbacks,Miami Marlins,3,1
2024-08-20,744814,3,Colorado Rockies,Washington Nationals,1,Colorado Rockies,Washington Nationals,3,1
2024-08-20,745707,9,Cleveland Guardians,New York Yankees,5,Cleveland Guardians,New York Yankees,9,5
2024-08-20,744896,3,Cincinnati Reds,Toronto Blue Jays,10,Toronto Blue Jays,Cincinnati Reds,10,3
2024-08-20,745782,9,Baltimore Orioles,New York Mets,5,Baltimore Orioles,New York Mets,9,5
2024-08-20,747083,1,Philadelphia Phillies,Atlanta Braves,3,Atlanta Braves,Philadelphia Phillies,3,1
2024-08-20,745136,3,Milwaukee Brewers,St. Louis Cardinals,2,Milwaukee Brewers,St. Louis Cardinals,3,2
2024-08-20,746839,1,Detroit Tigers,Chicago Cubs,3,Chicago Cubs,Detroit Tigers,3,1
2024-08-20,744978,4,Pittsburgh Pirates,Texas Rangers,0,Pittsburgh Pirates,Texas Rangers,4,0
2024-08-20,746349,6,Boston Red Sox,Houston Astros,5,Boston Red Sox,Houston Astros,6,5
2024-08-20,746266,9,Los Angeles Angels,Kansas City Royals,5,Los Angeles Angels,Kansas City Royals,9,5
2024-08-20,745624,1,Tampa Bay Rays,Oakland Athletics,0,Tampa Bay Rays,Oakland Athletics,1,0
2024-08-20,745374,5,Minnesota Twins,San Diego Padres,7,San Diego Padres,Minnesota Twins,7,5
2024-08-20,745295,1,Chicago White Sox,San Francisco Giants,4,San Francisco Giants,Chicago White Sox,4,1
2024-08-20,746107,3,Seattle Mariners,Los Angeles Dodgers,6,Los Angeles Dodgers,Seattle Mariners,6,3
15 changes: 15 additions & 0 deletions data/first_inning_scores.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1870,3 +1870,18 @@ game_pk,home_team,away_team,home_flg,away_flg
745380,San Diego Padres,Minnesota Twins,1,1
745294,San Francisco Giants,Chicago White Sox,0,0
746109,Los Angeles Dodgers,Seattle Mariners,0,0
746029,Miami Marlins,Arizona Diamondbacks,0,1
744814,Washington Nationals,Colorado Rockies,0,1
745707,New York Yankees,Cleveland Guardians,1,0
744896,Toronto Blue Jays,Cincinnati Reds,1,0
745782,New York Mets,Baltimore Orioles,0,1
747083,Atlanta Braves,Philadelphia Phillies,0,0
745136,St. Louis Cardinals,Milwaukee Brewers,0,0
746839,Chicago Cubs,Detroit Tigers,0,0
744978,Texas Rangers,Pittsburgh Pirates,0,0
746349,Houston Astros,Boston Red Sox,1,1
746266,Kansas City Royals,Los Angeles Angels,0,0
745624,Oakland Athletics,Tampa Bay Rays,0,0
745374,San Diego Padres,Minnesota Twins,0,0
745295,San Francisco Giants,Chicago White Sox,0,0
746107,Los Angeles Dodgers,Seattle Mariners,0,1
15 changes: 15 additions & 0 deletions data/first_scorers.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1871,3 +1871,18 @@ date,game_pk,away_score,away_team,home_team,home_score,win_team,lose_team,win_sc
2024-08-19,745380,3,Minnesota Twins,San Diego Padres,5,San Diego Padres,Minnesota Twins,5,3,Minnesota Twins
2024-08-19,745294,3,Chicago White Sox,San Francisco Giants,5,San Francisco Giants,Chicago White Sox,5,3,Chicago White Sox
2024-08-19,746109,0,Seattle Mariners,Los Angeles Dodgers,3,Los Angeles Dodgers,Seattle Mariners,3,0,Los Angeles Dodgers
2024-08-20,746029,3,Arizona Diamondbacks,Miami Marlins,1,Arizona Diamondbacks,Miami Marlins,3,1,Arizona Diamondbacks
2024-08-20,744814,3,Colorado Rockies,Washington Nationals,1,Colorado Rockies,Washington Nationals,3,1,Colorado Rockies
2024-08-20,745707,9,Cleveland Guardians,New York Yankees,5,Cleveland Guardians,New York Yankees,9,5,New York Yankees
2024-08-20,744896,3,Cincinnati Reds,Toronto Blue Jays,10,Toronto Blue Jays,Cincinnati Reds,10,3,Toronto Blue Jays
2024-08-20,745782,9,Baltimore Orioles,New York Mets,5,Baltimore Orioles,New York Mets,9,5,Baltimore Orioles
2024-08-20,747083,1,Philadelphia Phillies,Atlanta Braves,3,Atlanta Braves,Philadelphia Phillies,3,1,Atlanta Braves
2024-08-20,745136,3,Milwaukee Brewers,St. Louis Cardinals,2,Milwaukee Brewers,St. Louis Cardinals,3,2,Milwaukee Brewers
2024-08-20,746839,1,Detroit Tigers,Chicago Cubs,3,Chicago Cubs,Detroit Tigers,3,1,Detroit Tigers
2024-08-20,744978,4,Pittsburgh Pirates,Texas Rangers,0,Pittsburgh Pirates,Texas Rangers,4,0,Pittsburgh Pirates
2024-08-20,746349,6,Boston Red Sox,Houston Astros,5,Boston Red Sox,Houston Astros,6,5,Boston Red Sox
2024-08-20,746266,9,Los Angeles Angels,Kansas City Royals,5,Los Angeles Angels,Kansas City Royals,9,5,Los Angeles Angels
2024-08-20,745624,1,Tampa Bay Rays,Oakland Athletics,0,Tampa Bay Rays,Oakland Athletics,1,0,Tampa Bay Rays
2024-08-20,745374,5,Minnesota Twins,San Diego Padres,7,San Diego Padres,Minnesota Twins,7,5,San Diego Padres
2024-08-20,745295,1,Chicago White Sox,San Francisco Giants,4,San Francisco Giants,Chicago White Sox,4,1,San Francisco Giants
2024-08-20,746107,3,Seattle Mariners,Los Angeles Dodgers,6,Los Angeles Dodgers,Seattle Mariners,6,3,Seattle Mariners

0 comments on commit 27b40dc

Please sign in to comment.