{ "cells": [ { "cell_type": "markdown", "id": "10e0f6a0", "metadata": {}, "source": [ "# 2001 / 2002\n", "\n", "Progress points for the Bundesliga 2001 / 2002 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "b8fefc30", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:30.294268Z", "iopub.status.busy": "2024-12-24T00:25:30.294066Z", "iopub.status.idle": "2024-12-24T00:25:30.526944Z", "shell.execute_reply": "2024-12-24T00:25:30.526630Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2001\n", "league = \"D1\"" ] }, { "cell_type": "markdown", "id": "2af14121", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "3527c564", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:30.528798Z", "iopub.status.busy": "2024-12-24T00:25:30.528676Z", "iopub.status.idle": "2024-12-24T00:25:31.881940Z", "shell.execute_reply": "2024-12-24T00:25:31.881631Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"cumulative\");" ] }, { "cell_type": "markdown", "id": "2469fdec", "metadata": {}, "source": [ "## Extrapolated Points\n", "\n", "Final points assuming each team continues to score points at the same rate as they have so far." ] }, { "cell_type": "code", "execution_count": 3, "id": "a1a707f5", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:31.884370Z", "iopub.status.busy": "2024-12-24T00:25:31.884292Z", "iopub.status.idle": "2024-12-24T00:25:31.984454Z", "shell.execute_reply": "2024-12-24T00:25:31.984174Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"extrapolated\");" ] }, { "cell_type": "markdown", "id": "c1ccc4bb", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "3d142a98", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:31.986400Z", "iopub.status.busy": "2024-12-24T00:25:31.986300Z", "iopub.status.idle": "2024-12-24T00:25:32.098821Z", "shell.execute_reply": "2024-12-24T00:25:32.098534Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"position\");" ] }, { "cell_type": "markdown", "id": "4cfb0769", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "7913e55d", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:32.100814Z", "iopub.status.busy": "2024-12-24T00:25:32.100706Z", "iopub.status.idle": "2024-12-24T00:25:32.206947Z", "shell.execute_reply": "2024-12-24T00:25:32.206666Z" } }, "outputs": [ { "data": { "image/svg+xml": [ "" ], "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "proggyleg.autoplot(year, league, which=\"form\");" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3" }, "mystnb": { "execution_mode": "off" } }, "nbformat": 4, "nbformat_minor": 5 }