diff --git a/README.md b/README.md
index 8145faf..134beea 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Jupiter notebook (with matlab or octave kernel)
### Note on Homework and online forms
-The Homeworks are graded based upon effort and completeness. The forms are not graded at
+The Homeworks are graded based upon effort, correctness, and completeness. The forms are not graded at
all, if they are completed you get credit. It is *your* responsibility to make sure your
answers are correct. Use the homeworks and forms as a study guide for the exams. In
general, I will not post homework solutions.
diff --git a/lecture_16/lecture_16.ipynb b/lecture_16/lecture_16.ipynb
index be266b3..206e84c 100644
--- a/lecture_16/lecture_16.ipynb
+++ b/lecture_16/lecture_16.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 3,
+ "execution_count": 171,
"metadata": {
"collapsed": true
},
@@ -13,7 +13,7 @@
},
{
"cell_type": "code",
- "execution_count": 4,
+ "execution_count": 172,
"metadata": {
"collapsed": true
},
@@ -119,7 +119,7 @@
},
{
"cell_type": "code",
- "execution_count": 18,
+ "execution_count": 173,
"metadata": {
"collapsed": false
},
@@ -773,7 +773,7 @@
},
{
"cell_type": "code",
- "execution_count": 25,
+ "execution_count": 174,
"metadata": {
"collapsed": false
},
@@ -811,7 +811,7 @@
},
{
"cell_type": "code",
- "execution_count": 27,
+ "execution_count": 175,
"metadata": {
"collapsed": false
},
@@ -830,7 +830,7 @@
},
{
"cell_type": "code",
- "execution_count": 28,
+ "execution_count": 177,
"metadata": {
"collapsed": false
},
@@ -849,7 +849,7 @@
},
{
"cell_type": "code",
- "execution_count": 83,
+ "execution_count": 180,
"metadata": {
"collapsed": false
},
@@ -896,561 +896,539 @@
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
"\n",
"\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t0\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.05\n",
+ "\t\t\n",
+ "\t\t5\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.1\n",
+ "\t\t\n",
+ "\t\t10\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.15\n",
+ "\t\t\n",
+ "\t\t15\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.2\n",
+ "\t\t\n",
+ "\t\t20\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-20\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-15\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-10\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-5\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t0\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t5\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t10\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t15\n",
"\t\n",
"\n",
"\n",
"\n",
"\n",
- "\t\n",
- "\n",
- "\t\n",
- "\t\trelative counts\n",
- "\t\n",
- "\n",
- "\n",
- "\t\n",
- "\t\tx position (cm)\n",
- "\t\n",
- "\n",
+ "\t\n",
"\n",
"\n",
"\tgnuplot_plot_1a\n",
- "\n",
+ "\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_2a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_3a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_4a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_5a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_6a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_7a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_8a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_9a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_10a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_11a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_12a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_13a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_14a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_15a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_16a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_17a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_18a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_19a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_20a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_21a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_22a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_23a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_24a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_25a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_26a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_27a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_28a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_29a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_30a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_31a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_32a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_33a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_34a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_35a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_36a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_37a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_38a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_39a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_40a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_41a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_42a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_43a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_44a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_45a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_46a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_47a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_48a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_49a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_50a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_51a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_52a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_53a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_54a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_55a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_56a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_57a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_58a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_59a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_60a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_61a\n",
"\n",
"\n",
"\n",
- "\t\n",
- "\t\n",
- "\tgnuplot_plot_62a\n",
- "\n",
- "\t\n",
- "\t\n",
- "\tgnuplot_plot_63a\n",
- "\n",
- "\t\n",
- "\t\n",
- "\tgnuplot_plot_64a\n",
- "\n",
- "\t\n",
+ "\t\n",
"\t\n",
- "\n",
+ "\n",
"\n",
"\n",
"\n",
@@ -1470,27 +1448,12 @@
}
],
"source": [
- "x_vals=linspace(-15,20,30);\n",
- "hist(x_darts,x_vals,1);\n",
- "[histFreq, histXout] = hist(x_darts, 30);\n",
- "binWidth = histXout(2)-histXout(1);\n",
- "bar(histXout, histFreq/binWidth/sum(histFreq));\n",
- "pdfnorm = @(x) 1/sqrt(2*s_x^2*pi).*exp(-(x-mu_x).^2/2/s_x^2);\n",
- "%cdfnorm = @(x) 1/2*(1+erf((x-mu_x)./sqrt(2*s_x^2)));\n",
- "%hist(x_darts,x_vals,trapz(x,f))%,cdfnorm(max(x_darts))/2)\n",
- "hold on;\n",
- "plot(x_vals,pdfnorm(x_vals))\n",
- "n=2; % n=1, 68% confidence, n=2, 95% confidence, n=3, 99% conf\n",
- " plot([mu_x+n*s_x,mu_x+n*s_x],[0,0.1],'r-')\n",
- " plot([mu_x-n*s_x,mu_x-n*s_x],[0,0.1],'r-')\n",
- "\n",
- "xlabel('x position (cm)')\n",
- "ylabel('relative counts')"
+ "hist(x_darts,30,100)"
]
},
{
"cell_type": "code",
- "execution_count": 84,
+ "execution_count": 182,
"metadata": {
"collapsed": false
},
@@ -1628,450 +1591,450 @@
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_2a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_3a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_4a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_5a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_6a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_7a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_8a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_9a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_10a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_11a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_12a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_13a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_14a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_15a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_16a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_17a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_18a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_19a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_20a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_21a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_22a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_23a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_24a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_25a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_26a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_27a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_28a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_29a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_30a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_31a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_32a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_33a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_34a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_35a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_36a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_37a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_38a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_39a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_40a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_41a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_42a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_43a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_44a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_45a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_46a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_47a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_48a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_49a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_50a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_51a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_52a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_53a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_54a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_55a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_56a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_57a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_58a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_59a\n",
"\n",
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_60a\n",
"\n",
"\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_61a\n",
"\n",
@@ -2081,15 +2044,15 @@
"\t\n",
"\tgnuplot_plot_62a\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_63a\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\tgnuplot_plot_64a\n",
"\n",
- "\t\n",
+ "\t\n",
"\t\n",
"\n",
"\n",
@@ -2111,19 +2074,19 @@
}
],
"source": [
- "y_vals=linspace(-15,20,30);\n",
- "hist(y_darts,y_vals,1);\n",
- "[histFreq, histXout] = hist(y_darts, 30);\n",
+ "x_vals=linspace(-15,20,30);\n",
+ "hist(x_darts,x_vals,1);\n",
+ "[histFreq, histXout] = hist(x_darts, 30);\n",
"binWidth = histXout(2)-histXout(1);\n",
"bar(histXout, histFreq/binWidth/sum(histFreq));\n",
- "pdfnorm = @(x) 1/sqrt(2*s_y^2*pi).*exp(-(x-mu_y).^2/2/s_y^2);\n",
+ "pdfnorm = @(x) 1/sqrt(2*s_x^2*pi).*exp(-(x-mu_x).^2/2/s_x^2);\n",
"%cdfnorm = @(x) 1/2*(1+erf((x-mu_x)./sqrt(2*s_x^2)));\n",
"%hist(x_darts,x_vals,trapz(x,f))%,cdfnorm(max(x_darts))/2)\n",
"hold on;\n",
- "plot(y_vals,pdfnorm(y_vals))\n",
+ "plot(x_vals,pdfnorm(x_vals))\n",
"n=2; % n=1, 68% confidence, n=2, 95% confidence, n=3, 99% conf\n",
- " plot([mu_y+n*s_y,mu_y+n*s_y],[0,0.1],'r-')\n",
- " plot([mu_y-n*s_y,mu_y-n*s_y],[0,0.1],'r-')\n",
+ " plot([mu_x+n*s_x,mu_x+n*s_x],[0,0.1],'r-')\n",
+ " plot([mu_x-n*s_x,mu_x-n*s_x],[0,0.1],'r-')\n",
"\n",
"xlabel('x position (cm)')\n",
"ylabel('relative counts')"
@@ -2131,7 +2094,7 @@
},
{
"cell_type": "code",
- "execution_count": 76,
+ "execution_count": 183,
"metadata": {
"collapsed": false
},
@@ -2178,5238 +2141,17319 @@
"\n",
"\n",
"\t\n",
- "\t\t\n",
+ "\t\t\n",
"\t\n",
"\n",
"\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t0\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.2\n",
+ "\t\t\n",
+ "\t\t0.05\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.4\n",
+ "\t\t\n",
+ "\t\t0.1\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.6\n",
+ "\t\t\n",
+ "\t\t0.15\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t0.8\n",
+ "\t\t\n",
+ "\t\t0.2\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t1\n",
+ "\t\t\n",
+ "\t\t-20\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-15\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-10\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t-5\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t0\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t5\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t10\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
+ "\t\t\n",
"\t\t15\n",
"\t\n",
"\n",
"\n",
- "\t\t\n",
- "\t\t20\n",
+ "\n",
+ "\n",
+ "\t\n",
+ "\n",
+ "\t\n",
+ "\t\trelative counts\n",
"\t\n",
"\n",
"\n",
+ "\t\n",
+ "\t\tx position (cm)\n",
+ "\t\n",
"\n",
"\n",
- "\t\n",
+ "\n",
+ "\tgnuplot_plot_1a\n",
+ "\n",
+ "\n",
+ "\n",
+ "\t\n",
+ "\t\t\n",
+ "\t\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_2a\n",
+ "\n",
+ "\n",
"\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_3a\n",
+ "\n",
"\n",
- "\n",
+ "\n",
+ "\t\n",
+ "\t\t\n",
+ "\t\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_4a\n",
+ "\n",
+ "\n",
+ "\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_5a\n",
+ "\n",
"\n",
"\n",
- "\t\n",
- "\texperimental CDF\n",
- "\n",
+ "\t\n",
+ "\t\t\n",
+ "\t\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_6a\n",
+ "\n",
"\n",
- "\n",
- "\t\n",
- "\t\texperimental CDF\n",
+ "\n",
+ "\t\n",
"\t\n",
+ "\tgnuplot_plot_7a\n",
+ "\n",
"\n",
- "\n",
- "\t\n",
+ "\n",
+ "\t\n",
+ "\t\t\n",
"\t\n",
- "\tNormal CDF\n",
- "\n",
- "\t\n",
- "\t\tNormal CDF\n",
+ "\t\n",
"\t\n",
+ "\tgnuplot_plot_8a\n",
+ "\n",
"\n",
- "\n",
- "\t\n",
+ "\n",
+ "\t\n",
"\t\n",
- "\n",
+ "\tgnuplot_plot_9a\n",
+ "\n",
"\n",
- "\n",
+ "\n",
+ "\t\n",
+ "\t\t\n",
+ "\t\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_10a\n",
+ "\n",
"\n",
- "\n",
+ "\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_11a\n",
+ "\n",
+ "\n",
+ "\n",
+ "\t\n",
+ "\t\t\n",
+ "\t\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_12a\n",
+ "\n",
"\n",
"\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_13a\n",
+ "\n",
"\n",
+ "\n",
+ "\t\n",
+ "\t\t\n",
+ "\t\n",
+ "\t\n",
+ "\t\n",
+ "\tgnuplot_plot_14a\n",
+ "\n",
"\n",
- ""
- ],
- "text/plain": [
- ""
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- }
- ],
- "source": [
- "x_exp=empirical_cdf(x_vals,x_darts);\n",
- "plot(x_vals,x_exp)\n",
- "hold on;\n",
- "plot(x_vals,normcdf(x_vals,mu_x,s_x),'k-')\n",
- "legend('experimental CDF','Normal CDF','Location','SouthEast')"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 170,
- "metadata": {
- "collapsed": false
- },
- "outputs": [
- {
- "data": {
- "image/svg+xml": [
- ""
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "y_vals=linspace(-15,20,30);\n",
+ "hist(y_darts,y_vals,1);\n",
+ "[histFreq, histXout] = hist(y_darts, 30);\n",
+ "binWidth = histXout(2)-histXout(1);\n",
+ "bar(histXout, histFreq/binWidth/sum(histFreq));\n",
+ "pdfnorm = @(x) 1/sqrt(2*s_y^2*pi).*exp(-(x-mu_y).^2/2/s_y^2);\n",
+ "%cdfnorm = @(x) 1/2*(1+erf((x-mu_x)./sqrt(2*s_x^2)));\n",
+ "%hist(x_darts,x_vals,trapz(x,f))%,cdfnorm(max(x_darts))/2)\n",
+ "hold on;\n",
+ "plot(y_vals,pdfnorm(y_vals))\n",
+ "n=2; % n=1, 68% confidence, n=2, 95% confidence, n=3, 99% conf\n",
+ " plot([mu_y+n*s_y,mu_y+n*s_y],[0,0.1],'r-')\n",
+ " plot([mu_y-n*s_y,mu_y-n*s_y],[0,0.1],'r-')\n",
+ "\n",
+ "xlabel('x position (cm)')\n",
+ "ylabel('relative counts')"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 76,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/svg+xml": [
+ ""
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
+ }
+ ],
+ "source": [
+ "x_exp=empirical_cdf(x_vals,x_darts);\n",
+ "plot(x_vals,x_exp)\n",
+ "hold on;\n",
+ "plot(x_vals,normcdf(x_vals,mu_x,s_x),'k-')\n",
+ "legend('experimental CDF','Normal CDF','Location','SouthEast')"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": 185,
+ "metadata": {
+ "collapsed": false
+ },
+ "outputs": [
+ {
+ "data": {
+ "image/svg+xml": [
+ "