r/learnquant • • 5d ago

interview prep Quant Interview Question

Post image
17 Upvotes

32 comments sorted by

View all comments

1

u/Dr0110111001101111 5d ago

You cannot pick a real number on an interval of R uniformly at random.

2

u/BrotherItsInTheDrum 4d ago

Yes you can? As long as the interval is finite.

2

u/Dr0110111001101111 4d ago

An interval of R is an uncountably infinite set?

2

u/BrotherItsInTheDrum 4d ago

"Finite interval" meaning an interval of finite length, rather than one that goes off to infinity or negative infinity.

2

u/Dr0110111001101111 4d ago

ok... how do you pick such a number?

1

u/BrotherItsInTheDrum 4d ago

By "you can" I mean that the process is mathematically well-defined, so you can reason about it. There are a number of equivalent ways to express it. One is that you roll an infinite number of 10-sided dice, one per digit.

Of course in the actual physical world, I can't actually write one down.

1

u/OutrageousPair2300 4d ago

Roll a ten-sided die for each digit to the right of the decimal point.

That works to generate random numbers uniformly on [0,1] but won't work in the other direction (to the left of the decimal point) because digit sequences aren't allowed to continue to the left forever in the Reals.

2

u/pos_vibes_only 3d ago

Ok and when do you stop?

1

u/OutrageousPair2300 3d ago

You don't. Digit sequences are allowed to continue to the right forever, such as 0.333.... or 0.25000... and both are valid real numbers.

You can't do the same going to the left, since while ...00042 is a valid real number, ...555 is not.

1

u/kenny744 5d ago

:((( who asked you

1

u/OutrageousPair2300 4d ago

You can with a bounded interval, such as [0,1]