Andrew Hamlet measures culture.

In 2016, he used social media data to correctly predict the winner of the US Presidential Election. His prediction has since been published by Routledge Press, presented at the New York Times, and incorporated into a course at the NYU Stern School of Business. Prior to his work in politics, Andrew provided social analytics consulting to internet celebrities including Logan Paul and Perez Hilton.

Andrew is currently building a platform, called Music News 360°, that uses social media data to uncover hit songs and news from across the internet.

An accomplished musician, Andrew began playing the guitar at age eleven and has released over ten albums, both as collaborations and solo material, on his label Fun Having Team. His music has been aired by nationally syndicated radio stations such as Sirius XM Chill and KEXP, as well as featured in advertising for companies like Urban Outfitters.

Andrew earned his MBA from the NYU Stern School of Business and his Bachelors of Arts in Psychology, Phi Beta Kappa, from the University of North Carolina at Chapel Hill. He practices yoga, and lives with his wife in Oakland, CA.

LinkedIn / Github / Instagram

Investing with Python

 Getting Started

Query Stock Data, Calculate 30 Day Moving Average

Plot 30 Day Moving Average

MACD (Moving Average Convergence/Divergence)

Update: MACD (Moving Average Convergence/Divergence)

MACD Signal Line and Centerline Crossovers

Bollinger Bands

Price Channels


Quantopian: RSI Strategy Backtest



Mass Index

Stochastic Oscillator

Future Returns

Github Now Available

Music News 360°

Fun Having Team


Intangible Fantasy (2018)

Middle Ocean 

I (2015)

Pressed And

WoooddSheddd (2017)

Cowboy Aquarium (2014)

Stone Candles (2013)

Hyper Thistle (2012)

Imbue Up (2011)

Post-Ad For Sync (2011)

Tom Kitty Oliver

If Music Be The Food of Love, Play On (2019)

Pale Blue Eyes (Acoustic/Electric) (2018)

Know Everybody You Meet (2017)

The Sunsets Are Breaking Their Records for Beauty (2016)

Life on Loop (2012)

Muirfield Tapes (2008)