Data science

Initial attempt at data science, not convinced the math is right, but wanted to get feedback before I go too far.
What is the correct syntax? rubocop has the syntax like it is here, but hound has it opposite. Which is preferred?