The All 1s Vector

Here’s a short post based on a Twitter thread I wrote about a very underappreciated vector: The all 1s vector!

Image

Every vector whose components are all equal is a scalar multiple of the all 1’s vector. These vectors form a “subspace”, and the all 1’s vector is the “basis” vector.

Let’s say you have a list of data — like 4, 7, -3, 6, and 1 — and you put that data in a vector v. An important question turns out to be “What vector with equal components is most like my vector v?”

To answer that question you can *project* your vector onto the all 1’s vector. You can think of this geometrically — it’s kind of like the shadow your vector casts on the all 1’s vector. There’s also a formula for it that uses dot products.

Image

Because of the way the dot product works and the special nature of the all 1’s vector, v•a is the sum of the elements of v and a•a is the number of elements in v. This makes (v•a)/(a•a) the mean of the data in v!

Image

Since 3 is the mean of your data, the vector with equal components that is most like your vector is the all 3’s vector. This makes sense, since if you’re going to replace your list of data with a single number, you’d probably choose the mean.

Now the cool part. Look at the difference in these two vectors: These are the individual deviations from mean for each of your data points, in vector form!

Image

And geometrically this vector of deviations is perpendicular to the all 1’s vector! You can check this using the dot product.

Image

So data can be decomposed into two vector pieces: one parallel to the all 1’s vector with the mean in every component, and one perpendicular to that with all the deviations. You can see hints of independence, variation, standard deviation lurking in this decomposition.

You can check out the original thread on Twitter here, including some very interesting replies!

Related Posts

Making Math by Design — Queen’s College

I’m excited to be visiting Queen’s College on Tuesday to speak to students in QC’s TIME 2000 program. TIME 2000 prepares future teachers by having cohorts of undergraduates study math and education together. The program also puts on a great conference that shares the fun and beauty of math with high school students.

I’ve participated in the conference several times, but on Tuesday I’ll be speaking at the TIME 2000 Spring Seminar series. In Making Math by Design I’ll talk about the decisions that teachers make, and the consequences of those decisions, when we design and implement mathematical tasks for our students. I’m looking forward to doing some math together and having a good conversation about it afterward.

It’s been several years since I’ve visited Queen’s College, and I’m excited to be heading back, especially since this talk was originally scheduled for 2020 and was my first in-person talk cancelled by the pandemic! Let’s hope nothing else happens before Tuesday.

Related Posts

Pitfalls for Parents — MoMath

I’m excited to be joining Steven Strogatz this coming Monday for QED: Pitfalls for Parents, hosted by the National Museum of Mathematics.

In this event, Steve — a renowned mathematician, author, and speaker, as well as the museum’s current mathematician-in-residence — answers questions from the audience about K -12 mathematics. Steve has been inviting classroom teachers along as special guests, and I’m thrilled to be joining him on February 7th at 7 pm.

You can find out more about the event, and register, here.

Why Triangles are Easy and Tetrahedra are Hard — Quanta Magazine

My latest column for Quanta Magazine is a celebration of the Triangle Angle Sum theorem, a favorite result from high school geometry.

Do you think there’s a triangle whose angles measure 41, 76 and 63 degrees?

At first, answering this may seem easy. From geometry class we know that the sum of the measures of the interior angles of a triangle is 180 degrees, and since 41 + 76 + 63 = 180, the answer must be yes.

But there’s more to this question than meets the eye.

From triangles we move to tetrahedra, where a surprisingly simple question about angles wasn’t resolved until 2020. You can read all about it here.

Follow

Get every new post delivered to your Inbox

Join other followers: