“Trivia question for you. I kept temperature records for 100 days one year in Boston, starting August 15th (day “0”). What would you guess is the correlation between day# and temp? r=???”

Shane Frederick writes:

Trivia question for you. I kept temperature records for 100 days one year in Boston, starting August 15th (day “0”).

What would you guess is the correlation between day# and temp?

r=???

Shane sends me this kind of thing from time to time, for example:

Boris and Natasha in America: How often is the wife taller than the husband?

A little correlation puzzle, leading to a discussion of the connections between intuition and brute force

Also this from 2016 (nearly ten years ago!): When are people gonna realize their studies are dead on arrival?

When he sends me these little probability puzzles, I can figure them out—no surprise, as they’re devised to work for the general population and probability is my special area of expertise! The flip side is that, when a new one comes, I feel some pressure not to mess it up.

So here was my reply to Shane:

uh, that’s a tough one . . . I don’t have such a great intuition about correlation. ok, let me try to guess . . . I guess you’re talking about the average temperature on each day . . . On 15 Aug the avg temperature might be 80 degrees. 100 days later, that’s approx 25 Nov, the average temp might be 45 degrees (jeez, this is cringeworthy, I’m afraid that without looking it up I will get it embarrassingly wrong). A range of 35 degrees, so that would be an explained sd of 35/sqrt(12) (using the fact that the uniform distribution has a sd of 1/sqrt(12)), so approx 10. As for the unexplained sd . . . suppose there’s a day where the expected avg temp is 60. This time of year it could easily be 50 or 70, so maybe 10 for the unexplained sd? Then the explained and unexplained variance are equal so R-squared is 0.5, so r=0.7?
I kinda feel like I must have done something stupid here . . .

It turns out that I got it right (except for forgetting to specify that the correlation is negative, not positive, as temperature is steadily declining from August through November). That’s a relief.

According to Shane, his MIT colleagues guessed a correlation of between 0.15 and 0.2. The day-to-day variability of Boston weather was just too salient to them. He writes:

The narrative of the book Noise is that people under appreciate noise. I don’t disagree. But there are Some contexts where they clearly “over appreciate” it.

I’m guessing that people would give more accurate estimates if you asked them to specify R-squared rather than correlation. R-squared of 50% sounds like a safe guess, no? Conversely, a correlation of 0.15 or 0.2 corresponds to an R-squared in the 2%-4% range, which sounds kinda low.

Regarding Shane’s point about the narrative, this reminds me of the slow to update thing that Josh Miller and I have been thinking about. The usual lesson from those base-rate-fallacy problems is that people overweight local data and underweight base rates. But there are these examples (such as Leicester City) where people seem to be moving too slowly away from their baseline positions, not reacting fast enough to evidence.

As is often the case, there is no safe haven.

Stan Playground: Run Stan on the web, play with your program and data at will, and no need to download anything on your computer

Just in time for Halloween, we have a scarily effective implementation of Stan on the web, full of a veritable haunted house of delicious treats.

Brian Ward, Jeff Soules, and Jeremy Magland write:

Stan Playground is a new open-source, browser-based editor and runtime environment for Stan models. Users can edit, compile, and run models, as well as analyze the results using built-in plots and statistics or custom analysis code in Python or R, all with no local installation required. . . .

Whether you’re a new user, an educator trying to teach Stan, or an experienced user who just doesn’t have their new laptop configured yet, we hope to make your life just a bit easier.

You can visit the live website here: https://stan-playground.flatironinstitute.org

Feature Overview

For users familiar with tools like the Compiler Explorer 1, repl.it or JSFiddle, Stan Playground hopes to provide a similar experience for Stan models.

Stan editor

The site features an editor for Stan code with syntax highlighting and provides warnings and errors from the Stan compiler for instant feedback.

Compiling models

Compilation of the models is the only part of Stan Playground which is not run locally. We provide a public server for convenience, but you can also host your own.

Preparing data

Data can be provided in JSON format in its own editor, or can be generated from code written in R (using webR) or Python (using pyodide), including code that imports published datasets.

Sampling

After a model has been compiled, sampling can be run entirely in your local browser.

Viewing and analyzing results

Stan Playground has several built-in ways of viewing the samples, but also supports performing your own analysis, again in R or Python.

Sharing

Stan Playground has built-in sharing features to allow you to download a copy of your project, upload an existing project, or share via a Github Gist . . . You can also prepare custom links . . . For example, this link will load the “golf” case study from the example models repository: https://stan-playground.flatironinstitute.org/?title=Knitr%20-%20Golf%20-%20Golf%20Angle&stan=https://raw.githubusercontent.com/stan-dev/example-models/master/knitr/golf/golf_angle.stan&data=https://raw.githubusercontent.com/stan-dev/example-models/master/knitr/golf/golf1.data.json

I tried it out and it really worked!

I wrote a simple example that simulates fake data from a linear regression with known parameters (in the transformed data block) and then expresses the log posterior density (in the model block):

data {
  int N;             // sample size
  real a_, b_;   // true values of parameters
  real<lower=0> s_;  //   for the simulation
}
transformed data {
  vector[N] x = linspaced_vector(N, 0, 1);
  vector[N] y;
  for (n in 1:N) y[n] = normal_rng(a_ + b_*x[n], s_);
}
parameters {
  real a, b;
  real<lower=0> s;
}
model {
  y ~ normal(a + b*x, s);
}

With data:

{
  "N": 1000,
  "a_": 0.2,
  "b_": 0.3,
  "s_": 0.5
}

It’s so easy

Setting this up a and running it in Stan Playground is the simplest thing in the world:

1. Put the Stan program in the Stan program window.
2. Enter the data (in this case, the sample size of the regression and true parameter values) as a .json in the data window and click to save.
3. In the command window, click once to compile and click again to run.
4. The output (in tabular and graphical form) appears in the output window.

That’s it! The image at the top of this post shows the results.

Also, it catches many bugs in the compilation and sampling stages.

Which book should you read first, Active Statistics or Regression and Other Stories?

Kiran Gauthier writes:

I was checking the web pages for Active Statistics and Regression and Other Stories and although I saw that Active Statistics is meant to accompany Regression and Other Stories, I was wondering how you would recommend reading them.

Would it be best to read Regression and Other Stories through fully, then come back to Active Statistics, switch the ordering, or read them synchronously?

I replied that the books are different. Regression and Other Stories is a textbook so in that way is more straightforward to read. Active Statistics is full of stories so is more readable. If you have a problem that you want to solve, it makes sense to first go to Regression and Other Stories and see if you can find an appropriate method. If you want to start reading, I’d suggest reading Active Statistics first because it has lots of fun stories.

P.S. Our full list of books is here.

Some references and discussions on the foundations of probability—not the math so much as its connection to the real world, including the claim that “Pr(aliens exist on Neptune that can rap battle) = .137”

