Answer To: Theory (60 points) 1. (1) Explain what is wrong with the following statements, and (2) correct it....
Suraj answered on Sep 08 2021
{
"cells": [
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" ID Age Experience Income ZIPCode Family CCAvg Education Mortgage \\\n",
"0 1 25 1 49 91107 4 1.6 1 0 \n",
"1 2 45 19 34 90089 3 1.5 1 0 \n",
"2 3 39 15 11 94720 1 1.0 1 0 \n",
"3 4 35 9 100 94112 1 2.7 2 0 \n",
"4 5 35 8 45 91330 4 1.0 2 0 \n",
"\n",
" PersonalLoan SecuritiesAccount CDAccount Online CreditCard \n",
"0 0 1 0 0 0 \n",
"1 0 1 0 0 0 \n",
"2 0 0 0 0 0 \n",
"3 0 0 0 0 0 \n",
"4 0 0 0 0 1 \n"
]
},
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAXcAAAEICAYAAACktLTqAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAARJ0lEQVR4nO3df6jdd33H8efLVKt0dW3tbcySaCoEXSo2lUtU6kSNs3EtprBV4ua8SEf+qcPBhqRjTBwL1D8mCrNCqD/C1JVLXWmmoA1x3RBm2xuts2maNWtrcknaXHVF6yAl8b0/zrdwmntv7knuvTnJ5z4fcPl+v5/z+Z7zPh+S1/3czznfc1JVSJLa8rJhFyBJWniGuyQ1yHCXpAYZ7pLUIMNdkhpkuEtSgwx3SWqQ4a4lLckDSf43ycXDrkVaSIa7lqwka4DfAwr44FCLkRaY4a6l7KPAD4CvAmMvNiZ5TZJ/TfLLJA8n+fsk3++7/U1Jdif5RZIDST507kuXTu+iYRcgDdFHgc8CDwI/SLK8qp4FvgD8GngtsAb4LvBTgCSXALuBvwU+ALwFuD/Jvqrad86fgTQLZ+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