What is the expected value of the area of a triangle formed from a broken stick?

In summary: The second cut can be placed in any arbitrary direction. So, as the author points out, the expected value of the triangle's area is zero because we can't actually form the triangle.However, if the cut is placed on the x-axis (the x-axis would then be the broken piece), then the expected value of the triangle's area is 1. (The reason is that the x-axis is the longest side of the triangle and so it should have the most area.)So, in summary, the expected value of the triangle's area is 1 provided that the cut is placed on the x-axis.
  • #1
Radio_active
1
0
Here's a math question I've been thinking about lately.

We have a stick of length one which is broken in one spot (with that spot chosen randomly and uniformly). Of the two broken pieces we take the one on the right and break it into two pieces in the same manner as before.

With our three pieces we then form a triangle. What is the expected value of the triangle's area assuming we can indeed form a triangle?

Anybody have any ideas. Thanks.
 
Physics news on Phys.org
  • #2
When you have two pieces and you take the "one on the right" there are two possibilities, (a) if is the smaller piece, you will never be able to form a triangle; (b) if it is the larger piece, you will always be able to form a triangle. So I think a better way to phrase the problem is to pick the larger piece of the two and break it to get the three pieces.
 
Last edited:
  • #3
Possibility (b) does not guarantee a triangle. Case: if the “left” piece is length 0.4, then the larger “right” piece could be broken into lengths 0.01 and 0.59 which cannot form a triangle.
 
  • #5
So the rule is: if you want to form a triangle, a side cannot exceed 0.5 units.
Not sure how to solve for the expected value of the area analytically.
The first break could be a random variable with uniform distribution ranging between 0 and 0.5 units. The second break would also be a random variable with uniform distribution but the range would be dependent on the actual value of the first break (again, if you want to form a triangle):
Example 1: if the leftmost piece "a" is 0.1 units, this constrains the second piece "b" to be in the range of 0.4 to 0.5 units.
Example 2: if the leftmost piece "a" is 0.4 units, this constrains the second piece "b" to be in the range of 0.1 to 0.5 units.

Use of the Monte Carlo method could provide an estimate of the expected area value, and would be nice to compare with an analytic result.
 
  • #6
Maybe we can set up a system using the triangle-cosine law:

We start with 1, breaking it into x, 1-x . Then we remove y from 1-x, to end up with x,1-x-y,y

Which needs to satisfy ## x^2 = y^2+(1-x-y)^2 -2y(1-x-y)cos\gamma ##

Where ##\gamma## is the angle opposite to the side of length ##x##.
EDIT: Implying ##x= \sqrt{y^2+(1-x-y)^2-2y(1-x-y)cos \gamma} ## and so we need
##y^2+(1-x-y)^2 \geq 2y(1-x-y)cos \gamma ##

I don't see a simple way of dealing with it, other than using geometric probability in some way..
 
Last edited:
  • #7
Can't one use heron's formula (from high school math) for the area?

Other than that, it seems to me answer should depend on exact rule for choice of points. That is:
-- what is the probability distribution (uniform or non-uniform ... good idea to assume uniform to simplify calc.)
-- how are exactly cuts placed (but I think that is described unambiguously in the OP)

So mainly it "seems" to me we have to find "expected area" given that resulting set of sides form a triangle.

For that I think we necessarily need to have necessary and sufficient conditions for a triangle (given three sides a,b,c). My initial guess is that such a condition might be relatively simple(?) (... unless I am missing something ... which is quite possible).
Let c denote the largest side. The guess is:
c < a+b
It would probably be a good idea to verify or refute it with more careful reasoning.

Once we have the right condition, then we can think about returning to main question.

Edit:
edited the condition
 
Last edited:
  • #8
It seems that the condition I mentioned in previous post should be correct. The idea of the condition was to determine necessary and sufficient conditions to determine that three sides a,b,c can form a triangle.

The condition was:
Given sides a,b,c ... let c be the largest side. Then we must have:
c<a+b

