Probability Using Graph

How can I solve this problem using a graph and geometric solutions?

Line segment AB has a measurement of 1. Line segments CD and EF has lengths of 0.25 and 0.1 respectively. If the two latter line segments were randomly plotted on the line segment AB (such that no lengths go off of the segment), what's the chance that they share a length?

Can someone elaborate how to do this? I'm hoping the solution doesn't involve any calculus.

#Combinatorics

Note by Kaizen Cyrus
1 year ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Let AB AB run from x=0 x = 0 to x=1 x = 1 . Let x1x_1 be the left end of CD CD , and let x2x_2 be the left end of EF EF . Since neither strip is allowed to extend outside of AB AB , the range on x1 x_1 is (0x10.75(0 \leq x_1 \leq 0.75 ) and the range on x2 x_2 is (0x20.9(0 \leq x_2 \leq 0.9 ). This gives us a "parameter space" which is a rectangle. Divide the parameter space into a bunch of little infinitesimal squares of area dx1dx2 dx_1 dx_2 , and conditionally integrate the area in parameter space.

Since CD CD is longer than EF EF , if they are to overlap, either the left end of CD CD can be within EF EF , or the right end of CD CD can be within EF EF . Both conditions cannot be true simultaneously. It is also possible for EF EF to lie entirely within CD CD . Divide the accumulated area by the total area of the parameter space to get the probability.

This can be summarized mathematically as follows:

P=10.7510.900.900.75M(x1,x2)dx1dx2M(x1,x2)=1if(x1>x2)AND(x1<x2+0.1)M(x1,x2)=1if(x1+0.25>x2)AND(x1+0.25<x2+0.1)M(x1,x2)=1if(x1<x2)AND(x1+0.25>x2+0.1)M(x1,x2)=0otherwise P = \frac{1}{0.75} \frac{1}{0.9} \int_0^{0.9} \int_0^{0.75} M(x_1, x_2) \, dx_1 \, dx_2 \\ M(x_1, x_2) = 1 \,\,\, \text{if} \,\, (x_1 > x_2) \text{AND} (x_1 < x_2 + 0.1) \\ M(x_1, x_2) = 1 \,\,\, \text{if} \,\, (x_1 + 0.25 > x_2) \text{AND} (x_1 + 0.25 < x_2 + 0.1) \\ M(x_1, x_2) = 1 \,\,\, \text{if} \,\, (x_1 < x_2) \text{AND} (x_1 + 0.25 > x_2 + 0.1) \\ M(x_1, x_2) = 0 \,\,\, \text{otherwise}

Computing this integral results in a probability of 0.374 \approx 0.374 . I have attached the code I used to do the computation.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import math

Num = 10**4

dx1 = 0.75/Num
dx2 = 0.9/Num

dA = dx1*dx2

Aref = 0.75*0.9

method = 1

###############################

A = 0.0

x1 = 0.0

while x1 <= 0.75:

    x2 = 0.0

    while x2 <= 0.9:

        if (x1 > x2) and (x1 < x2 + 0.1):   # if left end of CD inside EF
            A = A + dA

        if (x1 + 0.25 > x2) and (x1 + 0.25 < x2 + 0.1):   # if right end of CD inside EF
            A = A + dA

        if (x1 < x2) and (x1 + 0.25 > x2 + 0.1): # if EF entirely within CD
            A = A + dA

        x2 = x2 + dx2

    x1 = x1 + dx1

###############################

P = A/Aref

print dx1
print P

#>>> 
#0.00075
#0.374022000002
#>>> ================================ RESTART ================================
#>>> 
#7.5e-05
#0.374069190164
#>>> 

Steven Chase - 1 year ago

Log in to reply

Based on this image by someone, the probability is 0.37\approx 0.37. Is there something wrong with the computation? How can I solve the problem using geometric solutions?

Kaizen Cyrus - 1 year ago

Log in to reply

Good catch. There is a third condition that I initially forgot to consider. There is overlap if any of the three conditions are true:

1) The left end of CD CD is within EF EF
2) The right end of CD CD is within EF EF
3) EF EF is contained entirely within CD CD (neither end of CD CD is within EF EF

When I include the third condition, I get 0.374 0.374 as the probability. If you don't like calculus and/or programming, perhaps the other guy's geometry solution will inspire you.

Steven Chase - 1 year ago

Log in to reply

@Steven Chase The thing is though I don't understand how the shapes were formed/determined.

Kaizen Cyrus - 1 year ago

Log in to reply

@Kaizen Cyrus If you shaded the parameter space according to the rules I described, you would get those shapes

Steven Chase - 1 year ago
×

Problem Loading...

Note Loading...

Set Loading...