diff --git a/UFCFVQ-15-M Programming Task 1.ipynb b/UFCFVQ-15-M Programming Task 1.ipynb index 7d4af61e244015f0d70094df61aea3ad87ac7dda..d676bc5e764a3beaa7de1d21cf09728c5e18d3d7 100644 --- a/UFCFVQ-15-M Programming Task 1.ipynb +++ b/UFCFVQ-15-M Programming Task 1.ipynb @@ -488,7 +488,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -505,7 +505,7 @@ " 'Outcome': ['1', '0', '1', '0', '1']}" ] }, - "execution_count": 22, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -564,15 +564,15 @@ "data": { "text/plain": [ "{'stats': ['Mean', 'stdev', 'Min', 'Max', '25th', '50th', '75th'],\n", - " 'Pregnancies': [3.845, 3.367, 0.0, 17.0, 1.0, 3.0, 6.0],\n", - " 'Glucose': [120.895, 31.952, 0.0, 199.0, 99.0, 117.0, 141.0],\n", - " 'BloodPressure': [69.105, 19.343, 0.0, 122.0, 62.0, 72.0, 80.0],\n", - " 'SkinThickness': [20.536, 15.942, 0.0, 99.0, 0.0, 23.0, 32.0],\n", - " 'Insulin': [79.799, 115.169, 0.0, 846.0, 0.0, 32.0, 128.0],\n", - " 'BMI': [31.993, 7.879, 0.0, 67.1, 27.3, 32.0, 36.6],\n", - " 'DiabetesPedigreeFunction': [0.472, 0.331, 0.078, 2.42, 0.244, 0.374, 0.627],\n", - " 'Age': [33.241, 11.753, 21.0, 81.0, 24.0, 29.0, 41.0],\n", - " 'Outcome': [0.349, 0.477, 0.0, 1.0, 0.0, 0.0, 1.0]}" + " 'Pregnancies': [3.2, 3.187, 0.0, 8.0, 0.0, 1.0, 6.0],\n", + " 'Glucose': [128.4, 37.082, 85.0, 183.0, 85.0, 89.0, 148.0],\n", + " 'BloodPressure': [61.6, 11.128, 40.0, 72.0, 40.0, 64.0, 66.0],\n", + " 'SkinThickness': [24.4, 12.986, 0.0, 35.0, 0.0, 23.0, 35.0],\n", + " 'Insulin': [52.4, 68.31, 0.0, 168.0, 0.0, 0.0, 94.0],\n", + " 'BMI': [30.94, 6.931, 23.3, 43.1, 23.3, 26.6, 33.6],\n", + " 'DiabetesPedigreeFunction': [0.821, 0.756, 0.167, 2.288, 0.167, 0.351, 0.672],\n", + " 'Age': [33.4, 9.351, 21.0, 50.0, 21.0, 31.0, 33.0],\n", + " 'Outcome': [0.6, 0.49, 0.0, 1.0, 0.0, 0.0, 1.0]}" ] }, "execution_count": 12, @@ -637,17 +637,17 @@ "name": "stdout", "output_type": "stream", "text": [ - " *****************************************************************************************************************\n", - " stats *Pregnancies *Glucose *BloodPressure *SkinThickness *Insulin * BMI * DiabetesPedigreeFunction* Age *Outcome *\n", - "************************************************************************************************************************\n", - "* Mean * 3.845 *120.895 * 69.105 * 20.536 * 79.799 * 31.993* 0.472 * 33.241* 0.349 *\n", - "*stdev * 3.367 * 31.952 * 19.343 * 15.942 *115.169 * 7.879 * 0.331 * 11.753* 0.477 *\n", - "* Min * 0.0 * 0.0 * 0.0 * 0.0 * 0.0 * 0.0 * 0.078 * 21.0 * 0.0 *\n", - "* Max * 17.0 * 199.0 * 122.0 * 99.0 * 846.0 * 67.1 * 2.42 * 81.0 * 1.0 *\n", - "* 25th * 1.0 * 99.0 * 62.0 * 0.0 * 0.0 * 27.3 * 0.244 * 24.0 * 0.0 *\n", - "* 50th * 3.0 * 117.0 * 72.0 * 23.0 * 32.0 * 32.0 * 0.374 * 29.0 * 0.0 *\n", - "* 75th * 6.0 * 141.0 * 80.0 * 32.0 * 128.0 * 36.6 * 0.627 * 41.0 * 1.0 *\n", - "************************************************************************************************************************\n" + " ***************************************************************************************************************\n", + " stats *Pregnancies *Glucose *BloodPressure *SkinThickness *Insulin * BMI * DiabetesPedigreeFunction* Age *Outcome *\n", + "**********************************************************************************************************************\n", + "* Mean * 3.2 * 128.4 * 61.6 * 24.4 * 52.4 *30.94 * 0.821 * 33.4 * 0.6 *\n", + "*stdev * 3.187 * 37.082 * 11.128 * 12.986 * 68.31 *6.931 * 0.756 *9.351 * 0.49 *\n", + "* Min * 0.0 * 85.0 * 40.0 * 0.0 * 0.0 * 23.3 * 0.167 * 21.0 * 0.0 *\n", + "* Max * 8.0 * 183.0 * 72.0 * 35.0 * 168.0 * 43.1 * 2.288 * 50.0 * 1.0 *\n", + "* 25th * 0.0 * 85.0 * 40.0 * 0.0 * 0.0 * 23.3 * 0.167 * 21.0 * 0.0 *\n", + "* 50th * 1.0 * 89.0 * 64.0 * 23.0 * 0.0 * 26.6 * 0.351 * 31.0 * 0.0 *\n", + "* 75th * 6.0 * 148.0 * 66.0 * 35.0 * 94.0 * 33.6 * 0.672 * 33.0 * 1.0 *\n", + "**********************************************************************************************************************\n" ] } ], @@ -747,7 +747,7 @@ "\n", "- Explanation 2\n", "\n", - " A for loop is created to access every single data element in 'ListOfData', ranging from 0 to 768 (or 767 if we start counting from 0). The loop starts at [0][0] and continues to [767][0], then moves on to [0][1] and so on until it reaches the last data element at [767][8]. As the loop progresses, the data is appended to a new list called 'ListOfData', as explained in Explanation 1.\n", + " A for loop is created to access every single data element in 'ListOfData', ranging from 0 to 769 (or 768 if we start counting from 0). The loop starts at [0][0] and continues to [768][0], then moves on to [0][1] and so on until it reaches the last data element at [768][8]. As the loop progresses, the data is appended to a new list called 'ListOfData', as explained in Explanation 1.\n", "\n", "### 2) Strength\n", "\n",