{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Exemplo Transformação de Box e Cox" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from scipy import stats\n", "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "import pandas as pd\n", "import numpy as np\n", "import matplotlib.pyplot as plt\n", "\n", "plt.rcParams[\"figure.figsize\"] = (5,5)\n", "plt.rcParams[\"figure.dpi\"] = 100" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | education | \n", "income | \n", "women | \n", "prestige | \n", "census | \n", "type | \n", "
---|---|---|---|---|---|---|
occupation | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
gov.administrators | \n", "13.11 | \n", "12351 | \n", "11.16 | \n", "68.8 | \n", "1113 | \n", "prof | \n", "
general.managers | \n", "12.26 | \n", "25879 | \n", "4.02 | \n", "69.1 | \n", "1130 | \n", "prof | \n", "
accountants | \n", "12.77 | \n", "9271 | \n", "15.70 | \n", "63.4 | \n", "1171 | \n", "prof | \n", "
purchasing.officers | \n", "11.42 | \n", "8865 | \n", "9.11 | \n", "56.8 | \n", "1175 | \n", "prof | \n", "
chemists | \n", "14.62 | \n", "8403 | \n", "11.68 | \n", "73.5 | \n", "2111 | \n", "prof | \n", "