What's Next for Welch Labs?

Welch Labs has been inactive for 3 months. This will be changing soon. I’ll be finishing up the Imaginary Numbers Series, and am excited to premiere a new series at ML CONF in New York this April. (Use the code Welch18 for $45 off your ticket!)

My vision for Welch Labs in 2016 is continue making the highest-quality educational content possible. I’m excited to create new Machine Learning content this year, as well as math content in the vein of my Imaginary Numbers series.

If you’re interested in the Machine Learning content - please read on, I’d love to hear what you think. If you’re more interested in math content, I’d also love to hear what you think! Click here to see what math topics are coming up.

The next Machine Learning series from Welch Labs will cover Decision Trees and Mutual Information. This direction came about for a few reasons:

1. As a strong Intro to Machine Learning. I love making content that appeals to and is understandable by people from all education levels, high school to graduate school. Decision trees are perhaps the "original" machine learning tool - they are easy to understand, and provide great "bang for the buck" - making for a great introduction to machine learning.

The Five Tribes of Machine Learning According to Pedro Domingos. Image from The Master Algorithm. 

2. Stealing from The Master Algorithm. If you're interesting in ML and haven't read Pedro Domingos' book - The Master Algorithm - I highly recommend it. Certainly the best "pop" machine learning book I've read. Pedro weaves a wide variety of Machine Learning approaches into a single narrative in clear and approachable ways. I love this stuff - it's the kind of history and context you can't get from reading technical resources. Pedro structures his book by dividing Machine Learning into 5 tribes.  While this is clearly a simplification of a complex field, I think it is a very useful one. I think it's so useful in fact, I'll be stealing it :). I'll be roughly following Pedro's path through the world of Machine Learning for the next few series - starting with Decision Trees. Pedro seemed like a nice enough guy when I met him at ML CONF Atlanta - so I'm hoping he won’t be to mad. 

3. Decision Trees = The Most Popular ML on the Planet. Although no longer among the newest and hottest algorithms out there, trees are incredibly widely used across many diverse applications. The success of trees is likely a result of many factors - but I believe the most important is the simplicity of the resulting models. In my professional work, trees have beat out other models again and again, simply because I can clearly explain the resulting algorithm to anyone. Try that with a Neural Network!

Research Time

The next couple weeks are all about research. I'm reading through Ross Quinlan's book as well as CART. I'm working to develop a deep understanding of the history and fundamentals and will build up from there. Along the way I'm looking for interesting resources on and applications of decision trees. I would like to cover a simple example in detail to put emphasis on the tools and techniques, but I'd also like to spend some time exploring how Decision Trees are used in big, challenging problems. Mutual information and entropy are big parts of most Decision Tree algorithms, and are clearly topics that could make up their own series - to keep my scope in check, I'll be investigating these through the lens of decision trees.

Help!

As I begin to shape the series, I'd love to hear from you. What do you think is interesting here? What are some cool/interesting applications of decision trees? What are some resources you've found helpful? What would you like to know about decision trees and mutual information? I'd love to hear what you think - please let me know what you think in the comment section below. Thank you!

 

 

What Math Topics Are Next for Welch Labs?

I’ve really enjoyed making the Imaginary Numbers Are Real series thus far. And I promise, I’ll be wrapping it up as soon as possible. What I really love about this series was presenting what I felt to be a complete picture - all the way from the origin and very basics of imaginary numbers, to the modern mathematics they enable. I’m excited to make more series like this, and am working through possible topics. Three of my favorite are:

1. Factoring

2. Euler’s Formula

3. Introductory Statistics

What do you think?

What mathematics material would you like to see from Welch Labs in the future? If you’re a teacher, what topics/formats/approaches would really help you? Please let me know what you think in the comments section below. Thank you!

 

Imaginary Numbers Are Real [Part 8: Math Wizardry]