Someone pointed me to this recent post by Scott Alexander on probability and uncertainty where he makes the case that the Bayesian or probabilistic conception of uncertainty, for all its flaws, is better than the alternative of throwing up your hands and giving up. I mostly agree, with my only qualification being that, as with any other statistical approach, we just have to be careful not to let quantification of a problem lead to overconfidence. There, though, I’d still blame the overconfidence, not the quantification. I similarly wouldn’t recommend abandoning the consumer price index just because it’s not perfect, and indeed it’s ultimately impossible to summarize a countryful of price changes by any single number. Even in cases where I think a quantification is extremely misleading and in net worse than nothing, as with the notorious Electoral Integrity Index, that can be fine, because a number can be assessed and criticized based on the process used to create it.

Jessica Hullman has a relevant post in 2020 on this general topic: Can we stop talking about how we’re better off without election forecasting?

Along similar lines, I recommend chapter 1 of Bayesian Data Analysis (mostly written in 1995) and my short post, What is probability? from 2018.

If you’re particularly interested in election forecasts, you can take a look at this and this from a couple months ago. Relatedly, from 2023: On the ethics of pollsters or journalists or political scientists betting on prediction markets.

For probability and betting, here a few posts during the 2020 campaign season:
Do we really believe the Democrats have an 88% chance of winning the presidential election?, So, what’s with that claim that Biden has a 96% chance of winning? (some thoughts with Josh Miller), More on that Fivethirtyeight prediction that Biden might only get 42% of the vote in Florida, Concerns with our Economist election forecast, and, finally, Comparing election outcomes to our forecast and to the previous election.

For a different real-world example of trying to informally summarize inconclusive information using a Bayesian approach, there’s this post from 2022: Thinking Bayesianly about the being-behind-at-halftime effect in basketball.

For a warning that you have to be careful if you start picking noisy numbers and using them to do Bayesian inference, I have posts from 2019: No, Bayes does not like Mayor Pete (Pitfalls of using implied betting market odds to estimate electability.) and 2023: Reverse-engineering the problematic tail behavior of the Fivethirtyeight presidential election forecast.

If you want to start thinking about non-Bayesian models of probability, I recommend my 2006 article, The boxer, the wrestler, and the coin flip: a paradox of robust Bayesian inference and belief functions or, at a more theoretical level, my 2021 Journal of Physics paper with Yuling Yao, Holes in Bayesian statistics.

My general picture of the foundations of probability is similar to my general picture of the foundations of mathematics, which is that you start from a clearly defined core and then work outward from there. In math, you start with the natural numbers, then you can define zero, rational numbers, irrational numbers (through the famous idea of “cutting” the set of rationals), then imaginary numbers, etc., with similar expansions of basic ideas of geometry, topology, etc. For probability, we start with physically-defined equally likely events such as ideal coin flips or die rolls, then from there we can define any continuous probability between 0 and 1 with desired accuracy using multiple coin flips (or die rolls if you prefer base 6 to binary), then we can define long-term frequencies using calibration, etc. As with mathematical models, the further you go from the core, the more you need to think about issues of measurement and applicability of the results. Probability, and also mathematics, is a framework for thinking about the world. It’s a tool, not an answer.

One more thing. In his post, Alexander writes:

Probabilities about AI are more lightly held than probabilities about Mars or impeachment (which in turn are more lightly held than the weatherman’s probability about whether it will rain tomorrow, which in turn is more lightly held than probabilities about coin flips). But I think the best way to represent your lightly held opinion is with a probability.

I agree, and I want to add something in support of Alexander’s statement, which is that the idea of some probabilities as being “more likely held” can itself be incorporated into the probabilistic or Bayesian framework. That is, we don’t need to qualify probabilities as being strongly or lightly held (for example, using a bold font to say that Pr(coin lands heads) = 0.5, while using a softer font to say that Pr(Harris is inaugurated president in January) = 0.5). The key idea, as I see it, is that a probability isn’t just a number; it’s part of a network of conditional statements. A probability can be best understood as part of a larger joint distribution.

I think Alexander will like that last post because it contains a serious discussion (and rebuttal) by Martha Smith of the reductio ad absurdum claim that “Pr(aliens exist on Neptune that can rap battle) = .137 is a valid ‘probability’ just because it satisfies mathematical axioms?” I’ve never met Alexander but I have the impression that he likes thinking about things such as “Pr(aliens exist on Neptune that can rap battle).” I mean that in a good way.

P.S. This restatement in comments might be helpful:

A statement such as “Pr(world’s best boxer beats world’s best wrestler) = 0.5” is a statement held weakly, and one way to express this weakness it to say that if we add additional information collected before the fight (for example, from trial bouts or from experts on fighting), we’d expect this probability to change a lot from 50%.

In contrast, the statement “Pr(coin flip is heads) = 0.5” is held strongly, and we would not expect additional information collected before the flip to change this probability by very much.

The key idea is to frame the expressions “lightly held” and “strongly held” in terms of how the probability might change given additional information. The strength of a probability statement is not an attribute of the probability statement in isolation; rather, it is an attribute of a joint distribution (or, in these examples, implied joint distributions).

Salesses: “some writing exercises meant to help students with various elements of craft”

More good stuff (see here for background):

For vulnerability/introductions

1. List 3 moments in which you felt you were not yourself.
2. Distribute lists randomly among the class.
3. Write a story using at least two of the three things

First page exercise

1. Share and read the first page of a new or in-progress story, in a group of 3.
2. The two readers should a. describe the story, b. say where they think it is going, c. name what is most interesting.
3. Rewrite your opening without looking at the old first page.

For audience:

1. Name the one person or few people who first see your work/to whom you’re writing and who would get every reference—e.g. my best friend from grad school.
2. Describe an audience of about 1,000 who would be ideal readers for your book/whom you hope to reach—e.g. college graduate male Korean American adoptees politically active between 30 and 40, in a heterosexual relationship with kids, who read more than 20 books a year.
3. Describe an audience of about 20,000 who would make your book a best-seller–—e.g. college graduate Asian Americans between 30 and 40, with kids, who are politically active and read more than 20 books a year.

For plot/the “but for” moment:

1. In five minutes, write as many sentences as you can that follow this format: If s/h/t hadn’t __________, __________ wouldn’t have ___________.
2. Expand one of the sentences into a paragraph, including a full set of actions and character(s).
3. Expand the paragraph into a scene.

For characterization:

In five minutes, write as many sentences as you can about the same character that begin: S/h/t was the type of person who _________. Push past the obvious and easy.

For point of view:

1. Tell the story of a moment that happened to you this week, but in third person. Create a character to fit the scene/fictionalize.
2. Go ten years in the future. That moment has turned out to be extremely momentous—it has changed this character’s life. Now tell the moment from the perspective of the character ten years on, looking back with a sense of how momentous the moment turned out to be. Do this in first person.

For voice:

1. List your fears, both past and present.
2. Write a scene in which one of your fears plays out. Write it in the victim’s voice.
3. Write the same scene from the aggressor’s voice. Or perhaps from the voice of a non-active witness.

For structure:

Write a structural metaphor for your story–e.g. the dolphin that surfaces beside the boat as a structural metaphor for the way the story keeps skimming along the surface/dipping into the past. (Bad example, but you get the point.)

