RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post

Easy web publishing from R

Write R Markdown documents in RStudio.
Share them here on RPubs. (It’s free, and couldn’t be simpler!)

Get Started

Recently Published

Dodgers night game
Solucionario de ejercicios de probabilidad condicional, independencia y teorema de Bayes
30 ejercicios de nivel avanzado de probabilidad condicional, regla de multiplicación, independencia, probabilidad total y teorema de Bayes, resueltos paso a paso. Cada ejercicio incluye su verificación en R (cálculo exacto, enumeración y simulación). Curso de Probabilidades, MSc. Jeel Cueva.
Lab 1
HTML
Sankey_Crem_incmissing
Discussion 6
What makes a team win? Using logisitc regression to analyse soccer matches
Soccer matches produce a range of statistics that can help us understand team performance. But which statistics are most strongly associated with actually winning a match? We will use logistic regression to investigate whether shots and shots on target are associated with the probability of a team winning.
Building an expected goal (xG) model
Expected Goals (xG) is a commonly used metric in soccer analytics that estimates the probability of a shot resulting in a goal. An xG value ranges between 0 and 1. For example, an xG value of 0.10 represents approximately a 10% probability of scoring, while an xG value of 0.70 represents approximately a 70% probability. We will build a simple expected goals model using logistic regression.
Document
Dodgers Data