Skip to content

Commit

Permalink
Fixing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenDowney committed Mar 21, 2019
1 parent d8e6ea3 commit 9a6b32b
Show file tree
Hide file tree
Showing 25 changed files with 8,474 additions and 8,157 deletions.
3 changes: 3 additions & 0 deletions code/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,6 @@ docs: $(DOCPY)
$(DOCPY):
pydoc -w ./$@

scrub:
scrub/scrub_code.py chap01soln.ipynb; mv chap01soln_scrub.ipynb chap01ex.ipynb
scrub/scrub_code.py chap02soln.ipynb; mv chap02soln_scrub.ipynb chap02ex.ipynb
Empty file modified code/chap01soln.py
100755 → 100644
Empty file.
Empty file modified code/chap02soln.py
100755 → 100644
Empty file.
Empty file modified code/chap03soln.py
100755 → 100644
Empty file.
32 changes: 21 additions & 11 deletions code/chap04ex.ipynb

Large diffs are not rendered by default.

Empty file modified code/chap06soln.py
100755 → 100644
Empty file.
Empty file modified code/chap07soln.py
100755 → 100644
Empty file.
Empty file modified code/chap08soln.py
100755 → 100644
Empty file.
Empty file modified code/chap09soln.py
100755 → 100644
Empty file.
66 changes: 33 additions & 33 deletions code/chap11ex.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
" <th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 43.02</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Prob (F-statistic):</th> <td>5.72e-11</td> \n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Prob (F-statistic):</th> <td>5.72e-11</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:16:27</td> <th> Log-Likelihood: </th> <td> -15897.</td> \n",
" <th>Time:</th> <td>16:34:15</td> <th> Log-Likelihood: </th> <td> -15897.</td> \n",
"</tr>\n",
"<tr>\n",
" <th>No. Observations:</th> <td> 9038</td> <th> AIC: </th> <td>3.180e+04</td>\n",
Expand Down Expand Up @@ -131,8 +131,8 @@
"Dep. Variable: totalwgt_lb R-squared: 0.005\n",
"Model: OLS Adj. R-squared: 0.005\n",
"Method: Least Squares F-statistic: 43.02\n",
"Date: Thu, 24 Jan 2019 Prob (F-statistic): 5.72e-11\n",
"Time: 09:16:27 Log-Likelihood: -15897.\n",
"Date: Mon, 25 Feb 2019 Prob (F-statistic): 5.72e-11\n",
"Time: 16:34:15 Log-Likelihood: -15897.\n",
"No. Observations: 9038 AIC: 3.180e+04\n",
"Df Residuals: 9036 BIC: 3.181e+04\n",
"Df Model: 1 \n",
Expand Down Expand Up @@ -362,10 +362,10 @@
" <th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 17.74</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Prob (F-statistic):</th> <td>2.55e-05</td> \n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Prob (F-statistic):</th> <td>2.55e-05</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:16:28</td> <th> Log-Likelihood: </th> <td> -15909.</td> \n",
" <th>Time:</th> <td>16:34:16</td> <th> Log-Likelihood: </th> <td> -15909.</td> \n",
"</tr>\n",
"<tr>\n",
" <th>No. Observations:</th> <td> 9038</td> <th> AIC: </th> <td>3.182e+04</td>\n",
Expand Down Expand Up @@ -414,8 +414,8 @@
"Dep. Variable: totalwgt_lb R-squared: 0.002\n",
"Model: OLS Adj. R-squared: 0.002\n",
"Method: Least Squares F-statistic: 17.74\n",
"Date: Thu, 24 Jan 2019 Prob (F-statistic): 2.55e-05\n",
"Time: 09:16:28 Log-Likelihood: -15909.\n",
"Date: Mon, 25 Feb 2019 Prob (F-statistic): 2.55e-05\n",
"Time: 16:34:16 Log-Likelihood: -15909.\n",
"No. Observations: 9038 AIC: 3.182e+04\n",
"Df Residuals: 9036 BIC: 3.184e+04\n",
"Df Model: 1 \n",
Expand Down Expand Up @@ -476,10 +476,10 @@
" <th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 24.02</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Prob (F-statistic):</th> <td>3.95e-11</td> \n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Prob (F-statistic):</th> <td>3.95e-11</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:16:28</td> <th> Log-Likelihood: </th> <td> -15894.</td> \n",
" <th>Time:</th> <td>16:34:16</td> <th> Log-Likelihood: </th> <td> -15894.</td> \n",
"</tr>\n",
"<tr>\n",
" <th>No. Observations:</th> <td> 9038</td> <th> AIC: </th> <td>3.179e+04</td>\n",
Expand Down Expand Up @@ -531,8 +531,8 @@
"Dep. Variable: totalwgt_lb R-squared: 0.005\n",
"Model: OLS Adj. R-squared: 0.005\n",
"Method: Least Squares F-statistic: 24.02\n",
"Date: Thu, 24 Jan 2019 Prob (F-statistic): 3.95e-11\n",
"Time: 09:16:28 Log-Likelihood: -15894.\n",
"Date: Mon, 25 Feb 2019 Prob (F-statistic): 3.95e-11\n",
"Time: 16:34:16 Log-Likelihood: -15894.\n",
"No. Observations: 9038 AIC: 3.179e+04\n",
"Df Residuals: 9035 BIC: 3.182e+04\n",
"Df Model: 2 \n",
Expand Down Expand Up @@ -595,10 +595,10 @@
" <th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 22.64</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Prob (F-statistic):</th> <td>1.35e-14</td> \n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Prob (F-statistic):</th> <td>1.35e-14</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:16:28</td> <th> Log-Likelihood: </th> <td> -15884.</td> \n",
" <th>Time:</th> <td>16:34:16</td> <th> Log-Likelihood: </th> <td> -15884.</td> \n",
"</tr>\n",
"<tr>\n",
" <th>No. Observations:</th> <td> 9038</td> <th> AIC: </th> <td>3.178e+04</td>\n",
Expand Down Expand Up @@ -653,8 +653,8 @@
"Dep. Variable: totalwgt_lb R-squared: 0.007\n",
"Model: OLS Adj. R-squared: 0.007\n",
"Method: Least Squares F-statistic: 22.64\n",
"Date: Thu, 24 Jan 2019 Prob (F-statistic): 1.35e-14\n",
"Time: 09:16:28 Log-Likelihood: -15884.\n",
"Date: Mon, 25 Feb 2019 Prob (F-statistic): 1.35e-14\n",
"Time: 16:34:16 Log-Likelihood: -15884.\n",
"No. Observations: 9038 AIC: 3.178e+04\n",
"Df Residuals: 9034 BIC: 3.181e+04\n",
"Df Model: 3 \n",
Expand Down Expand Up @@ -908,10 +908,10 @@
" <th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 79.98</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Prob (F-statistic):</th> <td>4.86e-113</td>\n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Prob (F-statistic):</th> <td>4.86e-113</td>\n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:17:02</td> <th> Log-Likelihood: </th> <td> -14295.</td> \n",
" <th>Time:</th> <td>16:35:03</td> <th> Log-Likelihood: </th> <td> -14295.</td> \n",
"</tr>\n",
"<tr>\n",
" <th>No. Observations:</th> <td> 8781</td> <th> AIC: </th> <td>2.861e+04</td>\n",
Expand Down Expand Up @@ -978,8 +978,8 @@
"Dep. Variable: totalwgt_lb R-squared: 0.060\n",
"Model: OLS Adj. R-squared: 0.059\n",
"Method: Least Squares F-statistic: 79.98\n",
"Date: Thu, 24 Jan 2019 Prob (F-statistic): 4.86e-113\n",
"Time: 09:17:02 Log-Likelihood: -14295.\n",
"Date: Mon, 25 Feb 2019 Prob (F-statistic): 4.86e-113\n",
"Time: 16:35:03 Log-Likelihood: -14295.\n",
"No. Observations: 8781 AIC: 2.861e+04\n",
"Df Residuals: 8773 BIC: 2.866e+04\n",
"Df Model: 7 \n",
Expand Down Expand Up @@ -1257,10 +1257,10 @@
" <th>Method:</th> <td>MLE</td> <th> Df Model: </th> <td> 1</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Pseudo R-squ.: </th> <td>6.144e-06</td>\n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Pseudo R-squ.: </th> <td>6.144e-06</td>\n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:17:05</td> <th> Log-Likelihood: </th> <td> -6156.7</td> \n",
" <th>Time:</th> <td>16:35:05</td> <th> Log-Likelihood: </th> <td> -6156.7</td> \n",
"</tr>\n",
"<tr>\n",
" <th>converged:</th> <td>True</td> <th> LL-Null: </th> <td> -6156.8</td> \n",
Expand Down Expand Up @@ -1289,8 +1289,8 @@
"Dep. Variable: boy No. Observations: 8884\n",
"Model: Logit Df Residuals: 8882\n",
"Method: MLE Df Model: 1\n",
"Date: Thu, 24 Jan 2019 Pseudo R-squ.: 6.144e-06\n",
"Time: 09:17:05 Log-Likelihood: -6156.7\n",
"Date: Mon, 25 Feb 2019 Pseudo R-squ.: 6.144e-06\n",
"Time: 16:35:05 Log-Likelihood: -6156.7\n",
"converged: True LL-Null: -6156.8\n",
" LLR p-value: 0.7833\n",
"==============================================================================\n",
Expand Down Expand Up @@ -1349,10 +1349,10 @@
" <th>Method:</th> <td>MLE</td> <th> Df Model: </th> <td> 5</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Pseudo R-squ.: </th> <td>0.0001440</td>\n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Pseudo R-squ.: </th> <td>0.0001440</td>\n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:17:05</td> <th> Log-Likelihood: </th> <td> -6085.4</td> \n",
" <th>Time:</th> <td>16:35:05</td> <th> Log-Likelihood: </th> <td> -6085.4</td> \n",
"</tr>\n",
"<tr>\n",
" <th>converged:</th> <td>True</td> <th> LL-Null: </th> <td> -6086.3</td> \n",
Expand Down Expand Up @@ -1393,8 +1393,8 @@
"Dep. Variable: boy No. Observations: 8782\n",
"Model: Logit Df Residuals: 8776\n",
"Method: MLE Df Model: 5\n",
"Date: Thu, 24 Jan 2019 Pseudo R-squ.: 0.0001440\n",
"Time: 09:17:05 Log-Likelihood: -6085.4\n",
"Date: Mon, 25 Feb 2019 Pseudo R-squ.: 0.0001440\n",
"Time: 16:35:05 Log-Likelihood: -6085.4\n",
"converged: True LL-Null: -6086.3\n",
" LLR p-value: 0.8822\n",
"================================================================================\n",
Expand Down Expand Up @@ -1620,10 +1620,10 @@
" <th>Method:</th> <td>Least Squares</td> <th> F-statistic: </th> <td> 34.28</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Date:</th> <td>Thu, 24 Jan 2019</td> <th> Prob (F-statistic):</th> <td>5.09e-22</td> \n",
" <th>Date:</th> <td>Mon, 25 Feb 2019</td> <th> Prob (F-statistic):</th> <td>5.09e-22</td> \n",
"</tr>\n",
"<tr>\n",
" <th>Time:</th> <td>09:17:07</td> <th> Log-Likelihood: </th> <td> -18247.</td> \n",
" <th>Time:</th> <td>16:35:08</td> <th> Log-Likelihood: </th> <td> -18247.</td> \n",
"</tr>\n",
"<tr>\n",
" <th>No. Observations:</th> <td> 8884</td> <th> AIC: </th> <td>3.650e+04</td>\n",
Expand Down Expand Up @@ -1678,8 +1678,8 @@
"Dep. Variable: prglngth R-squared: 0.011\n",
"Model: OLS Adj. R-squared: 0.011\n",
"Method: Least Squares F-statistic: 34.28\n",
"Date: Thu, 24 Jan 2019 Prob (F-statistic): 5.09e-22\n",
"Time: 09:17:07 Log-Likelihood: -18247.\n",
"Date: Mon, 25 Feb 2019 Prob (F-statistic): 5.09e-22\n",
"Time: 16:35:08 Log-Likelihood: -18247.\n",
"No. Observations: 8884 AIC: 3.650e+04\n",
"Df Residuals: 8880 BIC: 3.653e+04\n",
"Df Model: 3 \n",
Expand Down Expand Up @@ -1871,7 +1871,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.6"
"version": "3.7.2"
}
},
"nbformat": 4,
Expand Down
Empty file modified code/chap12soln.py
100755 → 100644
Empty file.
Empty file modified code/chap13soln.py
100755 → 100644
Empty file.
Empty file modified code/chap14soln.py
100755 → 100644
Empty file.
Empty file modified code/hinc_soln.py
100755 → 100644
Empty file.
Loading

0 comments on commit 9a6b32b

Please sign in to comment.