For prolepsis & true/false mystery:

Write a short story that starts with the sentence: “By the end of this story, character x and character y will fall in love and, in so-doing, character x will murder character y.

For tone:

Exaggerate an inconsequential event in which you participated sometime this week.

For objects:

Write a story with two important objects in play, one on display in the story and one hidden.

22 Revision Prompts from Matthew Salesses

As promised last month, here they are:

Here are 22 exercises I [Salesses] have given (as options) so far. Some are diagnostic. Some are more traditional prompts that require writing to a directive. They’re not in order of when I assigned them.

1.

Make a list of all the decisions your protagonist makes, every single one. Now change the order of the decisions your protagonist makes so that they follow a causal chain. Rearrange your story to reflect this new list of decisions. Cut at least one decision and, if this applies, the corresponding scene. Now restructure the story again. Many stories are not ultimately in complete chronological order. The *plot* should still be the same causal chain, but the story might utilize flashbacks, memories, flash forwards, imagined scenes, etc.

2.

Start by asking yourself the following questions

1. What is the story about?
2. What is the central conflict?
3. What are the stakes?
4. What does the protagonist want?
5. How does the character change or fail to change?
6. Where are the gaps where something could be added? What is missing?
7. What is extraneous?

3.

(I handed out paper split into three columns.)

Each column represents a page of your story. Draw lines across each column where the story has a natural break. You have to decide for yourself where these breaks may be. Many might be space breaks in the story, but also maybe breaks between characters, between timelines, between narrative summary and scene, etc. Then–in each individual section you’ve created:

1. Write down any action that happens in that section.
2. Write down what each section is “doing” for the story. What is its purpose(s)? To raise the stakes? To complicate a relationship? To move the plot? Etc.
3. Write down any themes that show up in each section.
4. Shade the sections that happen in the past.
5. Note any characters who show up.
6. Note any settings.
7. Write down any desires that show up and the conflicts that get in the way of those desires.

4.

Rearrange your story so only two “sections” you identified are in the same place. Every other section should be moved. If that means you have to add or delete scenes, please do so. Do whatever you need to do to make your story work again.

5.

Look for any place you can add characterization. Just read through and put an asterisk or make a mark where you could add anything at all to characterize. After you’ve done that, go back and add characterization at every single point. Think about characterizing in all of the ways we discussed in class, but especially through decision and action. Your additional characterization should make your story much longer. You probably have too much characterization now. Cut at least half of what you’ve added.

6.

Wherever a new character enters a story, write an extended introduction for that character, including what they look like, how they are dressed, what objects are associated with them, any identifying marks, any identifying habits or gestures, their way of seeing things, their attitude toward the world, their age, their ethnicity, their occupation, their family relationships and history, their relationship to the protagonist, the narrator’s or protagonist’s or even any other character’s opinion of them, their desires, their problems, their faults, etc. Also include at least one paragraph of backstory for each character in that introduction. What do you know about their pasts, how they’ve come to be who they are now?

Once you’ve done all of this, cut what you don’t need or move it elsewhere in the story and keep what you need. Keep what “gets the character in.” Is it that she’s the kind of person who stays up until everyone has gone to bed and waits for the neighborhood stray to poke its head into her yard, but never goes out to talk to it or pet it, just looks at it longingly? Etc.

7.

Skip forward in time at least ten years and write at least one more scene into your story in which the protagonist sees the dramatic consequences of a decision s/he made earlier.

8.

Add a source of outside conflict to your story. That is, add something big that comes in and forces itself on the plot, something like a toxic spill or an earthquake or a war or a rabid dog or a serial killer or a rapture. Don’t make this a small insertion but something that truly changes the story. You might think about what large outside conflict might connect to your character’s arc thematically, if that helps.

9.

Underline all of the “missed opportunities” in your story. Or, better yet, have a friend or your writing partner do this for you. Add as much as you can for every single missed opportunity. Now cut at least half of what you’ve added. Rearrange the story and do whatever you need to do to make the story work again.

10.

Identify the “symbolic action” in each scene–what does the protagonist do that represents her/his change from where/who s/he was at the beginning of the scene (even if this change is slight), and which changes the situation (even if this change is slight). Add symbolic action where you are missing it. Try to get the most significant symbolic action for your protagonist close to the end of the scene.

11.

Highlight everything in your story that is backstory. Take a look now and see what the balance between past and present looks like. For each piece of backstory, try to identify whether it is absolutely necessary. Then ask yourself where it is absolutely necessary—for one, ask yourself where it would put the most pressure on the present story. Remember that the past slows the story down by its nature—so it should be used to increase urgency in that particular present time. If you have a character encountering her mother on page 15, you don’t need the backstory about the mother that makes that encounter harrowing on page 3. The present and past need to work together in the right place, so that there’s a clear reason we go into the past when we do and a clear reason to go back to the present. What are those reasons?

Now delete as much as you can (that isn’t necessary). Try to put as much of the necessary backstory as you can into the present instead. Think about what information is being conveyed. Can you put the backstory in dialogue? Can you get the same information across through action? Attitude? Implication? If we need to know that the protagonist has a bad relationship with her mother, do we need backstory about that relationship? Or can we see this dramatized in the present scene and understand their dynamic without backstory? Is it about the change between the past or the present, or is it about the change that is going to happen in the present?

12.

Utilize objects in your story. Try to get objects into each scene. Try to associate each character with an object. Make objects that appear earlier in your story reappear later, either in their same form or transformed. How does your character interact with those objects differently the second (or third) time versus the first? Leave some objects, cut the ones that don’t seem to add anything. Make sure at least one object “tracks” through the story, appearing at multiple points and signaling change either through how the characters interact with it, or how they feel about it, or what it looks like, how it has changed, etc.

13.

Kill off one character or more. Or simply delete one character or more. Or fuse two characters or more together to make a single character. How does the story change? If you need another character again, make up a new one instead of returning to a character you cut.

14.

Consolidate your settings. Try to cut out as many settings as you can, to get the story down to 1-3 settings total. Make sure the setting has an effect on the story and is not just a place to set it.

15.

If your story is in first-person, write a scene from the narrator’s point of telling. Narrators are always telling a story from a future point, even in present tense (an implied future point just after the action or a future point far later). What is your narrator doing with her life when she is telling this story? Where is she? Who is she now? What does she know at that future point that is different from the present of the story’s action? Make sure this is a scene, dramatized, not just narrative summary. You may need to bring in another character.

16.

Start by underlining (or however you want to do it) anything that moves the character arc/inside story forward (thoughts, emotions, etc.). Then over-line (draw a line over the top of, or highlight or however you want to do it) anything that moves the outside story/plot forward. Look for places inside and outside story overlap. Look for places where the inside story could be heightened and add things there about the character arc. Look for places where there could be more action/outside story and add some external action.

Most of all: look for places where the inside story affects or should affect and does not yet affect the outside story (emotions that lead to action or so forth) and places where the outside story affects or should affect and does not yet affect the inside story (action leads to emotion or so forth). Now try to create causation between the two—inside and outside story—so that they are intricately linked.

