Recently Published
Uniform Distribution: Moment Generating Function
This R script is a hands-on guide to the Moment Generating Function (MGF) of the Discrete Uniform Distribution. It defines a custom function, uniform_mgf, to calculate the MGF for any discrete uniform random variable. The code then uses this function to demonstrate a powerful application: approximating the distribution's mean and variance by taking numerical derivatives of the MGF evaluated at t=0.
The script also provides two informative plots to visualize these concepts. The first plot displays the MGF for different distributions (e.g., a 6-sided die, a 10-sided die, etc.), showing how the function's curve changes with the number of possible outcomes. The second plot illustrates the fundamental relationship between the number of outcomes and the key moments of the distribution, clearly showing that the mean grows linearly, while the variance increases quadratically. This visualization effectively reinforces the theoretical properties of the discrete uniform distribution discussed in the blog post.
Document
Grad and Pro School 2025 Aptitude Test Results
MAPA DE ALTITUD DEL DEPARTAMENTO DE ANCASH
mapa del departamento de ancash
Actividad 2 - Modelo de Regresión Lineal Múltiple
Análisis del precio de vivienda en Cali: filtro y mapa (leaflet), EDA interactivo (plotly), modelo MCO (precio ~ área + estrato + habitaciones + parqueaderos + baños), validación de supuestos, predicciones y selección de ofertas para dos solicitudes (Casa ≤350 M y Apartamento ≤850 M). Incluye tablas, intervalos e ideas de mejora (EE robustos, log, no linealidades, variables espaciales).