Friday, August 26, 2016

Mindspace and Geospace

One of the most foolish things I've ever done was to pour my heart out and declare strong emotions for a girl that I barely knew who lived far away. In one sense I feel proud of how unabashedly I said the most foolish things. It showed me a capacity for feeling that I didn't know I had. But at the same time, the poor girl had no choice but to let me down and ask me to back off.

One of the things she said to me, with all of the reasonableness in the world, is that she wanted to keep our relationship strictly a friendship, at least in part due to a great geographic distance between us.

Now this is imminently reasonable. No one could fault her for feeling this way. It's entirely human. But I began to wonder why I didn't feel the same way. In fact, I had been part of a long-term, long-distance relationship earlier in my life: living in Indiana while the girl I was madly in love with at the time lived in Colorado. That relationship lasted three years: the first 18 months between Colorado and Indiana and the final year also spent often about an hour apart on the East Coast. The relationship had many wonderful parts, but ultimately didn't work out. Yet neither I nor my partner ever felt significantly bothered by the geographical distance.

Why is that? Are some people oriented such that long-distance relationships don't bother them? Am I such a person? I started to ask myself a lot of these questions and the thing I came up with is that really there are many ways to be distant from someone else. When living in Indiana, there has been a large collection of Amish people living nearby. But really they couldn't have been farther away. I speed past their horse-drawn buggies blasting Arcade Fire over a bluetooth connection from a device in the palm of my hand that contains more sophisticated technology than the entirety of that particular Amish commune.

So that's cultural distance and of course we probably all agree that relationships don't tend to blossom between people who are culturally very distant. I think there is a bit more to it than culture. I came up with the label "mindspace" to represent the vast mental space where things like culture, sense of humor, personality style, and other mental characteristics live. The contrast would be "geospace" -- the space of physical bodies, oceans, miles of prairie, highways, sky, and physical distance.

What is bigger, mindspace or geospace? I argue that mindspace is so much bigger than geospace that it makes geospace almost entirely irrelevant -- as long as physical communication is still possible (so that two minds can exchange info). Geospace feels big to us because it's what we're adapted to care about. Geospace meant life and death on the savanna. Distance to the river. Distance back to the tribe for help. Distance to scramble up that tree. Deep in our ancient meat software we've got programs dedicated to the awe of geospace distances.

But we're far worse at understanding mindspace distances. We approximate them with memes, like copying popular trends or expressing allegiance to (or ironic disregard for) the prevailing political coalitions in our various communities. These are frankly small potatoes. There are so many variations on human mentality and so many different directions to engender that variety: openness to new experiences, sexuality, kindness, response to stressful situations, creativity, worldview, emphasis on faith, intuition. The distances between two people on even just one of these scales can be much larger than the visceral meaning of their physical distance.

What I realized is that in my mind, I automatically evaluate potential relationship partners almost totally in terms of mindspace distance. Do they live far away from me in terms of the aspects of their mental landscape? The feeling of love at first sight for me is a reflection of instantly recognizing characteristics that make someone close to me in mindspace. Their geospace distance basically doesn't even factor in at all. It's just too insignificant.

It has helped me to understand this about myself because not everyone feels this way. Even people whom I immediately recognize as very close to me in mindspace don't necessarily put mindspace distance above geospace distance. And in fact many people subscribe to prevailing wisdom that you should make something like a personal rule: don't even evaluate the mindspace distance between you and someone else unless that person already has a small geospace distance. Basically, imagine a geospace radius around yourself. Everyone inside that radius is allowed to be considered for mindspace suitability. Everyone outside: tough luck.

This is alien to me ... because out of the total distance (mindspace and geospace), geospace distance is perhaps the least meaningful part. To put it another way: if you see someone outside of your geospace radius who is nonetheless amazingly close to you in mindspace, their mindspace-closeness is such an amazing rarity that you should be falling all over yourself to establish a strong connection. Mindspace-closeness is so, so precious and rare that when you experience it in another person, it's not unreasonable to suddenly feel like you need to drop everything to secure it.

This last realization led to a further discovery: the weirder you are in mindspace, the more you will emphasize mindspace-closeness above geospace-closeness. If your mental characteristics differ from most of the people you meet, then by definition geospace-closeness isn't helpful to you for finding a partner. So naturally, you'll stop counting physical proximity so highly. On the other hand, if your mental characteristics are more or less the same as just about everyone you meet, then you won't believe that mindspace-closeness is as exceptional as it really is -- being mentally close to others will be a common experience for you.

This explains why the radius rule I described earlier is such a common belief. If most people are near some center of the distribution of mental traits among their community, then that large fraction of the population will be well-served by having a geographic closeness prefilter. And people on the fringes between average and weird will want to gravitate towards average to fit in, so they'll also endorse and adopt that sort of rule, and it will be venerated as relationship common sense or pragmatism.

Meanwhile, if your mental properties make you a weird enough human -- far enough away from the "normal" center such that you don't even fit in on the fringes -- you won't be helped much by the radius rule, and your passionate connections will reside more in mindspace than in geospace.

