Streaming implementation of multiple regression in JavaScript