{ "cells": [ { "cell_type": "markdown", "id": "99cde146", "metadata": {}, "source": [ "# 2003 / 2004\n", "\n", "Progress points for the Bundesliga 2003 / 2004 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "aaa2da3e", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:37.392495Z", "iopub.status.busy": "2024-12-24T00:25:37.392324Z", "iopub.status.idle": "2024-12-24T00:25:37.602952Z", "shell.execute_reply": "2024-12-24T00:25:37.602616Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2003\n", "league = \"D1\"" ] }, { "cell_type": "markdown", "id": "0a4868fb", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "938fadaa", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:37.604781Z", "iopub.status.busy": "2024-12-24T00:25:37.604657Z", "iopub.status.idle": "2024-12-24T00:25:39.054640Z", "shell.execute_reply": "2024-12-24T00:25:39.054367Z" } }, "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": "692fa063", "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": "f305d514", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:39.057208Z", "iopub.status.busy": "2024-12-24T00:25:39.057100Z", "iopub.status.idle": "2024-12-24T00:25:39.158859Z", "shell.execute_reply": "2024-12-24T00:25:39.158577Z" } }, "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": "c1f61fbe", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "6bddf1f5", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:39.160985Z", "iopub.status.busy": "2024-12-24T00:25:39.160885Z", "iopub.status.idle": "2024-12-24T00:25:39.268553Z", "shell.execute_reply": "2024-12-24T00:25:39.268257Z" } }, "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": "3f826467", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "8fb1872d", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:25:39.270492Z", "iopub.status.busy": "2024-12-24T00:25:39.270377Z", "iopub.status.idle": "2024-12-24T00:25:39.375598Z", "shell.execute_reply": "2024-12-24T00:25:39.375315Z" } }, "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 }