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
A Poisson Look at the NHL 2025-26 Season
Are hockey goals random? Using all 1,312 games of the 2025–26 NHL regular season, I tested whether goals per team follow a Poisson distribution. I estimated the scoring rate with maximum likelihood, checked the fit with a chi-square goodness-of-fit test, and compared home and away scoring. Goals per team matched the Poisson model well (mean ≈ variance, p = 0.061), and home teams held a small edge of 0.13 goals per game. The biggest finding came from where the model failed: it predicted 16.6% of games would be tied after regulation, but 24.8% actually were. That gap shows teams react to the score. I then repeated the analysis on the 2023–24 and 2024–25 seasons. The Poisson model held up every year, and tied games beat the model by 4–8 points every season. Built in R with ggplot2, Plotly and ioslides.
Grafica IDF
Grafica de mis datos IDF reales, una vez aplicado el la exponensial para regresar a su tendencia actual.
Plano_IDF_Idealizado
Grafica de la clase de Hidraulica usando datos idealos para las curvas de intensidad - duracion - frecuencia.
Encuesta Origen-Destino de Cali- orígenes y destinos por modo
Este documento analiza la Encuesta Origen-Destino utilizando exclusivamente los desplazamientos realizados dentro de Santiago de Cali. El criterio de inclusión exige:
1. Municipio de origen = `CALI`.
2. Municipio de destino = `CALI`.
3. Comuna de origen entre 01 y 22.
4. Comuna de destino entre 01 y 22.
En el análisis se construyeron 8 mapas:
- 1 mapa general de orígenes.
- 3 mapas de orígenes: bicicleta, motocicleta y automóvil.
- 1 mapa general de destinos.
- 3 mapas de destinos: bicicleta, motocicleta y automóvil.
Los mapas utilizan la cartografía de comunas suministrada para el desarrollo de este ejercicio.