j-sm-n / black_thursday

Black Thursday is a system that is able to load, parse, search, and execute business intelligence queries against the data from a typical e-commerece business in Ruby.
0 stars 0 forks source link

Business Intelligence - Who are our top performing merchants? #38

Closed jesse-spevack closed 8 years ago

jesse-spevack commented 8 years ago

Assume we're created sa as a SalesAnalyst instance:

Which merchants are more than two standard deviations above the mean?

sa.top_merchants_by_invoice_count # => [merchant, merchant, merchant]

https://github.com/turingschool/curriculum/blob/master/source/projects/black_thursday/iteration_2.markdown#who-are-our-top-performing-merchants