Make sure both inside and outside story create an arc. Make sure both inside story and outside story have a beginning, middle, and end.

You might try to add a foil or mirror character (someone in the story who is the opposite or mirror of your protagonist), or at least identify and utilize those potential characters in your current draft, and see how your protagonist feels about and interacts with that character, how that foil/mirror changes or doesn’t change, etc.

17.

Write past your ending. Write one or two or more scenes after the end of your story. Even if these scenes don’t make it into the final version, they will help inform the final version. What happens after the end of your story? And don’t stop there: now write about what the consequences are of what happens after the end of your story.

18.

Add a scene with a character who arrives for only that one scene and interacts with your protagonist (a character from the world outside the story–an example would be a prank phone call or an old friend coming to town).

19.

Write one anchor scene with all of your main characters in the same room, maybe even talking. What is the setting, how do they interact with each other, how do they relate to each other, etc? Introduce everyone within one scene and then work off of that scene. Maybe you already have that scene and you reorganize your story to center it, or maybe you add that scene.

20.

Get closer in psychic distance (go further into your protagonist’s head) or make a switch in POV—for a scene or two or even for the entire story.

21.

Add a scene to reveal more about a minor character(s). What is the minor character doing while the rest of the story is going on? How do those actions or action affect what the protagonist must do or decide?

22.

Add a scene that changes the context in which we know the characters–maybe they go on a trip, or maybe they are always together but now we see them apart, or maybe someone important to them comes to visit and they have to be on their best behavior, etc.

I love this sort of thing! Next step is to figure out how to adapt these ideas to statistics teaching and learning.

Present Each Other’s Posters: An update after 15 years

This came up a few years back:

I was at a conference which had an excellent poster session. I realized the session would have been even better if the students with posters had been randomly assigned to stand next to and explain other students’ posters. Some of the benefits:

1. The process of reading a poster and learning about its material would be more fun if it was a collaborative effort with the presenter.

2. If you know that someone else will be presenting your poster, you’ll be motivated to make the poster more clear.

3. When presenting somebody else’s poster, you’ll learn the material. As the saying goes, the best way to learn a subject is to teach it.

4. The random assignment will lead to more inderdisciplinary understanding and, ultimately, collaboration.

I think just about all poster sessions should be done this way.

P.S. In reply to comments:

– David writes that my idea “misses the potential benefit to the owner of the poster of geting critical responses to their work.” The solution: instead of complete randomization, randomize the poster presenters into pairs, then put pairs next to each other. Student A can explain poster B, student B can explain poster A, and spectators can give their suggestions to the poster preparers.

– Mike writes that “one strong motivation for presenters is the opportunity to stand in front of you (and other members of the evaluation committee) and explain *their* work to you. Personally.” Sure, but I don’t think it’s bad if instead they’re explaining somebody else’s work. If I were a student, I think I’d enjoy explaining my fellow-students’ work to an outsider. The ensuing conversation might even result in some useful new ideas.

– Lawrence suggests that “the logic of your post apply to conference papers, too.” Maybe so.

I had this idea a while ago but never did anything with it, so I’m happy to see that Cosma Shalizi independently came up with the idea, tried it out, and it worked:

Some years ago, Henry Farrell and I [Shalizi] ran a series of workshops about cooperative problem-solving and collective cognition where we wanted to get people with very different disciplinary backgrounds . . . talking to each other productively. We hit upon an idea which worked much better than we had any right to hope. . . .

1. Every participant in the workshop writes a brief presentation, with enough lead time for the organizers to read them all. In the context of an inter-disciplinary workshop, what often works best is to describe an outstanding problem in the field.

2. The workshop organizers semi-randomly assign each participant’s presentation to someone else, with enough lead time that the assignee can study the presentation. Again, in the interdisciplinary context, the organizers try to make sure that there’s some hope of comprehension. (While I called this the “presentation exchange”, it needn’t be a strict swap, where A gets assignd B’s presentation and vice versa.)

3. Everyone gives the presentation they were assigned, followed by their own comments on what they found interesting / cool / provocative and what they found incomprehensible. No one gives the presentation they wrote. . . .

Doing this at the beginning of the workshop helps make sure that everyone has some comprehension of what everyone else is talking about, or at least that mis-apprehensions or failures to communicate are laid bare. It can help break up the inevitable disciplinary/personal cliques. It can, and has, spark actual collaborations across disciplines. And, finally, many people report that knowing their presentation is going to be given by someone else forces them to write with unusual clarity and awareness of their own expert blind-spots. . . .

I’ve also used it for disciplinary workshops — because every discipline is a fractal (or lattice) of sub-sub-…-sub-disciplinary specialization. I’ve also used it for student project classes, at both the undergrad and graduate level. . . .

I’m so happy to hear about this.

Awesome online graph guessing game. And scatterplot charades.

Julian Gerez points to this awesome time-series guessing game from Ari Jigarjian. The above image gives an example. Stare at the graph for awhile and figure out which is the correct option.

I don’t quite know how Jigarjian does this—where he gets the data and the different options in the multiple-choice set. Does he just start with a graph and then come up with a few alternative stories that could fit, or is there some more automatic procedure going on? In any case, it’s a fun game. A new one comes every day. Some are easy, some not so easy. I guess it depends primarily on how closely your background knowledge lines up with the day’s topic, but also, more interestingly, on how much you can work out the solution by thinking things through.

This graph guessing game reminds me of scatterplot charades, a game that we introduce in section 3.3 of Active Statistics:

Students do this activity in pairs. Each student should come to class with a scatterplot on some interesting topic printed on paper or visible on their computer or phone, and then reveal the plot to the other student in the pair, a bit at a time, starting with the dots only and then successively uncovering units, axes and titles. At each stage, the other student should try to guess what is being plotted, with the final graph being the reveal.

In the book we give four examples. Here are two of them:

The time-series guessing game is different than scatterplot charades in being less interactive, but fun in its own way. The interactivity of scatterplot charades makes for a good classroom demonstration; the non-interactivity of the time-series guessing game makes for a good online app.

“Alphabetical order of surnames may affect grading”

A Beatles fan points to this press release:

An analysis by University of Michigan researchers of more than 30 million grading records from U-M finds students with alphabetically lower-ranked names receive lower grades. This is due to sequential grading biases and the default order of students’ submissions in Canvas — the most widely used online learning management system — which is based on alphabetical rank of their surnames. . . .

The researchers collected available historical data of all programs, students and assignments on Canvas from the fall 2014 semester to the summer 2022 semester. They supplemented the Canvas data with university registrar data, which contains detailed information about students’ backgrounds, demographics and learning trajectories at the university. . . .

Their research uncovered a clear pattern of a decline in grading quality as graders evaluate more assignments. Wang said students whose surnames start with A, B, C, D or E received a 0.3-point higher grade out of 100 possible points than compared with when they were graded randomly. Likewise, students with later-in-the-alphabet surnames received a 0.3-point lower grade — creating a 0.6-point gap.

