qqwref
Legend
- Joined
- Dec 18, 2007
- Messages
- 7,834
- Location
- a <script> tag near you
- WCA ID
- 2006GOTT01
- YouTube
- Visit Channel
The definition of the average value of something which varies continuously (let's say a function f(x) defined over a<x<b) is, According to Wikipedia because I don't have a stats textbook on me:
average value of f(x) = 1/(b-a) * integral from a to b of f(x) dx.
Now the 1/(b-a) part is just 1/(width of interval), and the integral from a to b of f(x) dx is the area f(x) takes up inside that interval. So reduced to simpler language this formula just says that the average height of a 2D object is its area divided by its width.
This might sound reasonable but unfortunately it does not work. (Average height * width = height * average width = area, though.) Consider a right isosceles triangle that is half of an a by b rectangle. Then the average height of the triangle is a/2 and the average width is b/2; you can see this with just intuition. But now average height * average width is ab/4, not ab/2 which is the correct area of the triangle.
average value of f(x) = 1/(b-a) * integral from a to b of f(x) dx.
Now the 1/(b-a) part is just 1/(width of interval), and the integral from a to b of f(x) dx is the area f(x) takes up inside that interval. So reduced to simpler language this formula just says that the average height of a 2D object is its area divided by its width.
I dunno, I think it sounds reasonable that the average height*average width of any object should equal the area. Not that that makes it true, though...
This might sound reasonable but unfortunately it does not work. (Average height * width = height * average width = area, though.) Consider a right isosceles triangle that is half of an a by b rectangle. Then the average height of the triangle is a/2 and the average width is b/2; you can see this with just intuition. But now average height * average width is ab/4, not ab/2 which is the correct area of the triangle.
Last edited: