I’ve been alerted to a couple of errors in the quiz #2 answers. If you get answers wrong that you don’t understand, hold off telling me about them until Thursday, and they may well be auto-rectified by that point anyway.
-
Homework #2 posted!
Homework #2 is a Kaggle challenge I have put together, on the exciting topic of psychedelic (and/or deadly) mushrooms. You can complete this homework either individually or in a team of two. Either way, the competition will end, your submission is due, and the final leaderboard will be revealed at the stroke of midnight, Oct 17th. Happy ‘shrooming!
-
XP ca$h out
If you’d like, you can turn in your XP cash cards from the first half of the semester in class on Thursday, Oct 8th. Here are the rules for doing so:
- The cards must be stapled together, with a staple, using a stapler. (If you’re unfamiliar: staplers are simple, low-cost office items that are sold at many stores, including the UMW bookstore.)
- You must clearly write your name on the back of the last card in the stack.
- You must do your own counting, and tell me what the total is on the last card in the stack.
As an example, you might staple together two 2XP cards and one 1XP card and write on the back of the bottom one: “Filbert Jenkins, +5XP”.
If you forget to do this, or for any reason don’t want to, that’s fine; you can just hold on to your cards until the end of semester cash out. (These cards are not subject to any inflationary pressures, so you don’t need to worry that their value will degrade over time.)
-
Sigmoid function notation
It has been pointed out to me that the notation I’m using in class for the sigmoid function is different than what the book uses on p. 139.
In class, I said:
$$\sigma(z) = \frac{1}{1 + e^{-z}}$$
where z is the logit that logistic regression calculates for a data point x:
$$z = \beta_0 + \beta_1 x$$
Two differences between this notation choice and the book. First, realize that these two things are equivalent:
$$\frac{1}{1 + e^{-z}} = \frac{e^{z}}{1 + e^{z}}$$.
(Just multiply top and bottom by $e^{z}$ and rearrange terms.) I like the left side better because it seems slightly less cluttered, and the book uses the right side for whatever reasons. But these two expressions are exactly equivalent.
Second, the book does my two steps all in one fell swoop, giving this equation at bottom of p.139:
$$p(X) = \frac{e^{\beta_0 + \beta_1 X}}{1 + e^{\beta_0 + \beta_1 X}}$$
This is exactly the same as
$$\sigma(z) = \sigma(\beta_0 + \beta_1 X) = \frac{1}{1+e^{-(\beta_0 + \beta_1 X)}}$$
which matches what we had in class.
This has been a public service announcement.
-
Quiz #2 posted!
Quiz #2 has been posted to Canvas, and is due midnight on Tuesday, Oct. 6th. This quiz is open-notes, timed at 55 minutes, open book, open notes, closed Python, closed calculator, closed AI, and must be completed entirely on your own, with no help from others (even others not currently at UMW). Good luck!
-
“Residuals” and logistic regression
The connection that (if memory serves) Breelan, Ethan, and Olivia made in class yesterday between logits and residuals was super sharp. It inspired me to write this clarification on the topic, which also served to clarify my own thinking. Thanks y’all!
-
Next semester’s follow-on course
It has been decided: the spring course which will build on what we’re learning this semester — and will cover neural methods instead of pre-neural methods — will be called DATA 470D5: Machine Learning. It’ll be at 12:30pm on Tuesdays and Thursdays. And as I mentioned today, this course will count towards the Data Science major’s “DATA 420” requirement. Not only that, but we don’t anticipate even offering DATA 420 any time in the near future, so DATA 470D5 in the spring is your one real chance to fulfill that requirement.
Hope to see you there!


