{
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {},
      "source": [
        "#"
      ],
      "id": "632076cd-41ec-4f4a-9ef3-222bea6413bd"
    },
    {
      "cell_type": "code",
      "execution_count": 1,
      "metadata": {},
      "outputs": [],
      "source": [
        "import numpy as np\n",
        "import matplotlib.pyplot as plt\n",
        "import scipy as sp"
      ],
      "id": "2b918b40-ce31-4ab8-84e5-0e382c7a9210"
    },
    {
      "cell_type": "code",
      "execution_count": 2,
      "metadata": {},
      "outputs": [],
      "source": [
        "X = sp.stats.norm(loc = 95, scale = 5)"
      ],
      "id": "bbec60b4-1256-49ab-8bc0-79cd2f21f60c"
    },
    {
      "cell_type": "code",
      "execution_count": 3,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "0.6826894921370859"
            ]
          }
        }
      ],
      "source": [
        "# a\n",
        "X.cdf(100) - X.cdf(90)"
      ],
      "id": "e9ff86a5-04da-49d9-9dd5-902c8f76b3b0"
    },
    {
      "cell_type": "code",
      "execution_count": 4,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "0.02275013194817921"
            ]
          }
        }
      ],
      "source": [
        "# b\n",
        "1 - X.cdf(105)"
      ],
      "id": "59c4ea57-8c13-4f23-8dc7-63f73ca23dae"
    },
    {
      "cell_type": "code",
      "execution_count": 5,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "0.001349898031630093"
            ]
          }
        }
      ],
      "source": [
        "# c\n",
        "X.cdf(80)\n"
      ],
      "id": "8b4639cd-7580-4437-973c-670c5f7bd647"
    },
    {
      "cell_type": "code",
      "execution_count": 6,
      "metadata": {},
      "outputs": [
        {
          "output_type": "display_data",
          "metadata": {},
          "data": {
            "text/plain": [
              "104.79981992270027"
            ]
          }
        }
      ],
      "source": [
        "# d\n",
        "X.ppf(.975)"
      ],
      "id": "03e4bfc2-6376-4fc2-801f-482399e07a18"
    }
  ],
  "nbformat": 4,
  "nbformat_minor": 5,
  "metadata": {
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3 (ipykernel)",
      "language": "python"
    },
    "language_info": {
      "name": "python",
      "codemirror_mode": {
        "name": "ipython",
        "version": "3"
      },
      "file_extension": ".py",
      "mimetype": "text/x-python",
      "nbconvert_exporter": "python",
      "pygments_lexer": "ipython3",
      "version": "3.12.12"
    }
  }
}