Wang noted that for a small group of graders (about 5%) that grade from Z to A, the grade gap flips as expected: A-E students are worse off, while W-Z students receive higher grades relative to what they would receive when graded randomly. . . .

Here’s the research article, by Zhihan (Helen) Wang, Jiaxin Pei, and Jun Li.

The result seems plausible to me.

What I’d really like to see is some graphs. To start with, a plot showing average grade on the y-axis vs. first letter of surname (from A to Z) on x-axis, with two sets of dots: red dots for the assignments graded in surname initial, black dots for the assignments graded in quasi-random order order, and blue dots for the one-third of assignments that were not graded in either of those orders. And then separate graphs for social science, humanities, engineering, science, and medicine. With 30 million observations, there should be more than enough data to make all these plots.

The regression analyses are fine, sure, whatever, but I wanna see the data. Also, I want to see all 26 letters. For some reason, in their they put the surnames into five bins. I guess the data are probably owned by the University of Michigan and not available for reanalysis.

Free Book of Stories, Activities, Computer Demonstrations, and Problems in Applied Regression and Causal Inference

This fun, readable book is here, and here’s the description:

This book provides statistics instructors and students with complete classroom material for a one- or two-semester course on applied regression and causal inference. It is built around 52 stories, 52 class-participation activities, 52 hands-on computer demonstrations, and 52 discussion problems that allow instructors and students to explore in a fun way the real-world complexity of the subject. The book fosters an engaging “flipped classroom” environment with a focus on visualization and understanding. The book provides instructors with frameworks for self-study or for structuring the course, along with tips for maintaining student engagement at all levels, and practice exam questions to help guide learning. Designed to accompany the authors’ previous textbook Regression and Other Stories, its modular nature and wealth of material allow this book to be adapted to different courses and texts or be used by learners as a hands-on workbook.

I really like this book, not just for teaching but just to read through, as it’s full of stories that are short enough to read in just one bite but with enough detail to give you insight into applied statistics in a way that you wouldn’t get from usual textbook examples.

And the class-participation activities . . . they work in class but they’re also fun just to read about.

As for the computer demonstrations: we recommend you type them in, line by line, on your own as a way to teach yourself applied regression in R.

And now the book is free—just click through and download it!

“The Active Seating Zone (An Educational Experiment)”

University of Oregon physics professor Raghu Parthasarathy writes:

How can we make a large class more lively? I [Raghu] tackled this question last term by allowing students to self-partition into different sets, with dramatic, and remarkably encouraging, results. . . .

I often teach “general education” classes aimed at non-science-majors, including this one a few times previously. The prior term . . . was painful, with a lack of student engagement that was depressing for me and for the students who were enthusiastic about the topic. “Active learning” activities, especially involving discussions among groups, fell flat; questions were minimal; the atmosphere was lifeless. Outcomes of learning assessments (quizzes, exams) were also poor. . . .

What can we do about a listless class? Especially: What can we do that isn’t paternalistic — that acknowledges that students are adults and can participate or not as they wish . . .

I realized that engagement requires a critical mass: if you’re an engaged student, there’s a question posed that asks for discussion among students, and the students near you are zoned out or watching videos on their phones, your engagement is futile. . . . You’ll need other engaged students to sustain any activity.

What to do about this? Raghu came up with an idea and tried it out:

How can we make a supercritical concentration of enthusiastic students? By putting them all together. After the first week of the term, when students had a sense of what the course is about and my approach to asking and inviting questions, I asked students to move. We’d have two zones in the classroom, an “active” zone in which I’d expect students to interact with me and with each other, and an “inactive” zone, in which I’d have no such expectation. I made clear that there was no grade advantage or penalty associated with either choice. . . .

The classroom is a large lecture hall, shown below, about 18 seats wide and 14 rows deep, with a capacity of about 220. The class enrollment was about 110. The “active” zone would be the front half of the middle part (green shading in the photo); the “inactive” zone would be the back half of the middle and all of the sides (orange).

For the rest of the term, the students self-segregated. What happened next?

Next comes the evaluation:

The clearest outcome: a lively classroom! This exceeded my expectations — students in the active section were very active, talking to each other, asking all sorts of questions, and commenting in ways that spurred other students to comment. The active contingent was around a third of the class, but the room was perhaps twice as animated as any general-education class I’ve taught in many years. . . .

Student questions and comments are valuable for everyone regardless of where they sit; they often clarify topics, or bring up issues that students especially care about.

After every class, students had to submit “post-class notes,” brief summaries that could also include questions or requests that I would (almost always) address at the start of the next class.

Good to be reminded that there’s no reason that active learning should come at the expense of other forms of feedback. Raghu’s post-class notes sound very similar to my pre-class requirement that students post a question or answer in a Google doc, which provides a basis for class discussion.

But back to Raghu’s experiment:

How well did students in the different zones learn the material? Here’s a graph, one of many I made, that shows scores on the midterm exam sorted by seating section. (I asked on the exam: What area do you usually sit in?)

I was expecting a sizeable difference, but I was stunned by the contrast between the zones: on average, a two letter grade difference. . . . Actually, I wasn’t that stunned because I had made similar graphs in prior weeks for quiz results that revealed a roughly one letter grade difference. Notably, I showed these graphs to the class. We discussed the data and potential mechanisms, noting that “correlation is not causation,” etc. The active-area students were themselves the best advocates for their area, encouraging others to come. Few students moved, however. . . . The graph for the final exam is almost identical. . . .

And, yes, he is fully aware that the differences in the groups can quite possibly be explained by selection rather than any effects of class participation. That said, I do think class participation improves learning, so I’d expect that these differences are not entirely explained by selection.

Raghu talks about how he plans to implement this the next time he teaches. My suggestion is to include a pre-test—that’s just about always a good idea if you’re trying to estimate how much is being learned and to compare among students.

P.S. I like Raghu’s idea. I would not do it in my own classes because I want all my students to be active. But I understand that what works in a small class at Columbia might not work in the larger classes that Raghu teaches.

An apparent paradox regarding hypothesis tests and rejection regions

Ron Bloom wrote in with a question:

The following pseudo-conundrum is “classical” and “frequentist” — no priors involved; only two PDFS (completely specified) and a “likelihood” inference. The conundrum however may be interesting to you in its simple scope; and perhaps you can see the resolution. I cannot; and it is causing me to experience something along the lines of what Kendall says somewhere (about something else entirely) about “… the problem has that aspect of certain optical illusions; giving different appearances depending upon how one looks at it…”

Suppose I have p(x|mu0) and p(x|mu1) both weighted Gaussian sums with stipulated standard deviations and stipulated weights; for definiteness say both are three term sums; moreover all three constituent Gaussians have the common mean named in the expression p(x|mu). so they look like “heavy tailed” Gaussians at least from a distance.

