Monday, November 23, 2015

Why is grading so hard?


Grading is one of the worst parts of the job. A colleague described it to me as running a marathon, except that you just keep running around the same block for 26 miles.

As my own pile of papers to grade grows in the last weeks of the quarter, I've been thinking about why it is so hard for me to do. My personal brand of procrastination is certainly part of the problem. If that was all, though, grading would be getting done along with the other chores I avoid, like dishes and laundry. Instead, my kitchen is very nearly clean and my grading is untouched. Sure, it's time consuming and often dull to look at 30 copies of the same problem, but that doesn't explain why I'm so averse to even getting started.

When I start grading an assignment, I don't really know how it's going to go. If everyone got it, the grading is fast and easy. If not I begin an emotional trial of self-reproach or anger.

Self-Reproach--Why didn't they get it? Did I not explain it well? Am I a terrible teacher? How did I even get here? How can I face my colleagues, my students, or myself when I'm clearly such a failure?

Anger--I explained this so many times! I even did this problem on the board! How could they not get it!!! Kids these days!

The whole situation is exacerbated by the way my time gets distributed. If a paper is good, I hardly spend any time on it; a quick glance tells me it's correct and worth full points. If it's not correct, I dig deeper into the student's work, and end up spending much more time on the paper. So, even if there were the same number of correct papers and incorrect papers, I would spend significantly more time on the incorrect papers.

After grading papers that didn't go well for the students, I feel miserable. Even though I know it's not a rational reaction, I'm disappointed with myself or angry with them. It's an emotional roller coaster, and I don't know what it will do until I get on. No wonder I'm wary of my grading pile.

Wednesday, November 11, 2015

Hello World!

First, read this comic by Zach Weiner. It's funny.

This modified harmonic series, where we throw out all the numbers with the digit 9 in the denominator, was first studied by A.J. Kempner in 1914, so it is often called the Kempner series. 

Turns out, the proof for that last panel is something I can follow, so I'm going to try to reproduce it here. It will be an experiment in getting math into the blog thingy.  Yay!

Before we do the proof, though, it's really interesting to think about why the Kempner series should converge, when the harmonic series does not. We're just taking out the nines, which doesn't seem like such a big deal. Why should this small adjustment have a bigger impact than removing half the terms? (The series $\sum_{n=0}^\infty \frac{1}{2n}$ still diverges.)

Early in the sequence, removing terms with a nine doesn't have much of an effect. Of the first ten terms we only remove one term., $\frac{1}{9}$, so it looks like we're only removing a tenth of the terms.

As the denominators get bigger, though, there's an increasingly high chance that they will contain a nine. For instance, there are $9\times 10^9$ ten digit numbers (because the first digit can be any integer from 1 to 9, and the other nine digits can be any integer from 0 to 9). Of those, $8\times 9^9$ don't have nines in them (same counting idea as above, the first digit can be any number from 1 to 8, the rest can be any number from 0 to 8). That means that far more than half of the 10 digit numbers have a 9 in them, somewhere. As we increase the number of digits, the chances of a 9 showing up also increase. By the time we're looking at 100 digit numbers, more than 99% of them have a nine. That's a lot of nines.

So, it turns out that in the long run we're really removing almost all of the terms from the harmonic series. Most of us aren't used to thinking about what happens when numbers get really really big, so it this doesn't seem intuitive at first.When you realize just how many of those terms we're removing, though, it starts to seem reasonable that maybe the series that used to diverge will now converge.

Proof Time!

The starting place for our proof is remembering the harmonic series, the one that looks so nice, but then goes and diverges. That is $\sum_{n=1}^\infty \frac{1}{n}$ diverges. Know fact. Deal with it, or go learn about it on your own. Maybe I'll write another post about that someday.


Now say we decide to throw out all the terms with the digit nine in the denominator. Anywhere in the denominator. We're throwing out \(\frac{1}{9}\) and \(\frac{1}{99}\) and \(\frac{1}{119111}\) . They all have to go.

