{ "cells": [ { "cell_type": "markdown", "id": "04bff9cf", "metadata": {}, "source": [ "# 2002 / 2003\n", "\n", "Progress points for the Bundesliga 2002 / 2003 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "cea95449", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:33.898928Z", "iopub.status.busy": "2024-12-24T00:25:33.898595Z", "iopub.status.idle": "2024-12-24T00:25:34.122043Z", "shell.execute_reply": "2024-12-24T00:25:34.121750Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2002\n", "league = \"D1\"" ] }, { "cell_type": "markdown", "id": "e1c803a6", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "7547e42d", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:34.123766Z", "iopub.status.busy": "2024-12-24T00:25:34.123660Z", "iopub.status.idle": "2024-12-24T00:25:35.457618Z", "shell.execute_reply": "2024-12-24T00:25:35.457329Z" } }, "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": "5ebe3489", "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": "9b557edd", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:35.460122Z", "iopub.status.busy": "2024-12-24T00:25:35.460034Z", "iopub.status.idle": "2024-12-24T00:25:35.561149Z", "shell.execute_reply": "2024-12-24T00:25:35.560882Z" } }, "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": "bb003e4a", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "659a424f", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:35.562903Z", "iopub.status.busy": "2024-12-24T00:25:35.562808Z", "iopub.status.idle": "2024-12-24T00:25:35.670423Z", "shell.execute_reply": "2024-12-24T00:25:35.670141Z" } }, "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": "f304d481", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "24942bb2", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:35.672276Z", "iopub.status.busy": "2024-12-24T00:25:35.672166Z", "iopub.status.idle": "2024-12-24T00:25:35.779241Z", "shell.execute_reply": "2024-12-24T00:25:35.778976Z" } }, "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 }