Suppose mu0 < mu1 are both stipulated too; in fact everything is stipulated; so this is *not* an estimation problem; nothing to do with "EM" or maximum likelihood. Just classical test between two simple alternatives. A single datum is acquired: x. The classical procedure for deciding between "H0" and "H1" is to choose the test "size". Put down the threshold cut T on the right tail of p(x|mu0) so the area above that cut is the test size; the power of that test against the stipulated alternative H1 is of course the area above T under p(x|mu1). When the PDFs are Gaussian or in an exponential family or when "a sufficient statistic is available" this procedure above is identical to what one does if he uses the Neyman-Pearson likelihood criterion: which amounts to putting a cut with the same "size" on the more complicated random variable L(x) = p(x|mu0)/p(x|mu1). When the PDFS are nicely behaved or more generally *monotonic* the probability statement about a rejection test on the variate L(x) translates into a a statement about a rejection test on the variate (x) simpliciter. But in the case of this "nice" Gaussian mixture I discover that for mu1 sufficiently close to mu0 (and certain combinations of weights and standard deviations) that the likelihood ratio L(X) is *not* monotonic and so I am suddenly faced with an unexpected perplexity: it seems (to the eye anyway) that there's only one way set up a right-tailed rejection test for such a pair of simple hypotheses: and yet the Neyman Pearson argument seems to say that making that cut using the PDF of L(x) and making that cut using p0(x|mu0) itself will not yield the same "x" --- for the same test size. Can you see the resolution of this (pseudo)-conundrum?

I replied: Yes, I can see how this would happen. Whether Neyman-Pearson or Bayes, if you believe the model, the relevant information is the likelihood ratio, which I can well believe in this example is not a monotonically increasing then decreasing function of x. That’s just the way it is! It doesn’t seem like a paradox to me, as there’s no theoretical result that would imply that the ratio of two unimodal functions is itself unimodal.

Bloom responded:

I finally was able to see what is obvious. That indeed there are many alternative “rejection regions of the same size” and if the PDF of the “alternative” is bumpy (as in this example) or more generally if the likelihood ratio is not monotone (and this is *not* “easy to see” for ratios of “simple” Gaussian mixtures all of whose kernels have common mean) then indeed the best (most powerful) test is not necessarily the upper tail rejection test. See my badly drawn diagram. This by the way can be filed under your topic of how the Gaussianity ansatz sufficiently well-learned can really impede insights that would otherwise be patently obvious (to the unlearned).

Free Textbook on Applied Regression and Causal Inference

It’s here, complete with examples and code.

The code is free as in free speech, the book is free as in free beer.

Here are the contents:

Part 1: Fundamentals
1. Overview
2. Data and measurement
3. Some basic methods in mathematics and probability
4. Statistical inference
5. Simulation

Part 2: Linear regression
6. Background on regression modeling
7. Linear regression with a single predictor
8. Fitting regression models
9. Prediction and Bayesian inference
10. Linear regression with multiple predictors
11. Assumptions, diagnostics, and model evaluation
12. Transformations and regression

Part 3: Generalized linear models
13. Logistic regression
14. Working with logistic regression
15. Other generalized linear models

Part 4: Before and after fitting a regression
16. Design and sample size decisions
17. Poststratification and missing-data imputation

Part 5: Causal inference
18. Causal inference and randomized experiments
19. Causal inference using regression on the treatment variable
20. Observational studies with all confounders assumed to be measured
21. Additional topics in causal inference

Part 6: What comes next?
22. Advanced regression and multilevel models

And here are the contents, rewritten in fun form:

• Part 1:
– Chapter 1: Prediction as a unifying theme in statistics and causal inference.
– Chapter 2: Data collection and visualization are important.
– Chapter 3: Here’s the math you actually need to know.
– Chapter 4: Time to unlearn what you thought you knew about statistics.
– Chapter 5: You don’t understand your model until you can simulate from it.
• Part 2:
– Chapter 6: Let’s think deeply about regression.
– Chapter 7: You can’t just do regression, you have to understand regression.
– Chapter 8: Least squares and all that.
– Chapter 9: Let’s be clear about our uncertainty and about our prior knowledge.
– Chapter 10: You don’t just fit models, you build models.
– Chapter 11: Can you convince me to trust your model?
– Chapter 12: Only fools work on the raw scale.
• Part 3:
– Chapter 13: Modeling probabilities.
– Chapter 14: Logistic regression pro tips.
– Chapter 15: Building models from the inside out.
• Part 4:
– Chapter 16: To understand the past, you must first know the future.
– Chapter 17: Enough about your data. Tell me about the population.
• Part 5:
– Chapter 18: How can flipping a coin help you estimate causal effects?
– Chapter 19: Using correlation and assumptions to infer causation.
– Chapter 20: Causal inference is just a kind of prediction.
– Chapter 21: More assumptions, more problems.
• Part 6:
– Chapter 22: Who’s got next?

There’s just tons of stuff here. Lots of examples, lots of code, lots of graphs, lots of explanation. Regression is a lot more interesting than you might have thought!

And all of this is free.

You might also be interested in this free book on Bayesian data analysis and this free software for Bayesian modeling and inference.

Last week’s summer school on probabilistic AI

(this post is by Charles)

Last week, the Nordic Summer School on Probabilistic AI took place in Copenhagen. I was fortunate to attend some of it (3 out of 5 days), and teach half a day on Monte Carlo methods. All the course material is available online. This includes slides, and extensive code demo and exercises. I believe recordings of the lectures will be released.

I’d like to share some thoughts/ideas that came up in class and in the hallway, particularly on the topics of variational inference (VI) and Markov chain Monte Carlo (MCMC). This by no means covers all the subjects taught during the summer school; these are simply two topics close to home for me. (The blogger’s bias)

VI: the main protagonist

VI played the more prominent role: not only was there a dedicated full day on the topic, many methods during the session on deep learning used VI for model training.

Not all of VI is black box

I enjoyed revisiting VI from a more classical perspective, notably coordinate ascent VI (CAVI), which requires tailoring the approximating family to the model being fitted. Contrast this with black box VI, where we try to come up with a single variational family, which (hopefully) works well across a range of models. Of course, in the context of the Bayesian workflow, black box algorithms are desirable. But where these fall short, more bespoke solutions can be worth pursuing.

A small note on estimating uncertainty with VI

The discussion did not shy away from VI’s potential shortcoming when estimating the uncertainty of a target distribution. Early exercises examined how well VI estimates precision. I found this choice interesting, since I’m more used to thinking about variance (or the even more intuitive standard deviation). In the context of VI, the distinction matters: as my colleagues, Lawrence Saul and Loucas Pillaud-Vivien, and I recently showed, VI can simultaneously estimate precision very well and variance very poorly! (see here; see also the classic by Turner and Sahini (2011)).

VI for full Bayes and for maximum likelihood estimation

I also noted two distinct applications of VI. First, we approximated the posterior distribution of a Bayesian regression, and our goal was to estimate the posterior mean and precision of interpretable parameters.

Secondly, we did maximum likelihood estimation (MLE), with the usual trick of maximizing the evidence lower bound (ELBO). In this latter case, VI was used to marginalize out latent variables and approximate a marginal likelihood, in the manner of an expectation-maximization (EM) algorithm. Here, there was no immediate requirement for VI to quantify uncertainty — could this explain why VI works well in this type of application? (Something to dig deeper).

