Some people like coding and they like drawing too. What do they have in common?
I like to code—I don’t looove it, but I like it ok and I do it a lot—but I find drawing to be very difficult. I can keep tinkering with my code to get it to look like whatever I want, but I feel like with drawing I have very little control. I have an idea in my mind of what I want the drawing to look like, but my pencil does not follow my orders.
Coding is digital and drawing is analog. Is it just that? I don’t think so. I think that if I were doing digital drawing, pixel by pixel or whatever, I’d still struggle.
On the other hand, I like drawing a lot and find it super useful if I’m drawing graphs of data or math patterns.
Here’s what I wrote a few years ago:
I was trying to draw Bert and Ernie the other day, and it was really difficult. I had pictures of them right next to me, but my drawings were just incredibly crude, more “linguistic” than “visual” in the sense that I was portraying key aspect of Bert and Ernie but in pictures that didn’t look anything like them. I knew that drawing was difficult—every once in awhile, I sit for an hour to draw a scene, and it’s always a lot of work to get it to look anything like what I’m seeing—but I didn’t realize it would be so hard to draw cartoon characters!
This got me to thinking about the students in my statistics classes. When I ask them to sketch a scatterplot of data, or to plot some function, they can never draw a realistic-looking picture. Their density functions don’t go to zero in the tails, the scatter in their scatterplots does not match their standard deviations, E(y|x) does not equal their regression line, and so forth. For example, when asked to draw a potential scatterplot of earnings vs. income, they have difficulty with the x-axis (most people are between 60 and 75 inches in height) and having the data consistent with the regression line, while having all earnings be nonnegative. (Yes, it’s better to model on the log scale or whatever, but that’s not the point of this this exercise.)
Anyway, the students just can’t make these graphs look right, which has always frustrated me. But my Bert and Ernie experience suggests that I’m thinking of it the wrong way. Maybe they need lots and lots of practice before they can draw realistic functions and scatterplots.
When I do statistics-style drawings, I can make things look right, and accuracy really matters to me. But ask me to draw a cat or a dog or a house? Forget it. What’s going on here? More introspection and experimentation is needed. The point is, coding kind of is like drawing. there’s something going on here.