Typescript Multiple Variable Statistical Analysis