What does that do to the series? Now instead of the normal harmonic series we have $$\frac{1}{1}+\frac{1}{2}+\frac{1}{3}+\cdots+\frac{1}{8}+\frac{1}{10}+\frac{1}{11}+\frac{1}{12}+\cdots+\frac{1}{18}+\frac{1}{20}+\cdots$$

To make this beast easier to manage, let's chunk it up, looking at the sums of numbers with the same number of digits in the denominator. That is, we're going to look at the the part of the series that is  \[\frac{1}{1}+\frac{1}{2}+\cdots +\frac{1}{8}\] separately from that part that is \[\frac{1}{10}+\frac{1}{11}+\cdots+\frac{1}{88}\] separately from the part that is \[\frac{1}{100}+\frac{1}{101}+\cdots+\frac{1}{888}\] and so on.

For that first chunk, each term is at most $1$. And there are nine of them. So, their total sum is less than $1\times 9=9$.
For the second chunk, each term is at most $\frac{1}{10}$. But how many of them are there? That's going to take some counting math.

We're concerned with numbers of the form $$\frac{1}{\text{two digit number, but without a nine}}$$ Without nines, there are 8 options for the first of the two digits (any integer from 1 to 8) and 9 options for the second digit (any integer from 0 to 9). That's $8\times 9 =72$ of these two digit denominator numbers. Each is less than $\frac{1}{10}$, so their total sum must be less than $\frac{72}{10}$

For the three digit denominator chunk, each number must be less than $\frac{1}{100}$, and there are $8\times9\times9=648$ of them. That means their sum must be less than $\frac{648}{100}$.

If we keeping going in this way, we find that the $n$th chunk has $8\cdot9^{n-1}$ terms in it, and each term must be less than $\frac{1}{10^{n-1}}$ This means that the sum of the $n$th chunk is $$8\cdot \frac{9^{n-1}}{10^{n-1}}.$$ If we add up all these chunks we get the sum of the whole series:
$$ \sum_{n=1}^\infty 8\cdot \frac{9^{n-1}}{10^{n-1}}$$

This looks suspiciously like a geometric series, if we rearrange it a little.

Pull that 8 out front, and reset the starting value of $n$ and we have

 $$8\cdot \sum_{n=0}^\infty  \bigg(\frac{9}{10}\bigg)^{n}$$

Tada! This is a nice geometric series (multiplied by eight). And because the thing being raised to the power $n$ is less than one, it converges.

I'm tempted to stop here, as a math nerd, saying "a solution exists" but we can do a little better. The geometric series converges in a predictable way. That is , $$\sum_{n=0}^\infty r^n=\frac{1}{1-r}\text{ when } |r|<1.$$

So our series, $8\cdot \sum_{n=0}^\infty  \bigg(\frac{9}{10}\bigg)^{n}$, converges to $$8\cdot \frac{1}{1-\frac{9}{10}}=80$$

Or rather, the series of interest, the harmonic series with nine's thrown out, converges to something less than 80. (Remember that we made our terms out of things that were bigger than the term we were actually interested in.)

Q.E.D.

Turns out that 80 is the upper bound that Kempner found, too, but better upper bounds have been found. Schmelzer and Baillie developed an algorithm for approximating this sum in their paper "Summing a Curious, Slowly Convergent Series."

Also, you can start with the harmonic series and throw out any digit, or sequence of digits to get a convergent sequence. For instance, you could throw out all the numbers with 42 in the denominator, or all the numbers with 1984 in the denominator, and the thing would then converge. Weird.



Further reading, if you're into that kind of thing

Kempner Series on Wikipedia
Paul Liu's blog--with cool pictures!
Schmelzer, Thomas, and Robert Baillie. “Summing a Curious, Slowly Convergent Series”. The American Mathematical Monthly 115.6 (2008): 525–540.
Baillie, Robert. “Sums of Reciprocals of Integers Missing a Given Digit”. The American Mathematical Monthly 86.5 (1979): 372–374.