One way is to consider the side c being placed horizontally (note that the angles α and β opposite to sides a and b will be both acute angles ... if they weren't, this would violate c being the largest side). Then if we draw a circle of radius a from left endpoint and a circle of radius b from right endpoint then they will intersect (above the side c) only if a+b>c.

===========

Now the problem in OP was:
"We have a stick of length one which is broken in one spot (with that spot chosen randomly and uniformly). Of the two broken pieces we take the one on the right and break it into two pieces in the same manner as before.
With our three pieces we then form a triangle. What is the expected value of the triangle's area assuming we can indeed form a triangle?"

Let's suppose that the first cut was placed on position c. Then we want the following condition to be satisfied:
1/3 ≤ c < 0.5
That is the first cut is in the interval [1/3,0.5) ... this cut is placed instead of arbitrary (0,1) cut.

Now the right-side has length 1-c. An arbitrary cut would be (0,1-c). Suppose the left-side of this cut is "a" and the right-side is "b".
We have the following conditions:
c≥a
c≥b
a+b=1-c

We want to get the conditions for "a". We get:
a ≥ 1-2c
a ≤ c
So the second cut should be [1-2c,c] instead of (0,1-c).

==========

Can the above conditions be used to write down a solution equation (not sure whether it would be analytically feasible)? It seems to me that this could be done (though I haven't tried yet).

Edit:
There is probably one other issue. In general we have the following possibilities:
c is the left-side of first cut (covered above)
c is the left-side of second cut
c is the right-side of second cut

It seems we will also have to cover the second and third possibilities in the general case.

It is possible perhaps that due to certain symmetry considerations (in the case of uniform probability distribution) the other cases might not have to be considered for the expected area(?) ... not sure about this.
 
Last edited:
  • #9
lewando said:
Possibility (b) does not guarantee a triangle.
Yes, of course. It was a hasty statement on my part. Here is what I came up with, building on posts #5 and #7. Heron's formula
##A=\sqrt{p(p-a)(p-b)(p-c)}~;~p=(a+b+c)/2##
can be transformed to
##A=\frac{1}{2}\sqrt{p(p-a)(a^2-\eta^2)}~;~\eta \equiv b-c##
Here, ##a## is the first broken piece and there is uniform probability that it be between 0 and ##p##. The remaining piece can be broken into two more pieces of which the larger piece is labeled ##b## and the smaller piece is labeled ##c##. The difference ##b-c## has uniform probability of having an upper value and a lower value. What are these limits? From ##a+c>b## it follows that ##b-c=\eta<a##. The smallest value for ##\eta## is zero in which case we have an isosceles triangle of sides ##a, p-a/2, p-a/2##. This satisfies the triangle inequality for any value ##0<a<p##.
I assume, without being 100% sure, that the expected value of the area sought by OP is given by
$$\langle A \rangle =\frac{\frac{1}{2}\int_0^p{da}\int_0^a{\sqrt{p(p-a)(a^2-\eta^2)} d \eta}} {\int_0^p{d a}\int_0^a{d \eta}}$$
The denominator integral is trivial. I found the numerator integral using Mathematica.
 
  • #10
SSequence said:
Edit:
There is probably one other issue. In general we have the following possibilities:
c is the left-side of first cut (covered above)
c is the left-side of second cut
c is the right-side of second cut

It seems we will also have to cover the second and third possibilities in the general case.
Just a small point. When I covered the case of c("largest side") being the left-side of first cut, I also included the possibility of it being equal to the other two sides.
So, to be rigorous, when we consider the largest side being the left-side of second cut, we might want to exclude the possibility of it being equal to the left-side of first cut (while including the possibility of its equality to the right-side of second cut).
And similarly we can exclude all equality possibilities in the case when we consider the largest side being the right-side of second cut.

Don't know whether it makes any difference in actual calculation but probably good to make this distinction anyway.

Anyway, the final result it seems will be in the form of an integral (don't know whether it would turn out to be equivalent to one in last post).
 
  • #11
kuruman said:
Heron's formula
There must be an easier way.
Let the stick have length 1. If the first cut is x from the left that has uniform distribution over (0,1). If the second is y from the right, that has uniform distribution over (0,1-x).
To form a triangle, we need x<1/2, y<1/2, x+y>1/2: ##\int_{x=0}^{½}\int_{y=½-x}^{½}\frac {dxdy}{1-x}##.
 
  • Like
Likes WWGD
  • #12
haruspex said:
To form a triangle, we need x<1/2, y<1/2, x+y>1/2: ##\int_{x=0}^{½}\int_{y=½-x}^{½}\frac {dxdy}{1-x}##.

I understand the upper and lower limits, but I do not understand what the double integral represents. It has dimensions of length. How is the average area taken?
 
  • #13
kuruman said:
I understand the upper and lower limits, but I do not understand what the double integral represents. It has dimensions of length. How is the average area taken?
There are two related problems (given the complete description in OP):
(1) Expected area of the triangle ("given" that a triangle can be formed)
(2) Percentage possibility that a triangle can be formed from the resulting sides

I suspect that haruspex's calculation might be yielding the latter quantity (or something similar) ... but I could be wrong, I would have to look more carefully to make sure.
 
Last edited:
  • #14
There are number of points that are confusing me tbh (so hopefully this post make some sense) ... which always seems to happen to me when thinking about probability problems.

From previous post:
"(2) Percentage possibility that a triangle can be formed from the resulting sides"
Let us denote this probability as P.

Considering the integral in post#11 (since this form is comparatively simpler) ... To find the expectation value of area (given a triangle is formed), can't we just attach formula for area (as in post#11) inside the integral (call the resulting integral E) and then divide the resulting answer E by P** (or will there be some problem with this?).

** I am thinking of this division because the OP asked for expectation value of area "given" that we can form a triangle. If we were to assume the area as 0 say (if a triangle couldn't be formed) then the resulting expectation value of area would be like(?):
E+0*(1-P)=E
 
  • #15
SSequence said:
Percentage possibility that a triangle can be formed from the resulting sides
You are right, I misread the question.
 
  • #16
Yes, but the form of your integral is simpler compared to the other suggested ones in the thread (especially mine... which seems to go in an unnecessarily complex direction).
 
  • #17
SSequence said:
Yes, but the form of your integral is simpler compared to the other suggested ones in the thread (especially mine... which seems to go in an unnecessarily complex direction).
Plugging Heron's formula into my integrand produces a first stage integral the same as kuruman's in complexity.
 
  • #18
That seems to be true certainly.
 
  • #19
kuruman said:
I understand the upper and lower limits, but I do not understand what the double integral represents. It has dimensions of length. How is the average area taken?
There are two constraints on the definition/bounds of/for area; each integral describes/defines one of the bounds.
 
  • #20
WWGD said:
There are two constraints on the definition/bounds of/for area; each integral describes/defines one of the bounds.
Each integral is also a sum. What is being added here?
 
  • #21
kuruman said:
Each integral is also a sum. What is being added here?
You're adding the product ##\frac {dxdy}{1-x}## along both constraints given by ##x,y## respectively. The area , given as a product , has restrictions/bounds
along each of the ##x,y## variables. You add along one constraint then along the other ( for most functions you run into, order of the sum does not matter). Think of a discrete scenario, e.g., of Salary as a function of years of college and years of work experience where you want to find the average salary over, say all your workers with between 0-4 years of college and 0-5 years of experience so that there is some interaction between the factors ( i.e., non-linearity) given as a product (##dxdy## here) Then you are adding all combinations of work experience values 0-4 as well as years of college . Hope that was clear, let me know otherwise.
 
  • #22
WWGD said:
You're adding the product ##\frac {dxdy}{1-x}## along both constraints given by x,yx,y respectively.
I understand that I am adding ##\frac {dxdy}{1-x}## and I understand the constraints. What I don't understand is that, when I'm done adding, I get that the value of the integral is ##\ln(2)-1/2=0.193##. What is the meaning of ##0.193## in terms of what the problem is asking to find?
 
  • #23
kuruman said:
I understand that I am adding ##\frac {dxdy}{1-x}## and I understand the constraints. What I don't understand is that, when I'm done adding, I get that the value of the integral is ##\ln(2)-1/2=0.193##. What is the meaning of ##0.193## in terms of what the problem is asking to find?
EDIT2: The probability that a stick of length 1, broken at random twice as described, will produce a triangle, i.e., satisfy the constraint ##a< b+c ## as a sum of " infinitesimal" probabilities for combinations of constraint pairs along ##x,y##. EDIT: More accurately, a sum of probability/area values at a choice of pairs of values for ## x,y## selected across choices of intervals ##[x_i, x_{i+1},], [y_j,y_{j+1}]## whose value converges to the sum of all values per the conditions for convergence of the Riemann integral, a.k.a, geometrically, the volume of the subset of the cube of choices of triples of values ## x,y,z## which will produce a triangle.
 
Last edited:
  • #24
WWGD said:
EDIT2: The probability that a stick of length 1, broken at random twice as described, will produce a triangle, i.e., satisfy the constraint ##a< b+c ## as a sum of " infinitesimal" probabilities for combinations of constraint pairs along ##x,y##. EDIT: More accurately, a sum of probability/area values at a choice of pairs of values for ## x,y## selected across choices of intervals ##[x_i, x_{i+1},], [y_j,y_{j+1}]## whose value converges to the sum of all values per the conditions for convergence of the Riemann integral, a.k.a, geometrically, the volume of the subset of the cube of choices of triples of values ## x,y,z## which will produce a triangle.

Ultimately, 0.193 means: The unit cube represents the collection of all possible values the three sides of a triangle bounded by ## 0 \leq x,y,z \leq 1## that may be assumed when we cut two pieces as described. 0.193 represents the portion of the volume of ##1= 1\times 1 \times 1 ## of all these values that form a "viable" (actual) triangle. This value is obtained by adding the "infinitesimal" volumes of viable pairs. So 19.3% of all cuts produce a triangle.
 
  • #25
So if ##A(x,y)## is the area of the triangle in terms of segments ##x## and ##y##, then the expectation value of the area would be $$<A>=\frac{\int_0^{\frac 1 2}{d x}\int_{\frac 1 2 -x}^xA(x,y){dy}}{\ln(2)-\frac{1}{2}}.$$
 
  • #26
kuruman said:
So if ##A(x,y)## is the area of the triangle in terms of segments ##x## and ##y##, then the expectation value of the area would be $$<A>=\frac{\int_0^{\frac 1 2}{d x}\int_{\frac 1 2 -x}^xA(x,y){dy}}{\ln(2)-\frac{1}{2}}.$$
Not 100% on your notation, but you use the standard formula for the continuous case : ## \int xf(x) dx ## where ## x ## is the area of a triangle and ##f(x)## is the associated probability, integrating over the unit cube.
 
  • #27
How would you write the expectation value for the area? I am trying to ascertain if this approach gives the same answer as the expression I posted in #9 and if it doesn't, why not.
 
  • #28
kuruman said:
How would you write the expectation value for the area? I am trying to ascertain if this approach gives the same answer as the expression I posted in #9 and if it doesn't, why not.
Sorry, I don't understand the hypothetical. Why don't you try it and , if the two are not equal, we can see way; seems a more efficient way of doing things.
 
  • #29
WWGD said:
Why don't you try it ...
Why don't I try what for the comparison? In post #26 you seem to object to my use of "the standard formula for the continuous case." OK then what, in your reckoning, is the appropriate formula to use for finding the expectation value for the area in this specific case? I am not the OP and this is not a homework problem. Nevertheless, if you are unwilling to post it here, please send it to me in a private message.
 
  • #30
kuruman said:
Why don't I try what for the comparison? In post #26 you seem to object to my use of "the standard formula for the continuous case." OK then what, in your reckoning, is the appropriate formula to use for finding the expectation value for the area in this specific case? I am not the OP and this is not a homework problem. Nevertheless, if you are unwilling to post it here, please send it to me in a private message.

No, I am not objecting to your use, I am trying to describe the general approach to finding the expectation of a continuous R.V. Maybe I am being lazy, but, to me, the hardest part of Math is navigating through the notational messes.
 
  • #31
OK, thanks.
 
  • #32
kuruman said:
OK, thanks.
If you give me some time, I will give it a shot. It would be nice to see how it compares to the product of the expected values for, e.g., Heron's formula or general area formula.
 
  • #33
@kuruman
Regarding post#25, it seems to me that you didn't include the factor of 1/(1-x). Any specific reason for not including it?
I am guessing the denominator is evaluation of integral in post#11.

I think (in the area formula of a triangle) we can take the two sides to be x and y and the third side to be 1-x-y ... and I am assuming this what you mean by A(x,y) in post#25.

In post#14 I was basically suggesting/asking about the same formula ... except I was suggesting including the factor of 1/(1-x) ---- basically plugging in area formula directly in integral in post#11 (and dividing the result by probability of forming of a triangle).

WWGD said:
Ultimately, 0.193 means: The unit cube represents the collection of all possible values the three sides of a triangle bounded by ## 0 \leq x,y,z \leq 1## that may be assumed when we cut two pieces as described. 0.193 represents the portion of the volume of ##1= 1\times 1 \times 1 ## of all these values that form a "viable" (actual) triangle. This value is obtained by adding the "infinitesimal" volumes of viable pairs. So 19.3% of all cuts produce a triangle.
This is a good visualisation, but I think a couple of things should be made explicit:
(1) Within the unit cube, the only points that "could" correspond to formulation of a triangle are the ones satisfying the constraint (which is the main constraint of the problem):
x+y+z=1

Call the resulting set A (set of points in unit cube satisfying the main constraint above). And when we consider the points belonging to A, only a subset of these will correspond to possible formulation of a triangle.

(2) If we consider the points corresponding to set A, we can associate a corresponding probability density function with each point in A. So it seems we have to be a little cautious with doing a literal interpretation in terms of volume ratios.

Furthermore percentage probability of forming a triangle is linked to points of A and some subset of A. Unless I am missing something, the unit cube doesn't come into it directly.
 
Last edited:
  • #34
I found this ttps://mathoverflow.net/questions/2014/if-you-break-a-stick-at-two-points-chosen-uniformly-the-probability-the-three-r
 
  • #35
SSequence said:
Regarding post#25, it seems to me that you didn't include the factor of 1/(1-x). Any specific reason for not including it?
Please ignore post #25 where I was grappling with the 1/(1-x). Also I found that post #9 has an error in it. I had an epiphany last night and I was able to find the same answer using two different ways. I will write it up and post it as an "insight" if it meets with Greg's approval.
 
<h2>1. What is the formula for calculating the expected value of the area of a triangle formed from a broken stick?</h2><p>The formula for calculating the expected value of the area of a triangle formed from a broken stick is (1/4)*L^2, where L is the length of the original stick.</p><h2>2. How is the expected value of the area of a triangle affected by the length of the original stick?</h2><p>The expected value of the area of a triangle is directly proportional to the length of the original stick. This means that as the length of the stick increases, the expected value of the area of the triangle also increases.</p><h2>3. Can the expected value of the area of a triangle be negative?</h2><p>No, the expected value of the area of a triangle cannot be negative. It represents the average value of all possible outcomes, and an area cannot be negative.</p><h2>4. How does the expected value of the area of a triangle change if the stick is broken into more than three pieces?</h2><p>The expected value of the area of a triangle remains the same regardless of the number of pieces the stick is broken into. As long as the pieces can still form a triangle, the expected value will be (1/4)*L^2, where L is the length of the original stick.</p><h2>5. Is the expected value of the area of a triangle affected by the angle at which the stick is broken?</h2><p>No, the expected value of the area of a triangle is not affected by the angle at which the stick is broken. As long as the pieces can still form a triangle, the expected value will be (1/4)*L^2, where L is the length of the original stick.</p>

1. What is the formula for calculating the expected value of the area of a triangle formed from a broken stick?

The formula for calculating the expected value of the area of a triangle formed from a broken stick is (1/4)*L^2, where L is the length of the original stick.

2. How is the expected value of the area of a triangle affected by the length of the original stick?

The expected value of the area of a triangle is directly proportional to the length of the original stick. This means that as the length of the stick increases, the expected value of the area of the triangle also increases.

3. Can the expected value of the area of a triangle be negative?

No, the expected value of the area of a triangle cannot be negative. It represents the average value of all possible outcomes, and an area cannot be negative.

4. How does the expected value of the area of a triangle change if the stick is broken into more than three pieces?

The expected value of the area of a triangle remains the same regardless of the number of pieces the stick is broken into. As long as the pieces can still form a triangle, the expected value will be (1/4)*L^2, where L is the length of the original stick.

5. Is the expected value of the area of a triangle affected by the angle at which the stick is broken?

No, the expected value of the area of a triangle is not affected by the angle at which the stick is broken. As long as the pieces can still form a triangle, the expected value will be (1/4)*L^2, where L is the length of the original stick.

Similar threads

Replies
29
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
3K
Replies
66
Views
4K
Replies
13
Views
2K
  • Introductory Physics Homework Help
Replies
14
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
2K
  • Calculus and Beyond Homework Help
Replies
2
Views
2K
  • Math Proof Training and Practice
3
Replies
83
Views
17K
  • Math Proof Training and Practice
2
Replies
42
Views
6K
  • High Energy, Nuclear, Particle Physics
Replies
4
Views
3K
Back
Top