Let me describe the object before I compute with it. I draw two independent uniform numbers, so my sample space is the unit square, and the joint density on that square is the constant one, so a probability here is literally an area. That one sentence is what makes the rest of this question geometric rather than combinatorial.
Two events matter, and I write both down. A is the vertical strip where the first number x exceeds a half. B is the half-plane above the line x plus y equals one. Each has probability a half - the strip is half the square, the line is a diagonal - and what is asked is one given the other.
What is asked is a conditional probability, so the definition goes on the board first, as the probability of the intersection over the probability of the conditioning event. The denominator is a half, which is strictly positive, and that is exactly why the definition applies here with no further machinery.
I will do it three ways and then check it numerically. First the area ratio, then the pointwise route in x, then the joint ratio through the density of the sum, plus a seeded simulation. I will not guess the number first, because on a continuous space the plausible guesses go wrong in more than one direction.
The seeded Monte Carlo comes last, and it earns no number of its own until the area route has produced one.
So let me make the area claim explicit rather than hand-wavy. The conditional is the probability of the intersection divided by the probability of the conditioning event, and both of those are integrals of the constant density one, so both are just areas. My job reduces to two areas and a division.
The denominator is a half - the strip is half the square - so dividing by it multiplies the overlap by two. I keep that factor of two written down, because forgetting it is the single most common way to get this question wrong.
Now the two warnings, and I want them on the board rather than in my head. First, the definition factors nothing. The intersection is not the product unless the two events are independent, and both of these talk about the same variable, so I will check independence with numbers further down rather than assume it. Second, the definition needs a positive denominator, which is exactly what fails if someone replaces the strip by the single line x equals a half. I will come back to that, because it is the real subject of this question.
And I set the frame the answer has to sit in. It lies between zero and one, equals a half if I condition on nothing, and sits above a half here, because knowing the first number is large can only help the sum exceed one. If my computation lands below a half, I look for my mistake.
I will draw it, partly to check I have not fooled myself. The strip is the right-hand half of the square, full height, area a half. The line x plus y equals one goes corner to corner from nought comma one down to one comma nought, and where it crosses the left edge of my strip it is at height a half, because at x equals a half the boundary is y equals a half.
So inside the strip the line cuts off a corner at the bottom right. That corner is a right triangle with both legs a half, so its area is a half times a half times a half, which is an eighth. The strip is a half, so the part of it above the line is a half minus an eighth, which is three eighths.
Divide by the strip: three eighths over one half is three quarters. That is my candidate answer, and notice that the factor of two from beat 2 is the doubling I promised - three eighths of overlap, doubled, is three quarters.
Before I move on, the picture has to pass one more test. The same line cuts the complementary strip, where x is at most a half, into a triangle of area an eighth too - the green piece. Three eighths plus an eighth is a half, and a half is the unconditional probability that the sum exceeds one, which is the area of the whole upper triangle. So the cut reassembles correctly, and the drawing is not lying to me.
Now the same area as an integral, so that the geometry is backed by algebra. In the column at position x the strip runs from y equals nought to one, and the part of that column satisfying the sum condition is y greater than one minus x, whose length is x. Integrating x from a half to one gives x squared over two, which is a half minus an eighth, three eighths. Same numerator as the drawing.
Route B is the same computation but read as probability rather than as area, and this is the route that generalises. Fix x. Then the sum exceeds one exactly when y exceeds one minus x, and since y is uniform, that probability is one minus the cut-off, which is x itself. So the conditional probability given the strip is the average of the function x over the strip - not its value anywhere in particular.
Averaging: the density of x inside the strip is two, so I get two times the integral of x from a half to one, which is two times three eighths, three quarters. The two routes agree with the drawing, which is the first time I have had three copies of the same number.
And look at what just fell out: the average of x over the strip is the conditional expectation of x given x exceeds a half, which is three quarters. So this probability equals a conditional mean - a fact I am going to test as a mean in beat 7 and turn into a formula in beat 8. The reason it works is that the pointwise probability is the identity function x, and the identity function is increasing, which is also exactly why the answer is bigger than the value at the boundary.
Time to check the number against reality rather than against myself. I drew pairs from a PCG64 generator, first seed seven zero zero seven zero zero, second seed one seven zero seven zero zero, and kept only the pairs with the first coordinate above a half. One thing about the design before any number comes up. The hundred-thousand and million rows are prefixes of the ten-million stream at the same seed, so they are one draw viewed three times, not three independent experiments. The seeds are independent of each other, and that is the only independence in the table.
Here are the conditional frequencies. The first gives 0.7504352, 0.7500614, 0.7499146 at a hundred thousand, a million and ten million drawn. The second gives 0.7479225, 0.7493989, 0.7500516. Against the theory three quarters, and the z sits next to every one of them - plus 0.2247, plus 0.1004, minus 0.4408, minus 1.0722, minus 0.9824, plus 0.2667.
Now let me say which error bar those z's use, because this is where a conditional estimate is usually botched. It is the Bernoulli bar on the accepted count, 0.43301270 over root M, not over root N - half the pairs are thrown away by the conditioning, and a bar that pretends otherwise is smaller than the truth by one over root two, which is 0.707107, understating the spread by 29.29 per cent. The accepted count M is itself random, so my bar is conditional on the realised M, and I am stating that rather than hiding it.
I checked the two conventions against each other. The observed bar differs from the theory bar only in the fifth or sixth decimal place at worst, and the biggest gap of the six is the smallest one, where the two bars are 0.00193764 and 0.00194297 and the two z's are minus 1.0722 and minus 1.0692. The delta-method bar for the ratio estimator, which treats the denominator as the random thing it is, comes out at 0.61237244 over root N, the same number as 0.43301270 over root of N over two, so the two routes agree to within eight ten-thousandths of a z. That means the table is not an artefact of my choice of bar.
The unconditional cells check the ingredients rather than the ratio. The share of pairs above the diagonal came out 0.4998936 against a half, the share in the strip 0.4999797, the share in the overlap 0.3749421 against three eighths, with z's of minus 0.6729, minus 0.1284 and minus 0.3782. A second design, a rejection sampler run until a fixed number of pairs is accepted rather than a fixed number drawn, gave the same picture. Its six z's run from minus 1.4701 to plus 1.7169, so three quarters holds there within 1.72 standard errors too. The cost per accepted pair reads 2.0017, 1.9995, 2.0005 against the theory two, itself a check that the acceptance probability is a half. That ratio has a negative-binomial bar of its own, root two over root M, and with it the three deviations read plus 0.3734, minus 0.3330 and plus 1.1095 rather than the smaller numbers a bar of two over root M gives.
The honest summary of all sixty-nine cells is this. The largest deviation anywhere in the run is 1.7232 standard errors, and it is not in this table at all - it is the smallest-radius off-centre disc cell that beat 9 writes up. Among the cells above, the largest is 1.7169, in the fixed-count sampler, not the first stream's ten-million cell, whose z is only minus 0.4408. No cell exceeds two; seventeen of the sixty-nine exceed one, so I will not claim the run sits inside one standard error. And the bars shrink by a factor of root ten per digit of sample - 0.00193698, 0.00061196, 0.00019365 - not by a factor of two, and to settle three decimals of three quarters at two standard errors costs about three million accepted pairs, which is six million drawn.
Third route, and it starts by naming the right object. The sum of two independent uniforms has the triangular Irwin-Hall density, rising like s up to one and falling like two minus s after that. Integrating the falling half from one to two gives two minus three halves, which is a half. That is the unconditional probability that the sum exceeds one, and it agrees with the area of the upper triangle from the drawing.
But now the trap, and I want it said out loud rather than avoided. That density is a marginal - it has forgotten which variable did the work. If I try to build the conditional out of marginals only I get a half over a half, which is one, and one is absurd. Knowing the first number is above a half does not force the sum above one, since the pair 0.6 and 0.3 is a counterexample living in my strip. The conditional needs the joint probability, that is the two-dimensional overlap.
So route C closes like this. The numerator is the joint three eighths from the square, the denominator is a half, and the two are tied together by an additivity check. The part of the event B where x is at most a half is the integral of x from nought to a half, which is an eighth, and three eighths plus an eighth is a half - exactly what the density gave me independently. So the density and the region agree, and neither is a slip of a factor.
Now the independence question I promised in beat 2. The product of the two probabilities is a quarter, and the actual overlap is three eighths. They are not equal, so the events are not independent, and the covariance of the two indicator variables is one eighth, which as a correlation is one eighth over one quarter, exactly a half. So conditioning on the strip really does change the answer, and the tempting reply 'the numbers are independent, so the answer is still a half' confuses independence of the variables with independence of these two events. The simulation of the reversed conditional, three quarters to within a z of plus 0.2262, says the same thing.
The licence for the averaging in route B is the law of total probability restricted to the conditioning set. Inside the strip the density of x is two, because a half of the mass has been renormalised onto a half of the interval, and integrating the pointwise probability x against that density gives three quarters. That is the step that makes averaging the slice values a theorem rather than a metaphor.
And the density itself is measured, not quoted. The cumulative values at one half, one, one and a half and one point eight came out 0.1251182, 0.5001064, 0.8749523 and 0.9800039 against one eighth, a half, seven eighths and forty nine fiftieths, with z's of plus 1.1302, plus 0.6729, minus 0.4561 and plus 0.0881 next to them. The mean is 0.9999506 against one and the variance 0.1667289106 against one sixth, which is a z of plus 0.9981 on a bar of six point two three times ten to the minus five built from the fourth moment one fifteenth. So the triangular law I just integrated is the law the generator actually produces.
Let me get the number by an argument that shares no algebra with the first one. Both events have probability a half, so the Bayes denominator is the same whichever way round I write the ratio, which means the probability the sum exceeds one given the strip equals the probability the first number exceeds a half given the sum exceeds one. So I can answer the reversed question.
And the reversed question is a different cut. I start in the upper triangle, whose area is a half, and ask what fraction of it has x above a half. The vertical line x equals a half clips off the little triangle at the top left, with legs a half and a half and area an eighth, which is a quarter of the triangle. So three quarters of the triangle has x above a half - three quarters again, reached from the other side.
The identity from route B deserves its own check, because it is the one I am going to generalise. I took the accepted x values themselves and averaged them, and read 0.7499254 against three quarters. The error bar here is not the Bernoulli one. The variance of a uniform on a half-interval is one forty-eighth, so the standard error is six point four five five times ten to the minus five and the z is minus 1.1559. That bar is three times tighter than the indicator bar on the same pairs, and I am reporting the z rather than calling the agreement good.
Now a check designed to disagree. If I replace the continuum by the ten-point grid of multiples of a tenth and count, which is what a candidate who thinks of probability as favourable over total cases will do, I get forty out of fifty, which is 0.8. Doubling the grid gives 0.775, a hundred gives 0.755, a thousand gives 0.7505. The exact bias is one over two n, so it converges to three quarters from above - and it is a bias, not noise: 0.8 is two hundred fifty-eight standard errors away from the truth, so no amount of sampling from that model will ever find three quarters.
So the count stands at four independent derivations - the cut of the strip, the average of the pointwise probabilities, the ratio of joint probabilities closed by additivity, and the Bayes flip - all giving three quarters, plus sixty-nine simulated cells with nothing past two standard errors. That is as settled as a number gets on a whiteboard.
So the answer is three quarters, obtained as the overlap three eighths divided by the strip one half.
Now let me widen it, because the working never used the value a half. Take the condition x greater than c, with c between nought and one. The same computation gives the integral of x from c to one over one minus c, which is one minus c squared over two minus two c, and that cancels to one plus c over two. At c equals nought that is a half, the unconditional answer, just as the sanity frame on my board demanded. At a half it is three quarters, and the line is increasing with slope one half, so each extra tenth of threshold buys five hundredths of probability.
The two ends of that family fail in two different ways, and I want them stated separately rather than as a vague it breaks down. Below nought the conditioning event stops being a strip and becomes the whole square, so the answer is pinned at a half, and the formula one plus c over two, which would hand me 0.375 at c equals minus a quarter, is simply wrong there - I checked it on the stream and got 0.4998936. At one and above the conditioning event has probability nought, the ratio is nought over nought, and there is no conditional probability at all. One is only the limit as c approaches one from below, and c equals nought point nine nine does give nought point nine nine five, which the simulation confirms with a z of minus nought point seven eight one three. What survives across the whole range is the identity with the conditional mean, not the closed form.
And here is the scan behind that claim, read out because it is the identity that has to survive rather than my algebra. The six thresholds nought, a quarter, a half, three quarters, nine tenths and ninety-nine hundredths came back with z's of minus nought point six seven two nine, minus nought point three two six eight, minus nought point four four o eight, minus one point two eight eight three, minus one point three one three six and minus nought point seven eight one three, all against one plus c over two, none past two standard errors. The rightmost row is the one I would have had to take on faith. There the conditioning event is only a hundredth of the square, and the number is measured, not asserted.
And the identity dies too, just somewhere else. Replace the target one by some other threshold t and the pointwise probability stops being the identity function. It becomes a clamped line, flat at nought, then rising with slope one, then flat at one, and averaging that is not averaging x. Concretely at c equals a half, a target of one point two gives three quarters minus a fifth, which is 0.55, and a target of one point eight gives two times the integral from nought point eight to one of x minus nought point eight, which is nought point nought four. So probability matching conditional mean is an accident of the target being exactly one, and it is worth knowing which accident you are relying on.
Last line is the one the examiner is actually listening for. Everything I did was an average over the strip, and the average of the slice values is strictly bigger than the slice value at the boundary, by one minus c over two, which at c equals a half is a quarter. So the answer to given x exceeds a half is three quarters, the answer to given x equals a half is a half, and both are correct. That is the next beat.
If you want me to go one step further, suppose I am told the first number is exactly a half. Then the ratio definition fails - the intersection and the conditioning event both have probability nought, and nought over nought is not an answer. What I write instead is the regular conditional density. Because the two variables are independent and the density of x at a half is positive, the conditional law of y given x equals a half is still uniform, so the probability is a half.
And this is no contradiction with three quarters, and no rounding of it. Three quarters is the average of the slice values over the strip; a half is the slice value at the boundary. Since the slice function is the increasing function x, that average is strictly larger, by one minus c over two, a quarter at c equals a half. And the two ways of shrinking onto the line disagree - a symmetric strip gives a half, a one-sided strip squeezed down keeps three quarters. So the conditional probability is not continuous in that degenerate limit, and the strip I was given does not shrink at all.
The reconciliation is the law of total probability for a continuous variable. Integrating the slice values against the density of x recovers a half, which is the unconditional probability, and integrating them over the strip and renormalising recovers three quarters. So the slice is the integrand and the strip is the average - one object, two readings, no paradox.
Where it would become a genuine paradox is if I pretended the value on a null set is determined by the geometry alone. It is not. I get a half from a symmetric strip around the line, and I get a half from a disc centred on the diagonal, because that line cuts the disc into two equal halves. I measured the strip and three radii of the concentric disc - 0.5003459, 0.4997190, 0.5003428, 0.5014010 - and those four cells all sit inside one standard error of a half, with the error bar taken as root of p one minus p over the count inside the set, the same theory-p convention as the strip cells in beat 5. The half-strip the question actually names is not a shrinking set at all, and that is where three quarters comes from.
Two more things I checked rather than assumed. First, the half does not depend on the disc being in the middle of the square. Reflecting in x plus y equals one sends x y to one minus y, one minus x. That fixes the square and any disc centred on the line, and swaps its two sides - so the split is exact wherever the centre sits. The off-centre runs agree: 0.5001464 at centre (0.85, 0.15), 0.4988653 at (0.2, 0.8), 0.4975053 with the centre at the corner (1, 0), and 0.4969326 at (0.62, 0.38) on radius one twentieth. That last one is minus 1.7232 standard errors from the exact half, the largest deviation in this page's sixty-nine cells, so I put the number up rather than call it a near miss, and nothing passes two. Second, shrinking does not force a half either. Intersect that centred disc with the strip x above a half, and the exact answer is three quarters at every radius up to a half. In angles from the centre my half runs from minus half pi to half pi, and the sum condition reads cosine plus sine of the angle greater than nought, so everything above minus quarter pi survives, three quarters of it. Measured, 0.7496281 at radius a fifth with z minus 0.6805, and 0.7509203 at radius one twentieth with z plus 0.4204. So the limit depends on the shape of the set, not on the point it shrinks to, which is why the honest object is the regular conditional density, not a shrinking limit.
I would offer that as a bonus rather than as the answer, because the question as printed conditions on an event of probability a half, and for that the ratio definition is all you need. The answer is three quarters.
No, and the two numbers are far enough apart that the difference is worth understanding rather than apologising for. Given the exact value x equals a half, the sum exceeds one precisely when y exceeds a half, and y is uniform and independent, so the probability is a half. Given the strip x greater than a half, the probability is the average of the pointwise values over the strip. The pointwise value at x is x itself, so the average of x over the interval from a half to one is three quarters.
The general form of the gap is the clean way to see it. The strip answer is one plus c over two, the slice answer is c, and the difference is one minus c over two, which is a quarter at c equals a half, a half at c equals nought, and nought only in the limit as c approaches one. The slice value is always the smaller one, because the pointwise probability is an increasing function, so its average over the strip to the right of c sits above its value at the left edge.
And the honest statement of what licenses the a half is the regular conditional density, not the ratio definition, because the ratio there is nought over nought. If you shrink the conditioning set onto the line, the answer depends on the shape you shrink with. A symmetric strip gives a half, and a disc centred on the line gives exactly a half for every radius, because the line bisects it. So I would never write down a value on a null set without saying which sets I am shrinking. The question as printed asks about a set of probability a half, and there the ratio definition gives three quarters with no machinery at all.
Outside the unit interval it splits into two separate failures. For c at most nought the conditioning event is the whole square, so the answer is pinned at the unconditional a half. My formula would have said 0.375 at c equals minus a quarter, but the measured value at c equals minus a quarter was 0.4998936, and the closed form is dead there while the identity with the conditional mean is not, because the conditional mean of x given x greater than a negative number is also a half. For c at least one the conditioning event is empty, the ratio is nought over nought, and there is no conditional probability to compute. One is only a left-limit, and c equals nought point nine nine does give nought point nine nine five, measured at 0.9948253 with a z of minus 0.7813.
Change the target from one to some t and the identity is what dies. Given x, the pointwise probability is that y exceeds t minus x, which is one minus the cut-off, so one minus t plus x, whenever the cut-off sits between nought and one. Outside that it saturates at nought and one, a clamped line rather than the identity function. Averaging a clamped line is not averaging x, so the answer is the expectation of the clamp, not the conditional mean. Concretely, at c equals a half a target of one point two gives 0.55, and a target of one point eight gives 0.04, because the strip's x values below nought point eight contribute nothing at all, and at c equals nought a target of a half gives seven eighths.
So the summary I would want on the board is this. The formula one plus c over two is valid for c from nought to one, the identity with the conditional mean is valid for every c below one, and both are accidents of the target being exactly one - the value that makes the pointwise probability the identity function. Where a formula stops applying is part of the formula.
The first one is three quarters again, and the reason is a coincidence worth naming. The two events have the same probability, a half each, so the Bayes denominators agree and the two conditionals must be equal. Geometrically it is a different cut - in the upper triangle the line x equals a half clips off a triangle of area an eighth, a quarter of it, leaving three quarters. I measured it as 0.7500438 with a z of plus 0.2262. But do not turn that into a law. The reversed conditional matches only when the two events have equal probability, and it is worth saying which of your equalities are theorems and which are arithmetic accidents.
The second question is the interesting one, because knowing the larger number exceeds a half is weaker information than knowing the first one does, and the answer moves the other way. The sum event is contained in the event that the maximum exceeds a half, since if both numbers were at most a half the sum could not exceed one. So the overlap is the whole of the sum event, a half, and the maximum event has probability one minus a quarter, which is three quarters. That is the L-shaped region on the board, and the conditional is a half over three quarters, two thirds.
So two thirds, measured at 0.6665112 with a z of minus 0.9032. Put the four neighbours side by side and the pattern is clear. Conditioning on x above a half gives three quarters, on y at most a half gives a quarter, on the maximum above a half gives two thirds, and on the minimum above a half gives one exactly, because that event sits inside the sum event. The probability of the conditioning event tells you almost nothing; what matters is how the two regions overlap. And none of the four is independent of the sum event, because the product rule fails for all four.
Yes, and the honest version comes with its own error bar. Draw pairs, throw away the ones with the first coordinate at most a half, and count how often the surviving pairs have a sum above one. With two seeds and three nested sizes I got 0.7504352, 0.7500614 and 0.7499146 for the first stream and 0.7479225, 0.7493989 and 0.7500516 for the second, all against three quarters, and I wrote the z beside every one of them - plus 0.2247, plus 0.1004, minus 0.4408, minus 1.0722, minus 0.9824, plus 0.2667. The largest deviation anywhere in the run is 1.7232 standard errors, and nothing exceeds two.
How many pairs is a real question, not a formality. The estimator is a Bernoulli proportion on the accepted count, so its bar is 0.43301270 over root M. To make two standard errors as small as five thousandths costs thirty thousand accepted pairs, sixty thousand drawn at an acceptance rate of a half, while the five ten-thousandths that pin the third decimal cost three million accepted pairs and six million drawn. My ten-million-pair stream gives a bar of 0.00019365, and that does resolve three quarters to three decimals. The hundred-thousand-pair run does not, and no run at all produces 0.75 exactly - a simulation never confirms a number, it only fails to contradict it.
Two traps are specific to doing this numerically. The first is the error bar. Using the total number of pairs drawn instead of the accepted count shrinks the bar by one over root two, which is 29.29 per cent too optimistic, and it is the natural thing to write if you forget that conditioning throws half the data away. The second is discretisation dressed up as simulation. Counting on the grid of tenths gives 0.8, and its exact bias is one over two n, so refining the grid to a thousand points gives 0.7505 - still a bias, not noise, and 0.8 is 258 standard errors away from the truth. If I want a number I sample the continuum, and if I want a check I sample it with the bar attached.