Am I the only one who sees a problem with yesterday's "average"?
|
Ricky Zamboni
Private citizen
Join date: 4 Jun 2004
Posts: 1,080
|
05-06-2006 14:03
From: Francis Chung *disclaimer: I come from a math background, not an economics background I looked at the calculations that Ricky posted, and as far as I can tell, it does not represent anything meaningful. However, I'm not an economist, so I looked up what those folks call "volume-weighted average price (VWAP)" The forumula that Ricky posted is correct, however, I believe that the interpretation of it is a bit wonky. As I said in another post, the VWAP formula is the discrete version of the first moment of the price probability density function. For a continuous probability distribution, the moments are given by,  Where n=1, x is the price, and dF(x) is the differential cumulative probability distribution. That's what the average price is measuring -- the mean of the distribution.
|
Ricky Zamboni
Private citizen
Join date: 4 Jun 2004
Posts: 1,080
|
05-06-2006 14:36
From: Keiki Lemieux One last example:
On Monday you buy 100,000L at 300L/$ and on Tuesday you buy 100,000L at 100,000L/$. What is the average you paid?
-----------
By my method:
200,000 shares bought $334.33 dollars spent ( $333.33 + $1.00 )
The average I paid was: 598.21 L/$.
-----------
By Ricky's method:
( 100,000 * 300 + 100,000 * 100,000 ) / ( 100,000 + 100,000 ) = 50,150 L/$
-----------------
So your telling me that when I buy 200,000 shares for $334.33, I paid an average of 50,150L/$? Does that make any sense at all? Cause if you bought 200,000 shares at 50,150L/$ it would cost $3.99. Your calculation isn't taking into account the shape of the underlying distribution. Maybe using a physical example will help this make more sense. What we're basically calculating is the "center of mass" of the price distribution. So, in your example, you would have 100,000 lbs at a point 300 ft. from the end of your measuring tape and another 100,000 lbs at a point 100,000 ft. from the end. Where would you have to put a pivot point so your weights balance? You'd have to put it at a point 50,150 ft from the end of the tape. Hope this helps!
|
Lee Ludd
Scripted doors & windows
Join date: 16 May 2005
Posts: 243
|
05-06-2006 15:45
From: Ricky Zamboni 988.46 is the volume-weighted average. Assume L$71,000 were sold at L$71,000/US$ and L$7,000,000 were sold at L$300/US$. The volume-weighted average is: Weighted average = (71,000 * 71,000 + 7,000,000 * 300) / (7,000,000 + 71,000) = 1,009.90. This rough calculation is very close to the quoted average of 988.46. As you can see, a small number of outliers can significantly skew the mean. Ricky: is it not the case that your weighted average is the weighted average of the exchange rate and not the weighted average of the price? Why should I care about the average rate of exchange at which the lindens were sold?
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-06-2006 19:15
You buy two steaks. One costs $10 and the other costs $20. What is the average price?
$15
( 1 * $10 + 1 * $20 ) / ( 1 + 1 ) = $15
Except by your method you would use the price expressed in steaks per dollar instead of dollars per steak:
( 1 * 0.1 S/$ + 1 * 0.05 S/$ ) / ( 1 + 1 ) = 0.075 S/$
0.75 S/$ = $13.33 $/S
So by your method the answer is $13.33.
_____________________
imakehuddles.com/wordpress/
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-06-2006 19:46
From: someone A trading benchmark particularly used in pension plans. VWAP is calculated by adding up the dollars traded for every transaction (price times shares traded) and then dividing by the total shares traded for the day. http://www.investopedia.com/terms/v/vwap.asp
_____________________
imakehuddles.com/wordpress/
|
Elvawin Rainbow
Registered User
Join date: 30 Aug 2005
Posts: 172
|
05-06-2006 20:14
I'm wondering why I read all of this and what possible relevance any of it could have to anyone, other than to inflate their own ego by being able to put sigmas and deltas and other such obtuse symbols, albeit pretty ones, in a post. But then again I hate lawyers for much the same reason. Or it could be because I lost $20,000 L because the group land system is seriuolsy flawed, Hey I have an idea how about using rhose brain cells for what would be useful to the average citizen and come up with a system that doesnt hurt we unemployed mathmatically illiterate types.
_____________________
"Off with their Heads"
|
prak Curie
----------
Join date: 4 Jun 2004
Posts: 346
|
05-06-2006 21:21
The average citizen should aspire to being mathematically literate if they are not already.
_____________________
-prak
|
prak Curie
----------
Join date: 4 Jun 2004
Posts: 346
|
05-06-2006 21:34
From: Keiki Lemieux You buy two steaks. One costs $10 and the other costs $20. What is the average price? You buy twenty-one steaks. Ten cost $10, ten cost $20 and one costs $1000. If someone asked you how much they might expect to pay for a steak, what would you tell them? The average would be $61.90. The volume-weighted average price would be $13.99.
_____________________
-prak
|
Elvawin Rainbow
Registered User
Join date: 30 Aug 2005
Posts: 172
|
05-06-2006 21:34
From: prak Curie The average citizen should aspire to being mathematically literate if they are not already. 01001001001000000110010001101111001000000111000101110101011000010111010001100101 01110010011011100110100101101111011011100010000001101101011000010111010001101000 00100000011101000110111100100000011000100111010101101001011011000110010000100000 01110100011010000110100101101110011001110111001100101100001000000111010001101000 01100001011101000010011101110011001000000111010101110011011001010110011001110101 01101100001000000110000101110110011001010111001001100001011001110110010100100000 01101101011001010110000101101110001000000110111101100110001000000110110001101001 01101110011001000110010101101110011100110010000001101001011100110110111001110100
_____________________
"Off with their Heads"
|
prak Curie
----------
Join date: 4 Jun 2004
Posts: 346
|
05-06-2006 21:42
From: Elvawin Rainbow I do quaternion math to build things, that's useful average mean of lindens isnt In your opinion. Other people have other interests and find other thing important. More importantly, in the Land and the Economy part of the forums it is on topic.
_____________________
-prak
|
Ravenelle Zugzwang
zugzugz.com
Join date: 23 Jul 2004
Posts: 267
|
05-06-2006 22:11
/award ceremony This thread is totally geeked out. I award this thread the #1 geeked out thread of all SL history.
|
Damanios Thetan
looking in
Join date: 6 Mar 2004
Posts: 992
|
05-06-2006 22:34
I'm a logical guy, that's why i dropped economics very early. It was that or kill the teachers.  Here again people managed to make something simple into something very convoluted... so i'll gladly contribute. Isn't Francis right? If you use VWAP (which i never knew before this thread). That's multiply the volume of Lindens by the US$ rate per Linden (or volume of dollars by the L$ rate per US dollar ? Basically, what you want to end up with is an average rate, that if you multiply the total sold L$ volume with, you end up with the actual resulting amount of US$, not? To take keiki's example: - 100.000 L$ at L$300/1U$ (0.0333 US$/1$L) - 100.000 L$ at L$100,000/1US (0.00001 US$/1$L) Keiki now calculates the VWAP: Total amount of US$ ( 100,000 * 0.00333 + 100,000 * 0.00001 ) = 334.33 US$ divided by total volume ( 100,000 + 100,000 ) = 0.001675 US$/1L$ This is 598.21 L$/US$ Which makes the VWAP of 998 L$/US$ very strange...
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-06-2006 22:38
From: prak Curie You buy twenty-one steaks. Ten cost $10, ten cost $20 and one costs $1000. If someone asked you how much they might expect to pay for a steak, what would you tell them?
The average would be $61.90. The volume-weighted average price would be $13.99. The volume weighted average (which as far as I can tell is just another name for "average"  is: 10 steaks * $10 = $100 10 steaks * $20 = $200 1 steak * $1000 = $1000 $1300 / 21 = $61.90 I'm not sure what $13.99 is supposed to represent in this example.
_____________________
imakehuddles.com/wordpress/
|
Damanios Thetan
looking in
Join date: 6 Mar 2004
Posts: 992
|
05-06-2006 23:03
From: Keiki Lemieux Any thoughts? You're right. LL VWAP calculation is probably wrong in the sense that they multiple volume of L$ with L$/U$ rate. This completely skews the average when small volumes are sold for rediculous prices. Example: 1,000,000 L$ sold for 300 L$/ U$ 10 L$ sold for 1,000,000,000 L$ / US$ actual VWAP: ( 1,000,000 * 0.0033 + 10 * 0.000000001 ) / 1,000,010 = 0.0033 (300 L$ / US again). The rediculous sale completely disappears out of the average, as intended. LL 'VWAP' (as i suspect): (1,000,000 * 300 + 10 * 1,000,000,000 ) / 1,000,010 = 10,300 L$ / US$ (wrong)
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-06-2006 23:21
One thing that has occurred to me is that if you want to use Lindens/$ as the price in the VWAP formula is that you should use dollars as for the volume part of the equation.
Example (which is close to what happened on Thursday):
7,000,000 Linden sold at 300 L/$ at a cost of $23,333.33 71,000 Linden sold at 71,000 L/$ at a cost of $1
( $1 * 71,000 L/$ + $23,333.33 * 300 L/$ ) / ( $23,333.33 + $1 ) = 303.03 L/$
_____________________
imakehuddles.com/wordpress/
|
Francis Chung
This sentence no verb.
Join date: 22 Sep 2003
Posts: 918
|
05-07-2006 12:45
From: Ricky Zamboni As I said in another post, the VWAP formula is the discrete version of the first moment of the price probability density function. For a continuous probability distribution, the moments are given by,  Where n=1, x is the price, and dF(x) is the differential cumulative probability distribution. That's what the average price is measuring -- the mean of the distribution. I'm not sure how using long math words help, but OK, let's try it your way. What you're suggesting is that we should be interested in the probability that a L$ is traded at some rate expressed in L$/USD. I think this is completely nonsensical. But I'm not an economist or any sort of trader. Can you point out an stock/currency exchange (not counting LindeX) which observes your interpretation of "average" but not Keiki's? I'm just skeptical that anyone in their right mind would do so. I think we should be interested in the probability that a L$ is traded for some rate expressed in USD/L$. (or alternatively, the probability that a USD is traded for some rate expressed in L$/USD) Under this interpretation, the formulas that you've posted would be consistent with the definition of "average" that Keiki understands. <math>Mathematicians describe this transformation of arguments as an isomorphism, where both the mapping from one argument to another, and the inverse are bijective. That is to say that arguments that involve long math words are equivalent to arguments using the same words that normal humans use.</math>
_____________________
-- ~If you lived here, you would be home by now~
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-07-2006 22:31
From: Ricky Zamboni Your calculation isn't taking into account the shape of the underlying distribution.
Maybe using a physical example will help this make more sense. What we're basically calculating is the "center of mass" of the price distribution. So, in your example, you would have 100,000 lbs at a point 300 ft. from the end of your measuring tape and another 100,000 lbs at a point 100,000 ft. from the end. Where would you have to put a pivot point so your weights balance? You'd have to put it at a point 50,150 ft from the end of the tape.
Hope this helps! Sorry, if this is annoying anyone, but I feel like I should respond to this example... This example is very different than the other examples in this thread. It's quite obvious that if you had 100,000 lbs at 300ft and 100,000 lbs at 100,000 ft, that the center of mass would be 50,150 ft. Look at the units in this example: lbs and feet. Neither unit is a rate or price where you are dealing with units/$ or $/unit. You would never even consider inverting the feet in this example to 1/300 ft and 1/100,000 ft. If you did it would greatly skew the results in a way that would be completely illogical. Looking back on my posts they seem quite repetive. Sorry, if they are, but I don't feel you ever responded satisfactorily to my examples. I guess this has been frustrating because the way that people commonly figure averages is so incredibly simple that I was quite surprised this turned into a debate. Aren't these things mathematically self evident? - How do you figure average miles per gallon? Take the total number of miles you have driven and divide by the number of gallons you used.
- How do you figure your average miles per hour? Take the total number of miles you drove and divide it by the number of hours it took.
I see no reason to look at currency exchanges any other way. If the number of lindens on Thursday is 7.35 Million and the number of dollars exchanged is around $24,000, then the average should be around $3.03 L/$. In fact, the formula you posted suggests the exact same thing: From: someone Average = SUM(Number sold at a given price * that price) / total number sold Afterall, what would the SUM(Number sold at a given price * that price) equal? In the case of the Lindex, this would equal the amount of dollars spent that day. So average (and this is a "volume-weighted" average) would be ( Total dollars spent on Thursday ) / ( Volume of Lindens Traded ), or if you wanted to express that in lindens/dollar, just flip the formula. Either way you get an average price around 303L/$. The trade in question on Thursday which caused this huge leap in the average was around 71,000 lindens sold for 71,312 L/$. It was a trade worth $1 USD and 71,000 Lindens. That trade represented less than 1% of the daily volume in Lindens. It represented about 0.00412% of the daily volume in USD. And yet, this one tiny trade, caused the daily average to increase by over 300%. It just doesn't add up. It's not logical at all.
_____________________
imakehuddles.com/wordpress/
|
MC Seattle
Registered User
Join date: 3 Apr 2006
Posts: 63
|
05-08-2006 00:46
From: Keiki Lemieux I see no reason to look at currency exchanges any other way. You must not be an economist or financial trader 
|
Lee Ludd
Scripted doors & windows
Join date: 16 May 2005
Posts: 243
|
05-08-2006 15:10
From: Francis Chung ... Can you point out an stock/currency exchange (not counting LindeX) which observes your interpretation of "average" ... ...
The issue in this debate is not whether Ricky is using the correct formula to compute an average -- he is using the correct formula to compute an average. The trouble several of us are having is the fact that Ricky is computing the average exchange rate at which Lindens were sold, while we think the statistic of interest should be the average price. I would like to know from Ricky, please, the following: 1. Does he agree with my claim that his formula computes the average exchange rate, not the price? 2. If so, does he think the average exchange rate is an interesting statistic? 3. If so, could he rise to Francis Chung's challenge and show us an example in some context other than Linden Lab where it is routinely published and commented on? 2. Or, does he think that the Linden Lab just happens to be computing the average exchange rate, for no good reason, or for no reason.
|
Ricky Zamboni
Private citizen
Join date: 4 Jun 2004
Posts: 1,080
|
05-09-2006 07:56
From: Lee Ludd The issue in this debate is not whether Ricky is using the correct formula to compute an average -- he is using the correct formula to compute an average. The trouble several of us are having is the fact that Ricky is computing the average exchange rate at which Lindens were sold, while we think the statistic of interest should be the average price. I would like to know from Ricky, please, the following: 1. Does he agree with my claim that his formula computes the average exchange rate, not the price? 2. If so, does he think the average exchange rate is an interesting statistic? 3. If so, could he rise to Francis Chung's challenge and show us an example in some context other than Linden Lab where it is routinely published and commented on? 2. Or, does he think that the Linden Lab just happens to be computing the average exchange rate, for no good reason, or for no reason. In this case, it's a matter of semantics. People have been using the terms "exchange rate" and "price" interchangeably. What Keiki is estimating as the average exchange rate is actually "1/avg(1/x)", which is certainly a measurement of the distribution, but is not a correct way of calculating the average. I steadfastly maintain that my method of calculation is the correct one to use in order to determine the average exchange rate. And, as for my "balancing weights" example, it is *exactly* the same situation as we have here. The math is formally identical and even the interpretation is consistent -- we have differing amounts of "stuff" placed at various positions, with the equilibrium position given by the integral of the density over all positions.
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
05-09-2006 10:11
Actually the 1/avg(1/x) is a recognised process for the harmonic mean - most commonly used by electronic engineers (for resistance in parallel) and formerly used by immunologists and some biochemists when calculating mean dilutions for zero-points.
|
Keiki Lemieux
I make HUDDLES
Join date: 8 Jul 2005
Posts: 1,490
|
05-09-2006 11:41
From: Eloise Pasteur Actually the 1/avg(1/x) is a recognised process for the harmonic mean - most commonly used by electronic engineers (for resistance in parallel) and formerly used by immunologists and some biochemists when calculating mean dilutions for zero-points. And would an engineer call the harmonic mean an average? EDIT: based on prak's link, I'm concluding that harmonic mean is the same as what we commonly understand as average, at least averages of rates.
_____________________
imakehuddles.com/wordpress/
|
prak Curie
----------
Join date: 4 Jun 2004
Posts: 346
|
05-09-2006 13:21
From: Keiki Lemieux I'm not sure what $13.99 is supposed to represent in this example. A better estimate of the price of a steak than $61.90.
_____________________
-prak
|
prak Curie
----------
Join date: 4 Jun 2004
Posts: 346
|
05-09-2006 13:26
From: Keiki Lemieux And would an engineer call the harmonic mean an average? In some cases. http://en.wikipedia.org/wiki/Harmonic_mean From: someone In certain situations, the harmonic mean provides the correct notion of "average". For instance, if for half the distance of a trip you travel at 40 miles per hour and for the other half of the distance you travel at 60 miles per hour, then your average speed for the trip is given by the harmonic mean of 40 and 60, which is 48; that is, the total amount of time for the trip is the same as if you traveled the entire trip at 48 miles per hour. (Note however that if you had traveled for half the time at one speed and the other half at another, the arithmetic mean, 50 miles per hour, would provide the correct notion of "average".)
_____________________
-prak
|
prak Curie
----------
Join date: 4 Jun 2004
Posts: 346
|
05-09-2006 13:29
http://en.wikipedia.org/wiki/Average From: someone In mathematics, an average or central tendency of a set (list) of data refers to a measure of the "middle" of the data set. There are many different descriptive statistics that can be chosen as a measurement of the central tendency. The most common method, and the one generally referred to simply as the average, is the arithmetic mean.
_____________________
-prak
|