Skip to content

Instantly share code, notes, and snippets.

View MathScouter's full-sized avatar

MathScouter MathScouter

View GitHub Profile

📊 MLB 2025 Pitcher Dominance Analysis Dataset

📝 Overview

このデータセットは、MLB投手を対象に、投手の支配力を「物理的な球威(RSI)」と「確率的な空振り奪取能力(Whiff%)」の両面から分析するために作成されました。データはMLB公式サイト(Baseball Savant / Statcast)の厳密な定義に基づき算出されています。


🧪 Key Metrics (主要指標)

1. RSI (Relative Stuff Index)

We can't make this file beautiful and searchable because it's too large.
year,player_name,pitch_type,RSI,avg_pitch_speed,hit_count,Swings,total_misses,total_pitches,Whiff%,DI,Grade,V-eff
2021,"Clase, Emmanuel",FC,0.9930173182504968,100.52666666666669,15,390,116,731,29.743589743589745,111.47272290583086,A,1.1089
2021,"Graterol, Brusdar",SI,0.988346845783638,99.83636363636364,11,165,23,307,13.93939393939394,102.02293840335096,A,1.0219
2021,"Cabrera, Génesis",SI,0.9877722228556132,97.925,8,117,18,228,15.384615384615383,102.81792031324343,A,1.05
2021,"deGrom, Jacob",FF,0.9841947944684304,99.21666666666664,24,378,114,704,30.15873015873016,111.1033775640113,A,1.1198
2021,"Alvarado, José",SI,0.9837035061824604,99.55416666666667,24,322,83,807,25.77639751552795,108.538547019504,A,1.0902
2021,"Coonrod, Sam",SI,0.982471754384738,97.88888888888889,9,190,25,381,13.157894736842104,101.16599052887324,A,1.0335
2021,"Coonrod, Sam",FF,0.9820438091689528,98.56666666666666,3,86,38,141,44.18604651162791,119.05601954672632,B,1.2079
2021,"Abreu, Albert",FF,0.9795060949405956,97.66666666666669,3,52,11,10
import streamlit as st
from pybaseball import playerid_lookup, statcast_pitcher
import plotly.graph_objects as go
from plotly.subplots import make_subplots
import pandas as pd
import numpy as np
# 画面設定
st.set_page_config(page_title="RSI QUANT ANALYZER", layout="wide")