This week we use the complex plane to solve algebra problems. I think the idea of solving tough algebra problems visually is pretty fantastic. The problems I present in this episode, \(X^3-1=0\) and \(X^8-1=0\) give solutions that are roots of unity, numbers that equal one when raised to integer powers.  These numbers have a special place in number theory, and show up in one of my favorite pieces of mathematics: The Discrete Fourier Transform (DFT):

$$X[k] = \frac{1}{N_F}\sum^{N_F-1}_{n=0}h_w[n]x[n]e^{-j2\pi k/N_F}$$

The DFT is a huge part of signal processing, allowing us to convert time series, such as audio signals, into frequency representations in the complex domain. Frequency representations of signals are crucial for all kinds of applications, such as audio filtering, image processing (e.g. Instagram filters), audio and image compression (e.g. mp3s, jpeg). The Fourier Transform also has lots of interesting overlap with our hearing systems work – which we’ll talk about a little in part 11.

 

 

 

 

Imaginary Numbers Are Real [Part 7: Complex Multiplication]

This week we uncover the connection between complex multiplications and the complex plane. Our result is another approach to complex multiplication. As shown in figure 1, we know have two completely valid, but completely separate ways to multiply complex numbers. There are certainly other math problems that are solvable by various methods - but I really like this one because it reminds me that there's more to math than what we see on the page. Since these two methods look so different, but do the same exact thing, this suggests that we are only glimpsing a deeper process from different perspectives. 

Figure 1. Two ways to multiply complex numbers and the Milky Way hangin out. 

This must raise the question, what is the deeper process? What is the connection between math and our universe? Why is math unreasonably good at predicting reality? Questions like these land is firmly in the realm of metaphysics - and are questions that people have asked for thousands of years. In fact, as we saw earlier in the series, questions like these historically have slowed down the development of mathematics. 

There's no simple answer to questions like these, but they should serve to remind us that at their core, math and science are ways that we make meaning out of the world around us.

Which is pretty cool.  

Imaginary Numbers are Real [Part 6: The Complex Plane]

Imagine you had an art class in which they taught you how to paint a fence, but never showed you the great masters. Of course, you would say; ‘I hate art.’ You were bad at painting the fence but you wouldn’t know what else there is to art. Unfortunately, that is exactly what happens with mathematics. What we study at school is a tiny little part of mathematics. I want people to discover the magic world of mathematics, almost like a parallel universe, that most of us aren’t aware even exists.
— Edward Frenkel

Let's Do Some Real Math

This week I'm leaving you with a challenge. The quote above is from Edward Frenkel, a Berkeley mathematics professor, author of Love and Math, and generally cool guy. Frenkel draws a really interesting analogy about how we teach math. People who do math for a living exist in an uncertain world of creativity and discovery, while math classes are typically quite the opposite. Math is, by nature, a highly technical subject - meaning that just wrapping your head around things can take quite a bit of time. This leaves many students too tired for "creative discovery". The unfortunate side effect here is that, just as Mr. Frenkel says, many students do end up feeling like fence painters, and not explorers. 

With this in mind, between this episode and the next, I'm leaving you with some actual math. A real problem. No fence painting.

Forgive me in advance for the vague nature of the problem statement - but when you come across a real problem in STEM, this is what it feels like. This is the nature of mathematical discovery - we don't know what we're searching for. The upside is that when we do find something, this makes it all the more exciting. And after all, it wouldn't really be searching or discovery if we knew what we are going to find beforehand. When you hop on a plane to fly to Albuquerque, you aren't "discovering it".

Your Assignment

So this is your job. I would like you to discover for yourself what it means to multiply complex numbers on the complex plane. 

There's a very specific, and very useful interpretation of complex multiplication using the complex plane, and I want you to find it.

Figure 1. Tools you need.

Figure 2. Examples to try.

The tools you need our colorfully summarized in figure 1. Our approach next time will make use of four examples, these are (less colorfully) shown in figure 2. I recommend for each example plotting the two numbers we're multiplying and the result on the complex plane. From there, look for patterns, make theories, test your assumptions, and do try to have some fun. Good luck!