The variational autoencoder (VAE) served as a canonical example. The goal was to point estimate the weights of the “decoding” neural network, by maximizing the likelihood after marginalizing the latent variables. Jes Frellen, the instructor, mention an application in which the authors use a Bayesian VAE (Daxberger et al, 2019), i.e. train a Bayesian neural network. This brings us back to the full Bayesian case, and I added the paper to my reading list.

ML methods need to be broken down into a model and a training procedure

During the deep learning module, Jes Frellen carefully distinguished the modeling and the training (“inference” in statistics jargon). Many ML methods (e.g, VAE) include both a model (e.g., the “decoder”) and a learning method (e.g. the “encoder” or the “amortized VI”). It is enlightening to separate the two: we might for example try the same deep learning model with a different inference algorithm. Conversely, we might realize that the inference algorithm in the VAE, i.e. amortized VI, can actually be applied to a broader range of models (see for example Agrawal and Domke (2021); also my paper with Dave Blei).

And now: Monte Carlo methods

In the midst of all this came the time to the learn about Monte Carlo methods :) I had a lively lunch conversation with students about whether Monte Carlo methods scale in high dimensions. (It would be worth writing a dedicated blog post on the subject; for now, I’ll simply state the short answer: no, there is no intrinsic curse of dimensionality. The longer answer is… longer). The module I taught covered standard Monte Carlo (for example to estimate the ELBO), Markov chain Monte Carlo (MCMC), and importance sampling (to estimate leave-one-out predictions based on posterior samples… from MCMC or from VI…).