Like with many things, my way of looking at it (mindspace matters much, much more than geospace) seems uncommon, and is actually treated with some degree of hostility by folks who are pretty committed to valuing close geographic proximity for in-group reasons. So I guess weird folks have to fake all the talk and verbally reinforce the idea that geospace distance is a hugely important first filter while suffering that search for rare and precious mindspace neighbors.

Sunday, August 14, 2016

Your heart

Whenever your heart must tell you something you must take it and place it in scare quotes and set it in italics and paste it into a comment box and then type yeah right or lolwut and click post.

Tuesday, August 9, 2016

Garbage Can Regressions -- Back to Some Regularly Scheduled Programming

On the wonderful tech blog The Green Place there is a recent introductory article about linear regression. It's a great introduction to the topic and treats the different mathematical approaches to actually solving for a linear regression model fit in a well-rounded manner -- highly reminiscent of the famous lecture notes from Andrew Ng.

But one issue with this kind of popular treatment of linear regression is that it tacitly endorses linear regression as a sort of Swiss army knife modeling tool. There is an Indiana Jones vibe about linear regression: it just somehow gets the job done. Even if the situation is messy and complex and linearity is obviously just a convenient fiction, regression will supposedly crack its whip around that deus ex machina wooden post and swing you safely across the chasm before the rocks cave in on you.

I was delighted to see a commenter pick up on this in a forum where the regression post was being discussed:
"There is one conceptually simple issue often missing in such nicely presented write-ups (and which appears to be missing here): error in the abscissa ('x-axis') values. Things like time-series tend to dominate such analytics and in such data collections it's typically assumed that the time-stamp data is of suitable accuracy that any error there can be neglected. But there are many other data sources where there is notable error in both 'x' and 'y' data for which commonly employed linear regression doesn't allow, (quick example: my friend the hydrologist collects flow rates in rivers at sample transverse distances which are hard to be sure of as one is dangling above the raging waters). As a respectable starting point for regression which allows for error in both axes i'd recommend Deming regression: < https://en.wikipedia.org/wiki/Deming_regression >"

One special case of this general effect is non-linear coding error, especially in cases when it ends up being the level of a covariate (i.e. the log of the covariate) that matters for causal inference, or when some covariates are categorical or isotonic.

The paper Let's Put Garbage Can Regressions and Garbage Can Probits Where They Belong by Christopher Achen is a great discussion about some particular properties of this, and the tacit assumptions used to ignore it.

In that paper it's demonstrated that with just a tiny bit of coding error in the covariates you can end up with a fitted regression coefficient that is statistically significant and has the wrong sign -- even when there is no noise whatsoever in the target variable (i.e. you can set up a toy example in which the target variable is synthetically generated as a true linear function of two covariates with positive coefficients, then perform a slight non-linear distortion on one of the covariates, regress the synthetic target variable on the clean covariate and the distorted covariate, and get wildly incorrect coefficients that appear to be statistically significant).

People seem to think these toy example are some kind of alien phenomenon that could never happen with real-world data, but the paper is very explicit in the construction of the example data set. It's not harebrained or contrived, like Anscombe's Quartet or something. It's very much a plausible data set.

I think it's not hyperbolic at all to say that results like this more or less conclusively show that naive linear regression cannot be trusted. If you're careful with model validation, using randomized hold out data, lots of diagnostic plotting and sanity checking, then regression is a fine tool. But if you do something shocking like take two different univariate models with the same target, fit their regression coefficients, and then select the model with a more favorable t-stat as "the winner" then you are committing an egregious statistical fallacy that often, in real world situations, is giving you not just an inaccurate answer, but an answer pointing totally in the opposite direction of the truth.

What's frightening to me is that across many industries, even in places like high finance -- where "real money is on the line" -- it is extremely common to see huge business intelligence systems predicated entirely on this type of fallacious statistical approach with regression. Sadly, it's often because the regression approach was historically more tractable and the fallacies weren't as well known. And so as certain people gained more senior positions and sought to retain political control of the business tools that they oversaw, they grasped for convenient fictions like "interpretability" to justify their political choice to shun modern techniques.

Saturday, July 30, 2016

Poison Control

Rain water falling from gutters.
The dampness sponging into my green gray socks.

The flowers dusted with droplets befitting
photos consigned to a nature documentary.

I take it all in, the glassblowing wind,
and I pause a breath, a beat, two

before I walk inside, grab the phone and
dial the number for poison control.

Music Collaborations I Want to Hear

2016 has been an amazing year for new music. I think 2010 was probably the last time I felt there was so much great new music, and we've still got a Lindsey Stirling album and a possible Modest Mouse album coming before 2016's over.

Not that arbitrary rankings matter much, but so far my top 5 albums are:

1. Emily's D+Evolution, Esperanza Spalding
2. A Moon Shaped Pool, Radiohead
3. The Glowing Man, Swans *** (major trigger warning, see footnote)
4. Opus, Eric Prydz
5. Blackstar, David Bowie

