Formula for happiness

The formula for happiness turns out to be 0.67 + 0.09 * sin(0.93t), who would have thought it was so simple?

At least that is what you get if you put my personal mood data from Affect Sampler through the free-as-in-beer download of Eureqa. This is a workbench that applies the techniques from Hod Lipson’s “Distilling Free-Form Natural Laws from Experimental Data” paper, using genetic programming to find parsimonious functional forms for arbitrary data.

I was really impressed with how quick and easy it was to set up and find something reasonable. While the fit is far from great on my toy emotion tracking test, with just a few weeks’ data (surprisingly, my moods are not exactly periodic!) it does seem to have found a something approaching a valid pattern. With t measured in days, 2*PI/0.93 = 6.75 which is close to seven. It looks to me like it is trying to fit a weekly rhythm, which seems plausible enough.

Eureqa screenshot

Screenshot from Eureqa software fitting Affect Sampler data


What do you think?

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s