Skip to content

Commit

Permalink
exam cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
LilianBittar committed Jun 7, 2023
1 parent 84f711f commit 6227767
Show file tree
Hide file tree
Showing 10 changed files with 1,637 additions and 914 deletions.
788 changes: 788 additions & 0 deletions Exam-cases/exam_case_2021/exam_case_2021.ipynb

Large diffs are not rendered by default.

162 changes: 162 additions & 0 deletions Exam-cases/exam_case_2022.ipynb

Large diffs are not rendered by default.

868 changes: 0 additions & 868 deletions session04/Exercises problem 4 in Python.ipynb

This file was deleted.

89 changes: 43 additions & 46 deletions session04/exercise-4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 27,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -43,7 +43,7 @@
},
{
"cell_type": "code",
"execution_count": 28,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -53,7 +53,7 @@
},
{
"cell_type": "code",
"execution_count": 38,
"execution_count": 3,
"metadata": {},
"outputs": [
{
Expand All @@ -63,7 +63,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 38,
"execution_count": 3,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -78,7 +78,7 @@
},
{
"cell_type": "code",
"execution_count": 29,
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -94,7 +94,7 @@
},
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -117,7 +117,7 @@
},
{
"cell_type": "code",
"execution_count": 31,
"execution_count": 6,
"metadata": {},
"outputs": [
{
Expand All @@ -140,7 +140,7 @@
},
{
"cell_type": "code",
"execution_count": 32,
"execution_count": 7,
"metadata": {},
"outputs": [
{
Expand All @@ -165,7 +165,7 @@
},
{
"cell_type": "code",
"execution_count": 35,
"execution_count": 8,
"metadata": {},
"outputs": [
{
Expand All @@ -179,7 +179,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/var/folders/0d/xh0t2jcs0471b2ljhkld6w800000gn/T/ipykernel_2693/3340763093.py:10: FutureWarning: Support for multi-dimensional indexing (e.g. `obj[:, None]`) is deprecated and will be removed in a future version. Convert to a numpy array before indexing instead.\n",
"/var/folders/0d/xh0t2jcs0471b2ljhkld6w800000gn/T/ipykernel_7774/3340763093.py:10: FutureWarning: Support for multi-dimensional indexing (e.g. `obj[:, None]`) is deprecated and will be removed in a future version. Convert to a numpy array before indexing instead.\n",
" is_independent = np.isclose(joint_pmf_float.values, marginal_pmf_y[:, np.newaxis] * marginal_pmf_x.values).all()\n"
]
}
Expand All @@ -204,7 +204,7 @@
},
{
"cell_type": "code",
"execution_count": 39,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -214,7 +214,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 39,
"execution_count": 9,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -230,7 +230,7 @@
},
{
"cell_type": "code",
"execution_count": 47,
"execution_count": 10,
"metadata": {},
"outputs": [
{
Expand All @@ -257,7 +257,7 @@
},
{
"cell_type": "code",
"execution_count": 50,
"execution_count": 11,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -296,7 +296,7 @@
},
{
"cell_type": "code",
"execution_count": 52,
"execution_count": 12,
"metadata": {},
"outputs": [
{
Expand All @@ -308,9 +308,6 @@
"E[XY]: -1/5 , -0.2\n",
"E[X^2]: 167/5 , 33.4\n",
"E[Y^2]: 37/10 , 3.7\n",
"P(Y<0): 1/10 , 0.1\n",
"P(X=5, Y > 0): 1/10 , 0.1\n",
"P(X<6, Y < 0): 1 , 1.0\n",
"Var(X): 51/25 , 2.04\n"
]
}
Expand Down Expand Up @@ -353,7 +350,7 @@
},
{
"cell_type": "code",
"execution_count": 53,
"execution_count": 13,
"metadata": {},
"outputs": [
{
Expand All @@ -363,7 +360,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 53,
"execution_count": 13,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -380,7 +377,7 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": 14,
"metadata": {},
"outputs": [
{
Expand All @@ -405,7 +402,7 @@
},
{
"cell_type": "code",
"execution_count": 59,
"execution_count": 15,
"metadata": {},
"outputs": [
{
Expand All @@ -415,7 +412,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 59,
"execution_count": 15,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -432,7 +429,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 16,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -441,7 +438,7 @@
},
{
"cell_type": "code",
"execution_count": 60,
"execution_count": 17,
"metadata": {},
"outputs": [
{
Expand All @@ -451,7 +448,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 60,
"execution_count": 17,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -468,7 +465,7 @@
},
{
"cell_type": "code",
"execution_count": 61,
"execution_count": 18,
"metadata": {},
"outputs": [
{
Expand All @@ -490,7 +487,7 @@
},
{
"cell_type": "code",
"execution_count": 66,
"execution_count": 19,
"metadata": {},
"outputs": [
{
Expand All @@ -502,7 +499,7 @@
"1/16 + (-1 + E)*exp(-1)/4"
]
},
"execution_count": 66,
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -514,7 +511,7 @@
},
{
"cell_type": "code",
"execution_count": 69,
"execution_count": 20,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -551,7 +548,7 @@
},
{
"cell_type": "code",
"execution_count": 70,
"execution_count": 21,
"metadata": {},
"outputs": [
{
Expand All @@ -561,7 +558,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 70,
"execution_count": 21,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -577,7 +574,7 @@
},
{
"cell_type": "code",
"execution_count": 71,
"execution_count": 22,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -614,7 +611,7 @@
},
{
"cell_type": "code",
"execution_count": 75,
"execution_count": 23,
"metadata": {},
"outputs": [
{
Expand All @@ -626,7 +623,7 @@
"log(-164872127070013*exp_polar(I*pi)/100000000000000) - 1.0*Ei(1.64872127070013*exp_polar(I*pi)) + Ei(exp_polar(I*pi))"
]
},
"execution_count": 75,
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -638,7 +635,7 @@
},
{
"cell_type": "code",
"execution_count": 76,
"execution_count": 24,
"metadata": {},
"outputs": [
{
Expand All @@ -648,7 +645,7 @@
"<IPython.core.display.Image object>"
]
},
"execution_count": 76,
"execution_count": 24,
"metadata": {
"image/png": {
"width": 500
Expand All @@ -664,7 +661,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": 25,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -702,7 +699,7 @@
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 26,
"metadata": {},
"outputs": [
{
Expand All @@ -714,7 +711,7 @@
"1/6"
]
},
"execution_count": 81,
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -726,7 +723,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 27,
"metadata": {},
"outputs": [
{
Expand All @@ -738,7 +735,7 @@
"2/3"
]
},
"execution_count": 82,
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -750,7 +747,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 28,
"metadata": {},
"outputs": [
{
Expand All @@ -762,7 +759,7 @@
"1/2"
]
},
"execution_count": 83,
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -774,7 +771,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 29,
"metadata": {},
"outputs": [
{
Expand All @@ -786,7 +783,7 @@
"131/144"
]
},
"execution_count": 85,
"execution_count": 29,
"metadata": {},
"output_type": "execute_result"
}
Expand Down
Binary file added session05/recap-joint-probability.pdf
Binary file not shown.
Loading

0 comments on commit 6227767

Please sign in to comment.