{ "cells": [ { "cell_type": "markdown", "id": "3a398f19", "metadata": {}, "source": [ "# 2007 / 2008\n", "\n", "Progress points for the Premier League 2007 / 2008 season." ] }, { "cell_type": "code", "execution_count": 1, "id": "8cbd58d9", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:50.493160Z", "iopub.status.busy": "2024-12-24T00:22:50.492874Z", "iopub.status.idle": "2024-12-24T00:22:50.723954Z", "shell.execute_reply": "2024-12-24T00:22:50.723672Z" } }, "outputs": [], "source": [ "%config InlineBackend.figure_formats = ['svg']\n", "from proggyleg import proggyleg\n", "year = 2007\n", "league = \"E0\"" ] }, { "cell_type": "markdown", "id": "138d0371", "metadata": {}, "source": [ "## Cumulative Points\n", "\n", "The sum of points up to a given game played." ] }, { "cell_type": "code", "execution_count": 2, "id": "7f4e0e33", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:50.725755Z", "iopub.status.busy": "2024-12-24T00:22:50.725638Z", "iopub.status.idle": "2024-12-24T00:22:52.310463Z", "shell.execute_reply": "2024-12-24T00:22:52.310187Z" } }, "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": "2eb6011d", "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": "57be4ec0", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:52.312955Z", "iopub.status.busy": "2024-12-24T00:22:52.312868Z", "iopub.status.idle": "2024-12-24T00:22:52.443334Z", "shell.execute_reply": "2024-12-24T00:22:52.443080Z" } }, "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": "5e7050a7", "metadata": {}, "source": [ "## Position" ] }, { "cell_type": "code", "execution_count": 4, "id": "15ffc0ea", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:52.445570Z", "iopub.status.busy": "2024-12-24T00:22:52.445461Z", "iopub.status.idle": "2024-12-24T00:22:52.538534Z", "shell.execute_reply": "2024-12-24T00:22:52.538248Z" } }, "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": "b6931973", "metadata": {}, "source": [ "## Rolling Form\n", "\n", "Exponential weighted moving average of points won per game." ] }, { "cell_type": "code", "execution_count": 5, "id": "c702fb02", "metadata": { "execution": { "iopub.execute_input": "2024-12-24T00:22:52.540357Z", "iopub.status.busy": "2024-12-24T00:22:52.540233Z", "iopub.status.idle": "2024-12-24T00:22:52.656289Z", "shell.execute_reply": "2024-12-24T00:22:52.656053Z" } }, "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 }