Skip to main content
deleted 57 characters in body
Source Link
Ben
  • 132.9k
  • 7
  • 255
  • 588

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform $[0,1]$ distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ \Pr(\text{length} = 1) = \int_0^1 \int_0^{x_1} \mathrm{d}x_2\, \mathrm{d}x_1 = 1/2 $$ $$ \Pr(\text{length} = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} \mathrm{d}x_3 \, \mathrm{d}x_2 \, \mathrm{d}x_1 = 1/3 $$ $$ \Pr(\text{length} = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} \mathrm{d}x_4\, \mathrm{d}x_3\, \mathrm{d}x_2\, \mathrm{d}x_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ \Pr(\text{length} = n) $$

I $\Pr(\text{length} = n)$. I know the final answer is structured $$ \mathbb E(\text{length of a monotonically increasing sequence}) = \sum_{n=1}^{\infty}n\Pr(\text{length} = n) $$$$ \mathbb E(\text{length}) = \sum_{n=1}^{\infty}n\Pr(\text{length} = n) $$

Any ideas on how to answer this question?

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform $[0,1]$ distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ \Pr(\text{length} = 1) = \int_0^1 \int_0^{x_1} \mathrm{d}x_2\, \mathrm{d}x_1 = 1/2 $$ $$ \Pr(\text{length} = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} \mathrm{d}x_3 \, \mathrm{d}x_2 \, \mathrm{d}x_1 = 1/3 $$ $$ \Pr(\text{length} = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} \mathrm{d}x_4\, \mathrm{d}x_3\, \mathrm{d}x_2\, \mathrm{d}x_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ \Pr(\text{length} = n) $$

I know the final answer is structured $$ \mathbb E(\text{length of a monotonically increasing sequence}) = \sum_{n=1}^{\infty}n\Pr(\text{length} = n) $$

Any ideas on how to answer this question?

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform $[0,1]$ distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ \Pr(\text{length} = 1) = \int_0^1 \int_0^{x_1} \mathrm{d}x_2\, \mathrm{d}x_1 = 1/2 $$ $$ \Pr(\text{length} = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} \mathrm{d}x_3 \, \mathrm{d}x_2 \, \mathrm{d}x_1 = 1/3 $$ $$ \Pr(\text{length} = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} \mathrm{d}x_4\, \mathrm{d}x_3\, \mathrm{d}x_2\, \mathrm{d}x_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $\Pr(\text{length} = n)$. I know the final answer is structured $$ \mathbb E(\text{length}) = \sum_{n=1}^{\infty}n\Pr(\text{length} = n) $$

Any ideas on how to answer this question?

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform[0,1]uniform $[0,1]$ distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ prob(length = 1) = \int_0^1 \int_0^{x_1} dx_2 dx_1 = 1/2 $$$$ \Pr(\text{length} = 1) = \int_0^1 \int_0^{x_1} \mathrm{d}x_2\, \mathrm{d}x_1 = 1/2 $$ $$ prob(length = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} dx_3 dx_2 dx_1 = 1/3 $$$$ \Pr(\text{length} = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} \mathrm{d}x_3 \, \mathrm{d}x_2 \, \mathrm{d}x_1 = 1/3 $$ $$ prob(length = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} dx_4 dx_3 dx_2 dx_1 = 1/8 $$$$ \Pr(\text{length} = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} \mathrm{d}x_4\, \mathrm{d}x_3\, \mathrm{d}x_2\, \mathrm{d}x_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ prob(length = n) $$$$ \Pr(\text{length} = n) $$

I know the final answer is structured $$ E(length\ of\ a\ monotonically\ increasing\ sequence) = \sum_{n=1}^{\infty}n*prob(length = n) $$$$ \mathbb E(\text{length of a monotonically increasing sequence}) = \sum_{n=1}^{\infty}n\Pr(\text{length} = n) $$

Any ideas on how to answer this question?

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform[0,1] distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ prob(length = 1) = \int_0^1 \int_0^{x_1} dx_2 dx_1 = 1/2 $$ $$ prob(length = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} dx_3 dx_2 dx_1 = 1/3 $$ $$ prob(length = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} dx_4 dx_3 dx_2 dx_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ prob(length = n) $$

I know the final answer is structured $$ E(length\ of\ a\ monotonically\ increasing\ sequence) = \sum_{n=1}^{\infty}n*prob(length = n) $$

Any ideas on how to answer this question?

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform $[0,1]$ distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ \Pr(\text{length} = 1) = \int_0^1 \int_0^{x_1} \mathrm{d}x_2\, \mathrm{d}x_1 = 1/2 $$ $$ \Pr(\text{length} = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} \mathrm{d}x_3 \, \mathrm{d}x_2 \, \mathrm{d}x_1 = 1/3 $$ $$ \Pr(\text{length} = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} \mathrm{d}x_4\, \mathrm{d}x_3\, \mathrm{d}x_2\, \mathrm{d}x_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ \Pr(\text{length} = n) $$

I know the final answer is structured $$ \mathbb E(\text{length of a monotonically increasing sequence}) = \sum_{n=1}^{\infty}n\Pr(\text{length} = n) $$

Any ideas on how to answer this question?

Tweeted twitter.com/StackStats/status/1006490712710549504
Added source of question
Source Link
Ben
  • 132.9k
  • 7
  • 255
  • 588

SupposeThis is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform[0,1] distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ prob(length = 1) = \int_0^1 \int_0^{x_1} dx_2 dx_1 = 1/2 $$ $$ prob(length = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} dx_3 dx_2 dx_1 = 1/3 $$ $$ prob(length = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} dx_4 dx_3 dx_2 dx_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ prob(length = n) $$

I know the final answer is structured $$ E(length\ of\ a\ monotonically\ increasing\ sequence) = \sum_{n=1}^{\infty}n*prob(length = n) $$

Any ideas on how to answer this question?

Suppose we are drawing from a uniform[0,1] distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ prob(length = 1) = \int_0^1 \int_0^{x_1} dx_2 dx_1 = 1/2 $$ $$ prob(length = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} dx_3 dx_2 dx_1 = 1/3 $$ $$ prob(length = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} dx_4 dx_3 dx_2 dx_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ prob(length = n) $$

I know the final answer is structured $$ E(length\ of\ a\ monotonically\ increasing\ sequence) = \sum_{n=1}^{\infty}n*prob(length = n) $$

Any ideas on how to answer this question?

This is an interview question for a quantitative analyst position, reported here. Suppose we are drawing from a uniform[0,1] distribution and the draws are iid, what is the expected length of a monotonically increasing distribution? I.e., we stop drawing if the current draw is smaller than or equal to the previous draw.

I've gotten the first few: $$ prob(length = 1) = \int_0^1 \int_0^{x_1} dx_2 dx_1 = 1/2 $$ $$ prob(length = 2) = \int_0^1 \int_{x_1}^1 \int_0^{x_2} dx_3 dx_2 dx_1 = 1/3 $$ $$ prob(length = 3) = \int_0^1 \int_{x_1}^1 \int_{x_2}^1 \int_0^{x_3} dx_4 dx_3 dx_2 dx_1 = 1/8 $$

but I find calculating these nested integrals increasingly difficult and I'm not getting the "trick" to generalize to $$ prob(length = n) $$

I know the final answer is structured $$ E(length\ of\ a\ monotonically\ increasing\ sequence) = \sum_{n=1}^{\infty}n*prob(length = n) $$

Any ideas on how to answer this question?

Source Link
Amazonian
  • 1.6k
  • 1
  • 14
  • 23
Loading