In principle, MCMC and VI solve the same problem, and so we ended the module with a high-level comparison between the two approaches. There is a somewhat general consensus that, subject to strict computational budget (i.e. limited computation relative to complexity/size of the model) VI can achieve better results. However, as computation increases, MCMC eventually achieves a smaller error. This corresponds to the sketch in our Bayesian Workflow paper (Figure 5). Two students presenting at the poster session (Devina Mohan and Benhard—whose last name I didn’t write in my notes… :’( ) observed this trade-off when applying VI and MCMC to their problem.

I believe this trade-off needs to be formalized and better understood. I’m not aware of any theoretical or even conceptual justification for why we might expect this trade-off between VI and MCMC, even if empirical evidence exists…

The other thing I highlighted, building on previous lectures, is that with MCMC we can separately check the inference (using diagnostics such as R-hat, ESS estimates, etc.) and check the trained model (with posterior predictive checks, cross-validation, etc.). In VI, we are typically confined to only doing the second. If the checks for the trained model are good, that’s great; and who cares about whether the posterior inference is accurate? (One might argue.) On the other hand, if the checks fail, we will not know whether the fault lies in the model or in the inference, or in both. To go back to the VAE: do we have a problem with the decoder or with the encoder?

That said, they are promising approaches to diagnosing the inference of VI: see Yao et al (2018), Huggins et al (2020), Biswas and Mackay (2024), and of course, good old (expensive) simulation based calibration checking (Talts et al, 2018).

Some other notes

The book Deep Generative Modeling by Jakub Tomczak was recommended by several speakers. I myself have this book on my desk. I’ve only read it selectively but every section I worked through was excellent and I definitely have a lot to learn from this textbook.

Ole Winther taught a one-hour crash course on stochastic calculus (!!), explaining how SDEs arise as a limiting case of ladder VAEs (wow!). I really appreciated the derivation of Ito’s rule.

Antonio Vergari introduced probabilistic circuits as a “love letter to mixture models”. This demystified the subject and left me wanting to learn more. Several students I spoke with after class expressed a similar sentiment.

Copenhagen was really beautiful and a good deal of fun. I hope to visit again.

Some fun basketball graphs

Aki pointed me to these graphs from Kirk Goldsberry. A few years old now, but still fun:

The above graph would be good one for my communications class. Some good features:

1. Clear title and labeling: That’s important. It helps for readers to get the point right away.

2. Juxtaposition of multiple small plots. I’d actually prefer a series of three plots—1997, 2009, 2019—as that would make the trajectory even clearer. Also, are the data available to go back in time before 1997? That would be interesting too. In general I would like time series to be longer.

I don’t think the color scheme is ideal. You can kind of figure it out because the patterns are locally monotonic, so you can see which areas have higher rates, but my general feeling about this kind of sharp color change is that it can create visual artifacts and distort our understanding of the data. I still love this graph; I just think that there’s some room for improvement. Here’s another where I think the color scheme gets in the way.

Here’s another great graph:

Super-clean, super-clear, makes the point very well. It reminds me of a general point in statistics, that the best thing is not to have an amazing method but to ask a good question and get good data.

And here are a couple of possible improvements:

– If the data are available, extend the line earlier in time.

– Add another line for when Jordan was playing, showing his own percentage of this sort of shot. The graph says it’s his favorite shot; let’s see the data.

– Include other lines or plots showing other shots. Why not?

Again, it’s no criticism of these graphs to say that they maybe could be improved. That’s how we can appreciate art: not just by staring at it and saying how great it is, but thinking about how it could be different.

P.S. Goldsberry has a webpage that links to a bunch of cool basketball-related images. Unfortunately (from my perspective), he seems to have moved away from statistical visualizations and gone more in the direction of infographics, for example here:

This is fine—who am I to say how he should best reach his audience?—it’s just not focused a bit less on communicating patterns in the data and a bit more on creating a visual impression. I’m guessing that Goldsberry makes lots of statistical graphics on the way to constructing each of these visualizations. His webpage features lots of amusing basketball cartoons with a distinctive visual style, so I can kinda see where he’s going here.

In Stan, “~” should be called a “distribution statement,” not a “sampling statement.”

Aki writes:

The sampling statement name for tilde (~) statements in Stan documentation has been replaced with distribution statement. The background is

  • the tilde (~) statement does not do any sampling (but due to the sampling statement name, some people had wrongly assumed so, which caused confusion)
  • in the literature, tilde (~) is usually read “is distributed as”
  • right side of the tilde (~) statement can only be a built-in or user defined distribution
  • distribution statement makes it more natural to discuss the difference in defining the model with collection of distributions or with log density increments

The change affects only the documentation. The documentation has been revised to be more clear on differences in describing models with distribution statements and increment log density (target +=) statements.

As this blog lacks equations support, it’s best to go to read the updated documentation on distribution statement.

In addition, Stan User’s Guide sections on censored data models and zero-inflated count models are good examples illustrating the difference between describing a data model with distribution statement or writing the likelihood directly with increment log density statement.

This doesn’t change Stan’s capabilities or performance in any way, but I think it’s still important!  I’ve often heard people say that the ~ in a Stan model corresponds to sampling, and it doesn’t!

Also don’t forget this example:

theta ~ normal(0, 1);
theta ~ normal(0, 1);

If you include the above two lines of code in your Stan model, the result is not a redundant specification that theta is distributed as normal(0, 1). Rather, the above two lines add two terms to the target function. They are equivalent to:

target += normal_lpdf(theta | 0, 1);
target += normal_lpdf(theta | 0, 1);

and equivalent to the explicit and less computationally-efficient expression:

target += -0.5 * log(2*pi()) - 0.5 * square(theta);
target += -0.5 * log(2*pi()) - 0.5 * square(theta);

and, because of the convolution properties of the normal distribution, equivalent to the single line of code:

theta ~ normal(0, 1/sqrt(2));

or

target += normal_lpdf(theta | 0, 1/sqrt(2));

Anyway, it’s not a “sampling statement.” This misinterpretation was bugging us for awhile and then we just recently noticed the faulty terminology in the manual (which could well be something that I used to write or say myself!), so we fixed it!

Stan does have a sampling statement; it’s called “random number generation”

The funny thing is that you can do sampling in Stan! It has to be done in the generated quantities block; for example:

phi = normal_rng(0, 1);

What happens if you include the following two lines in your generated quantities block?

phi = normal_rng(0, 1);
phi = normal_rng(0, 1);

Stan code is executed sequentially, and the above code will first sample phi from a unit normal, then sample phi again from a unit normal. So the first line above is completely overwritten, in the same way that if you write, a=2; a=3; in Stan (or just about any other language), it will give the same result as a simple a=3;.

Stan of course also does sampling in its posterior inference. That’s something different. Here we’re talking about random sampling within Stan.

[Edit: Fixed RNG notation.]

New online Stan course: 80 videos + hosted live coding environment

Scott Spencer and AthlyticZ have a new online Stan course coming out soon and it looks fantastic! Scott has a ton of experience with Stan and is a great teacher (we’ve co-taught in-person Stan classes together several times). The course uses examples from sports, but the coding and modeling techniques are applicable to any domain. Check out Scott’s post on the Stan forum for all the details.

Questions and Answers for Applied Statistics and Multilevel Modeling

Last semester, every student taking my course was required to contribute before each class to a shared Google doc by putting in a question about the reading or the homework, or by answering another student’s question. The material on this document helped us guide discussion during the class.

At the end of the semester, the students were required to add one more question, which then I responded to in the document itself.

Here it is!

“‘Pure Craft’ Is a Lie” and other essays by Matthew Salesses

I came across a bunch of online essays—“posts”—by Matthew Salesses, a professor of writing at Columbia:

‘Pure Craft’ Is a Lie

How Do We Teach Revision?

Who’s at the Center of Workshop and Who Should Be?

7 Things I Teach: A Manifesto

Also 22 Revision Prompts, which are so great that I’ll devote a separate post to them.

As a writer and a teacher of creative work (yes, statistical analysis is creative work!), I’m very interested in the above topics, and Salesses has a lot of interesting things to say.

I should warn you that he has a strong political take, and the political perspective is central to his thinking—but I think his advice should be valuable even to readers who don’t share his views on cultural politics. I’d draw the analogy to Tom Wolfe, whose cultural conservatism informs his views on art, views that should be of interest even to people to disagree with him on politics. It’s possible to be a big fan of Tom Wolfe while at the same time thinking it was pitiful for him to take his cultural politics so far as to deny evolution. Anyway, you can think what you want about Salesses’s political views and still appreciate his thoughts on writing and teaching, in the same way as you can still enjoy The Painted Word and From Bauhaus to Our House without having to subscribe to Wolfe’s political views. Pushing a position to its extreme can yield interesting results.

And more!

It seems that Salesses was doing this Pleiades Magazine blog for some period in 2015. Some googling turned up this fun list. Here’s Salesses:

I have been thinking for a while about how our attempts to define craft terms influence our students’ (and our own) aesthetics, and I have wanted to try other definitions. How to define “tone,” for example, seemed especially difficult. Here are some alternate definitions, for now:

Tone: an orientation toward the world

Plot: acceptance or rejection of consequences

Conflict: what gives or takes away the illusion of free will

Character arc: how a character changes or fails to change

Story arc: how the world in which the character lives is changed or fails to be changed

Characterization: what makes the character different from everyone else

Relatability: is it clear how the implied author is presenting the characters

Believability: the differences and similarities between various characters’ expectations

Vulnerability: the real author’s stakes in the implied author

Setting: awareness of the world

Pacing: modulation of breath

Structure: the organization of meaning

I guess that he wrote some other cool posts but I don’t know how many, and I can’t find any link that lets me scroll through them.

A few years after writing those posts, Salesses published a book, Craft in the Real World, which . . . is on sale at the local bookstore. I think I’ll buy it!

According to the publisher’s website, Craft in the Real World is an NPR Best Book of the Year, an Esquire Best Nonfiction Book of the Year, an Electric Literature Best Book of the Year. But I hadn’t heard of it until this recent google, following up on Salesses’s posts. It’s a big world out there, when a book written by a Columbia colleague, on a topic that interests me, which received multiple awards, was unfamiliar to me. The funny thing is, when I read the above-linked posts, I thought, This guy should write a book! And it turns out he did.

I recommend reading all this along with the advice of writing coach Thomas Basbøll.

Deadwood

I was thinking the other day about tenured faculty who don’t do their job or who do the absolute minimum: I’m talking about professors who never show up to work, do no research, and whose teaching is at the absolute minimum level of quality. Such people can actually be a negative in that they give students a substandard level of education and can make it more difficult to institute changes. Because of tenure, it’s difficult for such people to be fired. In theory, the administration should be able to take away their offices (no need for an office if you never come in) and reduce their salaries; instead, there’s a default to just keep giving everyone something close to the same annual salary increase. I can understand these constraints—performance in teaching, research, and service can be difficult to judge, and if it were too easy to take away office space and reduce salaries, then the admin could do this for all sorts of bad reasons. Indeed, universities can have non-tenured deadwood faculty too (for example, this guy): once someone’s on the inside, he can stay there for a long time.

Ultimately, we just accept this as part of the cost of doing business—just about every organization ends up with high-paid employees with negative value. Think of all the business executives who extract massive rents while at best pushing paper around and wasting people’s time, and at worst making bad decisions that drive their companies into the ground. The problem of faculty deadwood is just particularly salient to me because I’ve seen it as a student and teacher.

I’m just complaining here; I have no solutions to offer. A few years at Columbia we had a longtime professor of astronomy who opposed the tenure system in principle: he would’ve been tenured had he wanted to be, but he chose to be on five-year contracts. Maybe that would be a good idea for everyone. I’m not sure, though: I have a feeling that, if we were to switch to five-year contracts for the permanent faculty, that it would either be a rubber stamp (so that the deadwood guys would stay around forever anyway), or that it would be a huge paperwork hassle (an endless cycle of forms and committees for the faculty), or perhaps both, the worst of both worlds. The must unproductive faculty would be impossible to get rid of, and the most productive would just quit because they wouldn’t to deal with the reviews.

P.S. Another solution would be that the deadwood faculty would feel bad about drawing a salary while not doing their job of teaching/research/service, but it would take an exceptional person to quit a job where they pay you a lot and you don’t have to work or even show up to the office. Especially given that, if you don’t quit, you can wait for enough years and then retire with excellent pension benefits.