Some honorable mentions include The Follower by The Field and Human Performance by Parquet Courts.

This music has been deeply important to me lately and one thing that keeps coming up is my desire to hear certain collaborations -- here are some random thoughts about which ones I most want to hear.

Esperanza Spalding and Lauryn Hill

I only just learned of Esperanza Spalding last year, and that was only by way of a friend sharing some tracks from her early straight jazz work Junjo. So when I started listening to Emily's D+Evolution my ears exploded. In particular, the powerful lyrics of the track Ebony and Ivy grabbed my attention and immediately reminded me of Lauryn Hill's days with The Fugees. I think a collaboration between the two would produce something lyrically special.


Esperanza Spalding and David Byrne and/or St. Vincent

This might be too far-fetched, but there are a lot of aspects of Emily's D+Evolution that remind me of St. Vincent, whose collaboration with Byrne, Love This Giant, was phenomenal. I can see parallels between St. Vincent's Optimist and Spalding's Unconditional Love. And a lot of parallels in the vocal style of Spalding's Rest in Pleasure and St. Vincent's Ice Age. I would love to see what Byrne or St. Vincent would do to complement Spalding's jazzy meters that feel like they'll end with clean symmetry and suddenly veer off with extra syllables here and there. I could imagine getting something out of Spalding that sounds a bit like a jazzy version of Lazarus!


Thom Yorke and Eric Prydz

Thom Yorke is known for collaborating with EDM/DJ artists, including a remix of Cymbal Rush with the previously mentioned The Field that is a masterful example of EDM with restraint. Yorke is also know for his lyrical talent, yet with EDM, vocals are a rare occurrence. Only a few songs in Prydz's album have them at all. And when vocals are present they are often simplistic, vague, and invoke far-mode thinking -- because, well, people don't go to clubs to dance to EDM music with complicated lyrics. But what Yorke is able to do is often an amazing sleight of hand in which you are lulled into what feels like a dance track, and pulled back by arresting lyrics.

Just consider his work on the songs Before Your Very Eyes (lyrics) and Ingenue (lyrics) from the Atoms for Peace album Amok. While not truly EDM, these songs get close to the style, while Yorke sucks you in and you don't realize you're dancing to songs about your beauty disappearing / kids growing up to watch the world destroyed by climate change, or your youth being stolen by a lover ready to abandon you / your younger self putting your older self into bad positions.

Prydz brings some of the most impressive EDM skills to this hypothetical collaboration. What the very best DJs can do is provide songs that don't all just feel like sweaty club dance tracks. They use percussion (for example, Prydz's often-copied "Pryda snare" technique) to create moods and set listeners up to have emotional reactions as the song changes just when your brain becomes most comfortable with the rhythm. For me, this represents a type of lyrical opportunity that I haven't heard from Yorke -- a song that can capitalize on the way the music is changing, but not in an aggressive way as is often the case with Radiohead (take The Daily Mail for example), rather in a more measured way that matches the kind of subtle fades that characterize Prydz's music.

I think it would be a good collaboration in the sense of offering both artists a challenge to make their default styles work well together, while still remaining right in the center of the universe that they both already inhabit.


Jonny Greenwood and Michael Gira

Probably the least well-kept secret about Radiohead is how remarkable Jonny Greenwood is when doing solo work, like the soundtracks for The Master and There Will Be Blood. You can hear the influence of his solo work in particular on the track Daydreaming from A Moon Shaped Pool -- in which it's speculated that Greenwood has taken to working with black MIDI to create the digital glassy tones and asymmetric timing. When listening to the Swans album The Glowing Man -- what is best described as the sort of album that Lars von Trier would make if he were a musician -- I couldn't help but wonder what it would be like if Swans front man Gira was orchestrating a musician like Greenwood during some of the long sessions.

Swans, at least in the current incarnation, are known for playing music that has slightly abrasive aspects. Not absrasive in the sense of power metal, noise, or grunge, but more in the style of taking what is almost a piece of classical music and adding shrill accoutrements that get repeated for 20+ minutes. It's similar in many ways to Greenwood's There Will Be Blood score, except that Gira explore a different space of instruments and aims to sustain the jarring effects for longer periods of time. On the new album, Swans has 8 tracks, 3 of which are over 20 minutes long, and they do not use any form of digital looping. The musicians are sitting there playing the same thing over and over like a concert orchestra for, say 28:50 as in the title track The Glowing Man.

While there would likely have to be some digital compromises, and it's anyone's guess what (if any) lyrics would emerge, you can't deny how interesting it would be to see what Gira comes up with orchestrating an ondes Martenot for 20+ minutes.


*** Trigger warning: one of the songs from The Glowing Man, When Will I Return, is a first-person account of sexual assault that actually happened to lead singer Michael Gira's wife Jennifer -- and indeed it is Jennifer herself singing the song. It's very disturbing, but also amazing to hear her words, and to recognize her ability to speak so directly about such personal pain.