A factory manufactures wooden squares whose side length should be one meter. However, the side length of the squares is not always 1 m but varies uniformly between 1 m and 1 . 1 m . Note that the height and the breadth of each square piece remain equal to each other.
Two inspectors, Alice and Bob, want to calculate the average area of a square.
Who is correct?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
How is that? What kind of average is it?
Log in to reply
The average, (or mean), of a function f ( x ) over the interval ( a , b ) is b − a 1 ∫ a b f ( x ) d x . In this case f ( x ) = x 2 , a = 1 0 0 and b = 1 1 0 .
Log in to reply
Why does f(x) = x^2?
Log in to reply
@Gabriel Hunt – We're trying to find the average area of a square of side length x , and the area of such a square is x 2 .
It's the average of a continuous function. The area can take on any real number value between 1.0 and 1.21 square meters. Alice only considers one possible value, Bob only considers two possible values. There are really infinite possible values.
This answer assumes that even though there is 10% error rate in the cut of one dimension, the height and width are always a perfect match. If we instead assume that the product is a rectangle with even distributions across the range, the 2-variable integration is more interesting, and the average is slightly less, but still does not match either of the wrong answers in the original question. If we allow the produced object to not have perfect right angles...then I can't do the math in my head. I might need a simplifying assumption.
Log in to reply
Good point. Since the shapes are described as "squares" it would seem that we can assume that the height and width vary in tandem, but this is not made explicit. If we employ your assumption, I get an answer of 1 1 0 2 5 cm 2 , which is indeed slightly less. If all four sides were to vary independently we would need to do 4-variable integration on Bretschneider's formula, (the general formula for the area of a concave quadrilateral), which would be extremely messy.
Log in to reply
Agree. I assumed the errors would be independent (realistically), and thus came to 11025 cm2, Alice's answer. That needs to be more explicit in the problem statement.
Log in to reply
@Steve McMath – @Calvin Lin Given Mel's and Steve's comments, it might be worth adding a note stating that the side lengths of any specific object manufactured are all the same. This could be considered implicit due to the fact that the objects are referred to as "squares", but I can see how some ambiguity might arise. I could add the note myself but since the alternate interpretation leads to a different answer, (namely that Alice is correct), I know I should leave this decision up to you. Thanks. :)
Log in to reply
@Brian Charlesworth – I've added a note to clarify. The problem did say "side length of the square" / "average area of the square", though I can see how the real world setting could lead to a lobsided quadrilateral which passes quality testing as a square.
Whilst the answers I have read may give correct numerical answers, none explain the mistakes made by Alice and Bob.
Alice uses the average length but fails to recognise that the areas created with below average side lengths have a smaller variance in area than those created with above average side lengths. This is because the lengths are squared to give the area.
Bob's solution assumes a uniform distribution of areas, but if the sides are uniformity distributed, the areas will not be.
How did you get 1/110-100?
Log in to reply
The average of a function f ( x ) over an interval ( a , b ) is b − a 1 ∫ a b f ( x ) d x .
@ Prakhur Mathur - You need grouping symbols, such as: 1/(110 - 100).
Alice is wrong. She correctly identifies the median area, but generally, the median is not equal to the expectation value of a distribution. Generally, E f ( X ) = f ( E X ) : the expectation value of a function of a stochastic variable is not equal to the function's value at the expectation of its distribution.
Bob's mistake is to assume that the square of a uniform distribution is distributed uniformly. For the actual distribution of X 2 , see below.
For the correct answer, we must take the average (by integration) of all possible areas, weighted according to the distribution of the side X : E ( X 2 ) = ∫ x 2 d P X = ∫ 1 1 . 1 x 2 1 0 d x = [ 3 1 0 x 3 ] 1 1 . 1 = 3 1 0 ( 1 . 1 3 − 1 3 ) ≈ 1 . 1 0 3 .
Alternatively, consider that Var X = E X 2 − ( E X ) 2 , and that the variance on a uniform distribution between a and b is equal to 1 2 1 ( b − a ) 2 . Then E X 2 = Var X + ( E X ) 2 = 1 2 1 ( 0 . 1 ) 2 + ( 1 . 0 5 ) 2 ≈ 0 . 0 0 0 8 3 3 + 1 . 1 0 2 5 0 = 1 . 1 0 3 3 3 . Thus, the variance of the distribution is precisely the correction necessary for Alice's answer.
The distribution of X 2 is But if x is uniformly distributed between 0 < a < b , then p X ( x ) = ⎩ ⎨ ⎧ b − a 1 0 a < x < b otherwise then p X 2 ( y ) = ⎩ ⎨ ⎧ 2 ( b − a ) y 1 0 a 2 < y < b 2 otherwise which is obviously not uniform: smaller values are more likely than larger values.
See my comment on Brian's answer. Is it fair to assume that even though they can miss the length by 10%, but will always have a perfect match between height and width?
Log in to reply
Since the problem speaks of the "side length of the square", rather than the "dimensions of the rectangle", this is indeed what appears to be implied. A clarification would have been nice.
In case both the width and the length vary uniformly and independently, we have E ( X Y ) = E X ⋅ E Y = 1 . 0 5 ⋅ 1 . 0 5 ≈ 1 . 1 0 3 , and Alice would be correct.
Both interpretations are covered by the equation E ( X Y ) = E X ⋅ E Y + Cov ( X , Y ) . If we know that the board is always square, X = Y and Cov ( X , Y ) = Cov ( X , X ) = Var X .
If we know that length and width are independent, Cov ( X , Y ) = 0 .
Be X one of the lenght and be Y the other lenght. X and Y are independent random variables uniformly distributed. The expected value E() of the area is E(XY) = E(X)E(Y). For a uniform distribution, the expected value is (a+b)/2 being a and b the extreme value of the distribution. Therefore E(X) = E(Y) = (1+1.1)/2 = 1.05.... Then, E(XY) = 1.05^2 = 1.1025.
Log in to reply
If the board always turns out to be a square (as I read the problem), X and Y are not independent so that E ( X Y ) = E X ⋅ E Y .
Yes but: "She correctly identifies the median area" is untrue. if you graph the curve xy = 1.1025 on the square regions 1< x,y < 1.1 then the area above the curve is smaller than the area below. We have a curve that touches the top left to bottom right diagonal at (1.05, 1.05) but is above it elsewhere. The median value would come from the curve xy=a which splits the square's area into two equal areas.
Log in to reply
By definition, the median of a random variable X is m such that P ( X < m ) = 2 1 . And P ( X 2 < 1 . 1 0 2 5 ) = P ( X < 1 . 1 0 2 5 ) = P ( X < 1 . 0 5 ) = 2 1 .
Note that I interpreted the problem as saying that all boards are exact squares. If the length and width vary independently between 1.0 and 1.1 m, so that the most boards are non-square rectangles, then Alice's answer is actually correct. To find the median in that case, we consider (for m < 1 . 2 1 ) P ( X Y < m ) = ∫ p X ( x ) P ( Y < m / x ) d x = 1 0 ∫ 1 1 . 1 P ( Y < m / x ) d x = ⎩ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎧ 0 1 0 0 ∫ 1 m ( m / x − 1 ) d x = 1 0 0 m ln m − 1 0 0 m + 1 0 0 1 0 ( m / 1 . 1 − 1 ) + 1 0 0 ∫ m / 1 . 1 1 . 1 ( m / x − 1 ) d x = 1 0 0 m ln m 1 . 2 1 + 1 0 0 m − 1 2 0 1 m ≤ 1 1 ≤ m ≤ 1 . 1 1 . 1 ≤ m ≤ 1 . 2 1 m ≤ 1 A quick calculation shows that P ( X Y < 1 . 1 ) ≈ 0 . 4 8 4 1 2 , so that the median m > 1 . 1 . We solve numerically 1 0 0 m ln m 1 . 2 1 + 1 0 0 m − 1 2 0 = 2 1 and find m ≈ 1 . 1 0 1 6 8 for the median in this situation. Admittedly, a lot more complicated!
Log in to reply
Right - got it now. I missed the bit about length and breadth being equal.
Rather an unnatural condition mind, that the factory can't manufacture the width of wooden squared to a tolerance of better than 10%, but they can manufacture the lengths to be exactly equal to the widths!.. But still it was part of the question.
Whilst the answers given are correct, I think that I must respectfully say that I don't care for them. I think that the answer can be seen easiest by drawing a graph of the length of the square on the x axis, and the area of the square (y = x^2) on the y axis. And then the average from x = 1 to x = 1.1 is a constant line from x = 1 to x = 1.1 with the value AVG (which will of course be between 1 and 1.1^2 = 1.21. So area of rectangle with length 0.1 and height AVG = Integration between 1 and 1.1 of x^2 (I don't know how to generate the integration sign). So 0.1 x Avg = [(x^3)/3] between 1 and 1.1. So 0.1 x AVG = (1 - 1.1^3) / 3. So AVG = 0.331 x 10 / 3. So AVG = 3.31 / 3. Which is 331 / 300. Which is 1.1 + 1 / 300, a rather nasty value! Regards, David Ps All the values of the area are in meters squared of course.
The question is incorrectly framed. The length of the sides of the wooden squares - or of anything - cannot be one square meter. It should read "A factory manufactures wooden squares whose side length should be one meter."
Could you solve this with only a good diagram? My idea was to let x be between 1 and 1.1, and graph the points between (x,1 x) and (x,1.1 x). If you draw these points, they will form a trapezoid (with vertices at (1;1), (1;1.1 1), (1.1;1.1 1.1), (1.1,1.1)). Those points are the possible values for the area (their y coordinate), and maybe somehow you could count their average. Notice how you can cut the trapezoid into two pieces, the two right triangles, and work on them differently, then count their weighted average.
Well it varies uniformly. Alice used 2 decimal points. I think we would have to know the frequency of variation otherwise.
Without doing any calculation or verification, none is correct because the initial data is given inthe problem statmen is wrong and thus not computable. The problem states: “whose side length should be one square meter“. This is wrong because a length cannot be measured in square meters because that is a surface measure. So, since the data of the problem is not correct, no computation using it can yield a correct answer. Again: thinking out of the box
This question was difficult to understand because of word choice. I'm guessing that the factory is making cubes and not squares. Next I guessed that the front and rear faces of the cube are always squares. This leaves only the side length to vary between 1 and 1.1m in length. Assuming equal amounts of uniform statistical distribution between those numbers then the average works out to be {1x1.1+1x1}/2=1.05
I do agree with you the question is ill posted since you they give you two dimension and subsequently you imagine is a board of one meter width by one meter high. In my more than five decade as engineer I never have seen such a cubic wooden block of one meter edge, nor I can imagine the purpose of making it ..unless to be registered in the Guinness
the average would be (1/.1)*(integral of (1 + x)^2 from 1 to 1.1 = .11033333/.1 = 1.10333333 m^2 Ed Gray
Problem Loading...
Note Loading...
Set Loading...
With the side length x varying uniformly from 1 0 0 to 1 1 0 cm the average area will be
1 1 0 − 1 0 0 1 ∫ 1 0 0 1 1 0 x 2 d x = 1 0 1 × ( 3 x 3 ) 1 0 0 1 1 0 = 3 0 1 ( 1 1 0 3 − 1 0 0 3 ) = 3 0 3 3 1 0 0 0 = 1 1 0 3 3 . 3 ˉ cm 2 .
Thus neither Bob nor Alice is correct.