{ "cells": [ { "cell_type": "markdown", "id": "cf098f75", "metadata": {}, "source": [ "# 2013 / 2014\n", "\n", "Progress points for the Bundesliga 2013 / 2014 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "0ba1027d", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:14.665560Z", "iopub.status.busy": "2024-12-24T00:26:14.665360Z", "iopub.status.idle": "2024-12-24T00:26:14.883095Z", "shell.execute_reply": "2024-12-24T00:26:14.882706Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2013\n", "league = \"D1\"" ] }, { "cell_type": "markdown", "id": "8348b6c1", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "a614ec6e", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:14.884995Z", "iopub.status.busy": "2024-12-24T00:26:14.884867Z", "iopub.status.idle": "2024-12-24T00:26:16.285300Z", "shell.execute_reply": "2024-12-24T00:26:16.284961Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Braunschweig\n" ] }, { "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": "faf60cd5", "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": "2bd1b379", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:16.287283Z", "iopub.status.busy": "2024-12-24T00:26:16.287192Z", "iopub.status.idle": "2024-12-24T00:26:16.387669Z", "shell.execute_reply": "2024-12-24T00:26:16.387383Z" } }, "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": "e64e396a", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "f97be1fe", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:16.389610Z", "iopub.status.busy": "2024-12-24T00:26:16.389510Z", "iopub.status.idle": "2024-12-24T00:26:16.495573Z", "shell.execute_reply": "2024-12-24T00:26:16.495281Z" } }, "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": "9defd3cf", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "6156924e", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:26:16.497713Z", "iopub.status.busy": "2024-12-24T00:26:16.497607Z", "iopub.status.idle": "2024-12-24T00:26:16.602946Z", "shell.execute_reply": "2024-12-24T00:26:16.602688Z" } }, "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 }