Revenue Management for Meth Dealers in Flint (Fiction)
analyticsmadeskeezy.com
analyticsmadeskeezy.com
For those who are not used to that, it's a very simple linear regression, followed by an estimated demand equation, which you then turn into profit by multiplying each side by prices.
To find the local optimal, you look for the spot where the 1st derivate cancels (and the second is negative, unless you have a quadratic equation like that)
It's an example so well though and so simple that it should be in economics textbook, so that students see how to make more money with a simple application of sound principles.
(if the excel spredsheet was turned into an online collection, using say OLS to calculate the estimators, Victor would have had a SAAS pricing software instead of entering the stuff manually on his laptop! ain't that cool ?)
Also, you could use our[0] more refined SAAS Pricing Software that takes more factors like time into consideration.
I know the HN crowd will like to know that the entire price optimization system is exposed through a REST API with code samples on github.
I'm guessing that guys who run state wide drug businesses do not show spreadsheets of their business to blogging economists :-)
He also wrote a book about it:
https://www.nytimes.com/2012/12/02/nyregion/sudhir-venkatesh...
Unfortunately, it still has 'math' presented in a regular way among that narrative, and many people are going to glaze over and not learn much from it.
There are some other examples of presented information that people fail to absorb. Radio broadcast weather bulletins is one good one. People listen to the whole thing, but 5 minutes later they realise they've missed the weather for their region.
Still, it's a nice blog and they have some great examples of other stuff too.
http://www.theglobeandmail.com/report-on-business/internatio...
This is precisely what we do.
Please check out, https://ventata.com/ if you are interested in a price optimization REST API.
Our average customer is a small to medium sized business selling goods through eCommerce.
Here is the Google cache: http://webcache.googleusercontent.com/search?q=cache:rXK-EEu...
And sorry the shitty hostgator site went down. Cache: http://webcache.googleusercontent.com/search?q=cache:rXK-EEu...
We[0] solved this problem for ecommerce flash sale sites and event ticket sellers by creating a limited supply strategy that allows someone to give a starting quantity, current quantity and a start and end date to maximize revenue while trying to sell out all items.
In the long run, you may be able to purchase in sufficient quantity that you can import entire containers from overseas, with the knowledge that some will be intercepted, and you'll incur non-negligible cost for the smuggling. Also worth noting is that the economic costs associated with law enforcement attention will tend to rise (I'd bet non-linearly) as scale increases, just look at Pablo Escobar. In any case, I'd still bet that the per unit cost of production is much lower at scale.
The only way that I see that cost could be fixed, is that the economic cost of law enforcement activity exactly offsets reductions in production costs from scaling up.
http://www.pbs.org/wgbh/pages/frontline/meth/etc/cron.html
The part I think is pertinent here is that there is little illicit manufacture of ephedrine and pseudoephedrine (so the availability of meth varies with the availability of them).
The actual math is: If you have a scatter of data (x, y), then you can get a measure of the variability of your data by taking the sum of squares of (y - avg(y)) for all your data points. Call this V
Further, if your doing say a simple linear regression, then for every x, you can have an f(x) which is suppose to be an 'estimate' of y. So then for all our given data points, we can find an error, which is basically the distance of y from the fitted line (y-f(x) basically). Then we can take the sum of squares of those errors get what is sometimes called our residual sum of squares. Call this W.
The R^2 value is defined as 1 - (R/W). So we can see that for very good fits of data, R^2 will be near 1, and for poor fits of data, R^2 will be near 0.
Edit: I guess to throw another bit at you. Often in microeconomics, you assume that as long as you can meet a demand at a certain price, then you will in fact sell however much is demanded at that price. So as an lemonade stand, if there is a demand for 100 cups of lemonade at 50 cents a cup, and you have 100 cups of lemonade and are also willing to sell at 50 cents a cup, then you WILL sell 100 cups. In which case, the revenue = price * demand kind of falls out by itself.
great read anyway.