15/05/2012
In a couple of different occasions I discussed the topic of interpolation, without really going into the details. Lately, I had to interpolate data and that got me interested (again) in interpolation; and I think I should share some of the things I learned.

In this first post (of a series), let us begin by the simplest interpolation of all (after constant interpolation): linear interpolation.
Read the rest of this entry »
3 Comments |
algorithms, Mathematics, programming, Science | Tagged: algebra, interpolation, Linear Interpolation |
Permalink
Posted by Steven Pigeon
08/05/2012
Two weeks ago I attended the Hackreduce Hackathon at Notman House to learn about Hadoop. I joined a few people I knew (and some I just met) to work on a project where the goal was to extract images from the Wikipedia and see if we could correlate the popularity, as the number of references to the image, to some of the intrinsic images characteristics.

But two other guys I know (David and Ian) worked on a rather amusing problem: finding domain names that can be parsed in multiple, hilarious ways. I decided to redo their experiment, just for fun.
Read the rest of this entry »
Leave a Comment » |
algorithms, C-plus-plus | Tagged: domain names, double entendre, Hackathon, Hackreduce, Hadoop, Notman House |
Permalink
Posted by Steven Pigeon
01/05/2012
Quite a while ago, I presented the Collatz conjecture and I was then interested in the graphical representation of the problem—and not really going anywhere with it.

In this entry, let us have a look at the implementation of the Collatz function.
Read the rest of this entry »
1 Comment |
algorithms, assembly language, C, C-plus-plus, Mathematics, programming | Tagged: assembly language, Collatz, Conjecture |
Permalink
Posted by Steven Pigeon
24/04/2012
In a previous post, I presented (generalized) linear regression from a linear algebra point of view (namely, the “normal equations”) and in this post, I discuss yet another take on the problem, this time using gradient descent.

Gradient descent isn’t particularly fascinating for this particular task (as we know closed, analytical expressions for obtaining the parameters), but linear regression is the simplest example of gradient descent I could come up with without being completely trivial.
Read the rest of this entry »
22 Comments |
algorithms, machine learning, Mathematics | Tagged: Gradient, gradient descent, linear regression, Machine Learning, Neural Networks |
Permalink
Posted by Steven Pigeon
17/04/2012
I sometimes have quite nerdy readings. As of late, I’ve been reading Le fabuleux destin de
(The Fabulous Destiny of
, one might translate) by Benoît Rittaud. This book is a treasure trove of
facts, and one caught my eye more than the others so far: an iterative method to compute square roots of any (positive) number.

When the method is first presented, he leaves to the reader to find a demonstration (though he gives one much later on, several chapters later), but let’s see what we can find.
Read the rest of this entry »
5 Comments |
algorithms, hacks, Mathematics, Science | Tagged: √2, Iterative, Newton, Newton's Method, Square root |
Permalink
Posted by Steven Pigeon
15/04/2012

(Je me souviens, 1920×1200)
In memory of the 1989 Polytechnique victims
Reblog if you’re in favor of saving the Canadian Firearm Registry.
Leave a Comment » |
Wallpapers |
Permalink
Posted by Steven Pigeon
13/04/2012
Contrairement à ce que croyaient les Anciens Grecs, le rôle de la science n’est pas de fignoler des représentations délectables, mais de prendre l’Univers comme elle le trouve.
Marcel Boll
Histoire des mathématiques
Leave a Comment » |
Zen |
Permalink
Posted by Steven Pigeon
10/04/2012
I’m sure you’ve heard the expression herding cats before. When you’re trying to manage programmers, the expression certainly comes to mind. What if programmers were cats, which one would you be?

Read the rest of this entry »
Leave a Comment » |
Cats, Life in the workplace, wtf, Zen | Tagged: Black Cat, Herding Cats, Les chats c'est tous des branleurs, Persian Cat, Scottish Fold, Siamese Cat, Tabby |
Permalink
Posted by Steven Pigeon