mirror of
https://github.com/ION606/COGMOD-HWI.git
synced 2026-05-14 22:16:57 +00:00
Add updated hw2num6.ipynb
This commit is contained in:
+2
-2
@@ -29,8 +29,8 @@
|
|||||||
"priors = np.linspace(0, 1, 100)\n",
|
"priors = np.linspace(0, 1, 100)\n",
|
||||||
"posteriors = posterior(priors, SENSITIVITY, SPECIFICITY)\n",
|
"posteriors = posterior(priors, SENSITIVITY, SPECIFICITY)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"plt.figure(figsize=(6, 4))\n",
|
"plt.figure(figsize=(10, 10))\n",
|
||||||
"plt.plot(priors, posteriors)\n",
|
"plt.plot(priors, posteriors, color = 'purple')\n",
|
||||||
"plt.xlim(0, 1) \n",
|
"plt.xlim(0, 1) \n",
|
||||||
"plt.ylim(0, 1)\n",
|
"plt.ylim(0, 1)\n",
|
||||||
"plt.xlabel('Prior')\n",
|
"plt.xlabel('Prior')\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user