SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
Japan.R 2019 LT
スポーツ番狂わせの統計学
2019.12.7
窪田 誠
名前 窪田誠(クボタマコト)
所属 小規模ソフトウェアハウス
職種 システムエンジニア
システムコンサルタント
プロジェクトマネージャー
品質管理マネージャー
趣味 R
超ウルトラマラソン
自己紹介
ポケモンスタンプラリーを遺伝的アルゴリズムで攻略する
https://qiita.com/mktkbt/items/4769c77db3e09e27f1fc
2018年7月20日
自己紹介・過去の作品
• きっかけ
ラグビーは番狂わせが起きにくい競技らしい
ワールドカップで日本がアイルランドに勝った、大金星!
(ワールドカップ開催時点でアイルランドはランキング1位、日本は10位)
前回も南アフリカに勝った、ブラントンの奇跡!
本当に番狂わせが起きにくいの?
番狂わせの統計学
• こんなことを調べたい
本当にラグビーは番狂わせが起きにくいの?
番狂わせが起きにくい競技・起きやすい競技は何?
番狂わせが起きにくい条件・起きやすい条件は?
番狂わせの統計学
今ここ
• 番狂わせの定義
予期しない出来事のために物事が順番どおりに
進まなくなること。
また、スポーツの試合などで、実力から予想される
勝敗とは異なる結果になること。
(デジタル大辞泉より)
https://kotobank.jp/word/番狂わせ
番狂わせの定義(辞書的)
• 番狂わせの定義(ここでの)
ランキング1~4位の選手・チームが、
ランキング11位以下の相手に負けること
相撲でいうと、横綱・大関が平幕に負けること
• 番狂わせの確率を求めるには
「試合結果」と「ランキング」で計算
番狂わせの定義(統計的)
• ワールドカップの対戦結果から番狂わせの確率を求める
• 対象のワールドカップ=最近5大会
• 2003年
• 2007年
• 2011年
• 2015年
• 2019年
ラグビーの番狂わせの確率
• https://www.rugbyworldcup.com/matches
ラグビーの番狂わせの確率・対戦結果
• https://www.world.rugby/rankings/mru
ラグビーの番狂わせの確率・ランキング
• スクレイピング
• httr::GET WebページのHTMLファイルを取得
• xml2::read_html HTMLファイルを読み込んでDOMを構成
• rvest::html_nodes DOMから欲しい情報が書かれたノードを特定
• rvest::html_text ノードの文字を取得
• stringr::str_replace 取得した文字を加工
ラグビーの番狂わせの確率・Rの出番
対戦成績 ランキング
ラグビーの番狂わせの確率・スクレイピング結果
Year Team1 Team2 Score1 Score2
2019 RUSSIA JAPAN 10 30
2019 FIJI AUSTRALIA 21 39
2019 ARGENTINA FRANCE 21 23
2019 SOUTH AFRICA NEW ZEALAND 13 23
2019 NAMIBIA ITALY 22 47
2019 SCOTLAND IRELAND 3 27
2019 TONGA ENGLAND 3 35
2019 GEORGIA WALES 14 43
2019 SAMOA RUSSIA 34 9
2019 URUGUAY FIJI 30 27
Year Ranking Team
2019 1 IRELAND
2019 2 NEW ZEALAND
2019 3 ENGLAND
2019 4 SOUTH AFRICA
2019 5 WALES
2019 6 AUSTRALIA
2019 7 SCOTLAND
2019 8 FRANCE
2019 9 FIJI
2019 10 JAPAN
• スクレイピング
• httr::GET WebページのHTMLファイルを取得
• xml2::read_html HTMLファイルを読み込んでDOMを構成
• rvest::html_nodes DOMから欲しい情報が書かれたノードを特定
• rvest::html_text ノードの文字を取得
• stringr::str_replace 取得した文字を加工
• 加工
• dplyr::left_join 試合結果の両チームのランキングを特定
• dplyr::filter ランキング1~4位とランキング11位以下の
対戦を結果を抽出
ラグビーの番狂わせの確率・Rの出番
• dplyr::left_join 、dplyr::filter の結果
ラグビーの番狂わせの確率・Rの出番
Year Team1 Team2 Score1 Score2 Ranking1 Ranking2
2019 ENGLAND TONGA 35 3 3 15
2019 ENGLAND USA 45 7 3 13
2019 SOUTH AFRICA NAMIBIA 57 3 4 23
2019 NEW ZEALAND CANADA 63 0 2 22
2019 IRELAND RUSSIA 35 0 1 20
2019 SOUTH AFRICA ITALY 49 3 4 14
2019 ENGLAND ARGENTINA 39 10 3 11
2019 NEW ZEALAND NAMIBIA 71 9 2 23
2019 SOUTH AFRICA CANADA 66 7 4 22
2019 IRELAND SAMOA 47 5 1 16
ランキング1~4位と同11位以下の対戦数 49回
ランキング1~4位が負けた数 2回
番狂わせの確率 4%
ラグビーの番狂わせの確率
Year Team1 Team2 Score1 Score2 Ranking1 Ranking2
2011 FRANCE TONGA 14 19 4 12
2015 SOUTH AFRICA JAPAN 32 34 3 13
• ワールドカップの対戦結果から番狂わせの確率を求める
• 対象のワールドカップ=最近5大会
• 2002年
• 2006年
• 2010年
• 2014年
• 2018年
サッカーの番狂わせの確率
• https://www.fifa.com/worldcup/matches/
• https://www.fifa.com/fifa-world-ranking/ranking-table/men/
サッカーの番狂わせの確率・対戦結果&ランキング
ランキング1~4位と同11位以下の対戦数 65回
ランキング1~4位が負けた数 12回
番狂わせの確率 18%
サッカーの番狂わせの確率
• 過去10年間の4大大会の3回戦(ベスト32 )以上の
対戦結果から番狂わせの確率を求める
• 全豪
• 全仏
• 全英
• 全米
テニスの番狂わせの確率
• https://www.tennisexplorer.com/
テニスの番狂わせの確率・対戦結果&ランキング
ランキング1~4位と同11位以下の対戦数 260回
ランキング1~4位が負けた数 29回
番狂わせの確率 11%
テニスの番狂わせの確率
• 過去7年間の本場所の対戦結果から番狂わせの確率を求める
(不戦勝は除く)
相撲の番狂わせの確率
• http://www.sumo.or.jp/ResultRikishiDataDaicho/torikumi/
相撲の番狂わせの確率・対戦結果&ランキング
横綱・大関と平幕の対戦数 1533回
横綱・大関が負けた数 366回
番狂わせの確率 24%
相撲の番狂わせの確率
• 番狂わせの確率
競技ごとの番狂わせの確率
0%
5%
10%
15%
20%
25%
30%
ラグビー サッカー テニス 相撲
ラグビーは番狂わせが起きにくい競技だった
• 番狂わせが起きにくい/起きやすい要因(一般論)
番狂わせが起きにくい競技・起きやすい競技
起きにくい要因 例 起きやすい要因 例
得点機が多い
ラグビー
テニス
得点機が少ない
サッカー
相撲
フィジカルが結果に反映
バレーボール
バスケットボール
テクニックが結果に反映
テニス
サッカー
ミスが起きづらい
(主に手を使う)
ラグビー
ハンドボール
ミスが起きやすい
(主に手以外=足・道具を使う)
サッカー
野球 ゴルフ
プレイヤーが多い ラグビー
プレイヤーが少ない
特定のプレイヤーに依存する
テニス 相撲
野球
現在の実力を反映した
ランキングシステム
ラグビー
現在の実力が反映されない
ランキングシステム
バレーボール
サッカー
要因を定量的に分析したい・・・因子分析?
来年はもうちょっと進んだ分析結果を発表したい
(ささやかな願望)
これから
Thank You!
最後に
and
最後に
Enjoy!
最後に

Contenu connexe

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Japan r2019 upset_analysis