Trader development program Interview Questions
trader development program interview questions shared by candidates
Top Interview Questions
Trader at Morgan Stanley was asked...
If two cars are traveling in a two lap race on a track of any length, one going 60 mph and the other going 30mph, how fast will the slower car have to go to finish at the same car to finish at the same time? 31 AnswersIt's impossible, the faster car will be done the race by the time the slower car finishes the first lap. the answer to this question lies on how long the race track, we can solve its mph if we know how long the track we be. Well, this is interesting because there are no track details and makes for multiple answers through ambiguity and assumptions. i.e. One could assume that it is a circular track and that the two lanes are very wide and that one car is on the outermost furthest from the centre and the other is on the track very near the centre. The circumference of each track therefore could be such that the faster car would have to travel twice the distance that the slower car has to and therefore the two cars would arrive at exactly the same time. The is why cares on a racetrack must start at offsets to each other or have their times corrected in some other way! In real-life, this is highly unlikely however it does demonstrate my point. Show More Responses I agree with the first answer (by the Interview Candidate). When the slow car completes the first lap, the fast will complete the second lap. It does not matter how fast the slow car goes on the second lap; it cannot win... 90 mph Wouldn't the slow car just need to go 60mph? It doesn't say that the fast car is going double the slow cars speed only that the slow car is going 30 mph and the fast is going 60mph. The question is a trick. It says how fast will the slower car have to go to finish "AT THE SAME CAR" to finish at the same time? It can go any speed!! It will always finish at the same car (2nd) at the same time. The car isn't changing!!! I'm assuming that the question, as typed, was entered incorrectly and that it should be worded, "How fast will the slower car have to go to finish at the same time as the faster car?" The answer is 30mph. Because that's how fast the slower car is going. Nowhere in the question does it state that the cars are at the same point on the track. The slower car is currently halfway between the faster car and the end of the race. The two pieces of missing info are: 1. How long is the distance of the track and 2. The distance that each of the cars has already traveled on the track. If you have that info then you can figure it out. The two pieces of missing info are: 1. How long is the distance of the track and 2. The distance that each of the cars has already traveled on the track. If you have that info then you can figure it out. I totally agree with wildfire. Did you just say, "If two cars are traveling in a two lap race on a track of any length, one going 60 mph and the other going 30mph, how fast will the slower car have to go to finish at the same car to finish at the same time?" WTF? Are you having a stroke? Try to raise both hands above your head. OK, now smile for me. And would you please try to say a complete sentence? The way the question is currently worded, it does not indicate any of the following: 1. Whether the two cars started at the same place, at the same time (we can infer "same place, same time" because it is a race), 2. Whether either car has traveled any distance at all (if yes, then how far; if the slower car has traveled one lap, then the faster car has finished, and if no, then the answer is 60 mph), 3. What is the shape of the track (to Alanjai's point, a regular track requires offset starting positions, whereas a figure-8 track with fixed lanes would not), and finally 4. Why the question is worded so poorly ("to finish at the same car to finish at the same time" ... I mean, come on, that's practically not even literate). Show More Responses Speed a = Car A speed = 60 mph b = Car B speed = 30 mph t = Time Elapsed (in hours) d = Race Distance (in miles) ((t * a) = distance traveled by Car A) - d = Distance Remaining Car A = dra ((t * b) = distance traveled by Car B) - d = Distance Remaining Car B = drb x= mph that Car B has to drive for the remainder of the race (drb/dra)= y y * a = x or ((t*b)-d))/((t*a)-d)) = y y * a = x Example: t = 1 hour d = 240 miles ((1 * 60) - 240 = 180 [distance remaining Car A] ((1 * 30) - 240 = 210 [distance remaining Car B] 210/180 = 1.666666667 1.666666667 * 60mph = 70 mph, the speed that Car B has to drive for the remainder of the race. oh, yeah... in case you couldn't guess, I'm a Digg user. oh, yeah... in case you couldn't guess, I'm a Digg user. I agree with wildfire. This question is not grammatical and is unsolvable as written. The point seems to be that you should read the entire question (review the entire problem) before jumping in to solve the question that is immediately apparent. So, attention to detail is important at this company. Assuming the question was mistyped into this discussion, and they want to know how fast the second car would have to go to finish at the same time as the first car, then the answer is: infinitely fast. The question is better expressed as: A car is driving a sixty-mile path at thirty miles per hour. At the half-way point, the driver wants to speed up so his average speed at the end of the path is sixty miles an hour. How fast does he have to go? At the half-way point (30 miles) he has taken one hour for his drive. To average 60 MPH, he would have had one hour for the entire road. Therefore he has no time left, and must travel infinitely fast (for zero time) to average 60 MPH. It doesn't matter what answer you give, it is how you come to your conclusion that counts here. There is missing information on purpose because they want to see how you solve problems, not if you can solve problems quickly. The cars, the track the speed doesn't matter, it is the questions you ask and the information gathering that counts. Since there are only 2 cars in the race, the race is over and the instant one of the cars passes the finish line. One car finishes first, the other finishes second by default. The answer is that it doesn't matter how fast either of them are going, or how long the track is. They will always finish at the same time (not to be confused with "finishing with the same lap time"). I agree with SteveC. Once the either car finishes, the race is over. The question was clearly misworded. If not, most of you would have failed. The best answers here are from toolbelt_1 and dadag. Morgan Stanley needs people with exceptionally strong quantitative abilities and communication skills. The interviewer gives you a vaguely worded question to see (1) how you would gather the rest of the information and (2) how you would use it. In the course of a real workday your manager, client or other stakeholder will rarely provide a perfectly well-defined request for information. In the heat of the moment, important questions are worded quickly and vaguely, yet your performance will be judged based on how well you respond. One of your most crucial job skills is determining true requirements through timely and effective follow-up communication, intuition and experience. Show More Responses Both cars will finish at the same time if the track length was 0. This is typical of Morgan Stanley. Search a bit more and read about the lack of communication and clarity within this company--and when the result is as it should be (wasted time and effort) they blame the lower level worker as Al did above. If you ask for more information, you get more of the same -- confusion. Al might ALSO work for Morgan Stanley and makes a flimsy excuse for wasted time in having to track down pertinent information for the task. He makes no mention of the increasing frustration, lost productivity and the poor underlings that take the blame for poor managers. There are a few upper level managers who communicate and instruct their reports very well. It is a breathe of fresh air. They will tell the report the objective, quick background and the task and then you go do it. That simple. Others have more time for backstabbing, gossip and slimy character demonstrations than instructing their reports. No wonder they will never catch up to Goldman Sachs. They just don't get it. it's quite easy guys, just think: 30 mph is the current speed x is the race lenght 60 mph is the target average speed so theanswer is 30*(miles raced/ total race) + speed to achieve*(iles missing/tot. race) = 60 speed = i know that yu can dothis.....;) I'm pretty sure this is how the question is supposed to be worded which makes Mike's response correct. If two cars are traveling in a two lap race on any length track, one going 60mph for the entire race and one going 30mph to begin the race, how fast must the slower car travel for the rest of the race once the faster car finishes its first lap to finish at the same time as the faster car? If this is the case then we can do the following. distance = rate X time let d = the length of the track. After the fast car completes one lap the slow car will have completed one half lap, or .5d So the fast car has d left to go and the slow car has 1.5d left to go. since distance = rate x time, and the fast car is going at 60mph, we have d = 60t where t is time. For the slow car, if we let x be the rate it will go (so what we're ultimately trying to solve for, we have 1.5d = xt. now substituting d = 60t in we have 1.5 x (60t) = xt Since the track has some distance, t cannot be zero so we can divide t out leaving 1.5 x 60 = x = 90mph. Hence the slow car would have to travel 90mph the second lap to finish at the same time as the fast car. Make it simple, it depend on the fast car, if fast car got no problem( like break down , flat tires...), it hard to pass. The slow car just got to wait, time and opportunity is the key. Car A - 30mph Car B - 60mph One Lap - X miles Car A will have to decide whether it wants to catch up before completing the first lap. Otherwise it's over. We have two missing variables. We can't solve it. The speed will be calculated based on car's A location. Car A has to accelerate at any point prior reaching X. For instance, at 1/2X miles Car A will have to travel 90mph to finish at the same as time as Car B. But at 3/4X it will have to go faster. So the closer it gets to reaching X, the faster it will have to drive. Let's say the track is 60 miles long. Car 1 has completed a lap of 60 miles after one hour, and car 2 has traveled 30 miles. For the second lap (which is one hour for Car 1 to finish), car 2 must travel 90 mph. This works with any distance; this one is the easiest to visualize. One or more comments have been removed. |
Trader at Jane Street was asked...
What is the sum of the digits of all the numbers from 1 to 1000000? This is different from the sum of the numbers. For instance the sum of the numbers from 1 to 10 is 55 whereas the sum of the digits is 46. 17 AnswersThe main idea is that if you write all the numbers from 0 to 999999 down as six digit numbers (possibly prepending zeros) then all digits appear the same number of times. So, its digit appears exactly 6 x 1000000/10 = 600000 times. so the result is 600000x 45 +1 (+1 for the number 1000000) Maybe I'm reading it wrong, but isn't the sum of the digits of 1-10 just 11? 1 digit for 1-9, 2 digits for 10-99? So it's 9+90*2+900*3+9000*4+90000*5+900000+6 no, I think the easy way to solve it in your head is to remember that when adding all digits 1 to 100, you have 50 pairs: 1+100, 2+99, etc. Each pair is 101, times 50 is 5050. 1 to 1000 would be 500500 so 1 to 1,000,000 would be 500,000,500,000 Pretty cool, huh? Show More Responses scott, dude you should add digits not the numbers, so 99+2 = 18+2 =20. not 101 Scott's answer from May 24 is the correct way to think about it if summing the numbers. The answer is 27,000,001 - if you do it programatically the operation is a simple map reduce - simply map a digit sum function across the list of values [1, 1000000] and then reduce an addition operator across the result. Python Proof: >>> sum(map(lambda n: sum(map(int, str(n))), xrange(1, 1000001))) 27000001 Each digit will appear 1+10+100+1000+10000+100000 times. so the answer is 111,111*45+1=4444440+555555+1=4999996 nb is right. Another way you can think about it easily is if you want the digits from 1 to 1,000,000 then each digit should appear 1/10 * 1,000,000 times. So 100,000 x 6 (for each place value) x 45 (the sum from 1 to 9) + 1 (for the 1 million) 27,000,001 I think John Doe is right. 27,000,001 is what I got. Think of each number as a 6 digit number. The average number each digit could be from 000,000 to 999,999 is (9+0)/2=4.5. Since the average of each number is 4.5 and there are 6 digits the average sum of the digits for a 6 digit number should be 4.5*6=27. There are 1 million numbers from 000,000 to 999,999 so the sum of the digits from 000,000 to 999,999 is 27,000,000. Subtract the digits of 000,000 which is just 0 and add the digits of 1,000,000 which is just 1 to get 27,000,001. For arbitrary a=1,...,9 accounts the how many a's appear in the six digit number. 1 * C(6,1)*9^5 + 2* C(6,2)*9^4 + 3 * C(6,3) * 9^3 + 4*C(6,4)*9^2 + 5*C(6,5)*9 +6*C(6,6) = 600000. 600000*(1+2+3+...+9)= 27000000. Then add the 1 from 1000000. The ans is 27000000. 2.7 x 10^7 + 1 general rule: to 10^n answer is 10^n * n * 4.5+1 here n=6, result is 27 000 001 Show More Responses 1-1000000 same as sum of digits in 0 - 999999 then plus 1, treat 0 - 999999 as a 6 digit random number, then the digit of sum is sum of digit for each number: 1000000*(4.5*6)=27000000, so answer is 27000001. John doe is right each batch of 1-9 appears 10^(# before line times) i.e. 10000|0, 1-9 appear in the ones place 100,000 times, adding 100,000*45 to your sum. Thus we can write the sum 111,111 (1 for each place) *45 +1 Don't mind the above answer. I read the question wrong. 21085156 |
Flip a coin until either HHT or HTT appears. Is one more likely to appear first? If so, which one and with what probability? 14 AnswersLet A be the event that HTT comes before HHT. P{A} = P{A|H}P{H} + P{A|T}P{T} = .5P{A|H} + .5P{A|T} P{A|T} = P{A} therefore, P{A|H} = P{A|T} P{A|H} = P{A|HH}P{H} + P{A|HT}P{T} = (0)(.5) + P{A|HT}(.5) Therefore, 2P{A|H} = P{A|HT} P{A|HT} = P{A|HTT}P{T} + P{A|HTH}P{H} = (1)(.5) + P{A|H}(.5) 2P{A|H} = .5 + P{A|H}(.5) P{A|H} = 1/3 and P{A|H} = P{A}, therefore, P{A} = 1/3 So, HHT is more likely to appear first and it appears first 2/3 of the time. P{A|H} = P{A|HH}P{H} + P{A|HT}P{T} = (0)(.5) + P{A|HT}(.5) Need help - - why is P{A|HH} = 0 ? P(A|HH) = 0 because after a sequence of consecutive heads, you can no longer achieve HTT. The moment you get a tail, you will have the sequence HHT. This the reason HHT is more likely to occur first than HTT. Show More Responses P(A|HH) = 0 because after a sequence of consecutive heads, you can no longer achieve HTT. The moment you get a tail, you will have the sequence HHT. This the reason HHT is more likely to occur first than HTT. HHT is more likely to appear first than HTT. The probability of HHT appearing first is 2/3 and thus the probability of HTT appearing first is 1/3. Indeed, both sequences need H first. Once H appeared, probability of HHT is 1/2 (b/c all you need is one H), and probability of HTT is 1/4 (b/c you need TT). Thus HHT is twice is likely to appear first. So, if the probability that HTT appears first is x, then the probability that HHT appears first is 2x. Since these are disjoint and together exhaust the whole probability space, x+2x=1. Therefore x=1/3. You guys seem to be mixing order being relevant and order being irrelevant. If order is relevant (meaning HHT is not the same as HTH) then this has a 1/8 of occuring in the first 3 tosses. Also HTT has a 1/8 chance of occurring in the first 3 tosses, making them equally likely. Now, if order is not relevant. (so HHT and THH are the same), then this has a (3 choose 2) * (1/8) probability of happening in the first 3 tosses. The same goes for HTT (which would be the same as THT etc and others) so this has a (3 choose 2) * 1/8 probability of happening in the first 3 tosses as well. Either way they come out to being equally likely, please comment on my mistake if I am doing something wrong. Ending up with HHT more likely (with probabilty 2/3). HHT is more likely (2/3) probability. People with wrong answers: Did you not Monte Carlo this? It takes 5 minutes to write a program, and you can then easily see that 2/3 is correct empirically. I don't get it. Shouldn't P{A|HH} = P{A} in the same sense that P{A|HTH} = P{A} from both HH and HTH we have get the first H from HTT and so it should be P{A|HH} = P{A|HTH} = P{A} Am i wrong? sorry, i meant: I don't get it. Shouldn't P{A|HH} = P{A|H} in the same sense that P{A|HTH} = P{A|H} from both HH and HTH we have get the first H from HTT and so it should be P{A|HH} = P{A|HTH} = P{A|H} Am i wrong? Above link is the best solution I have seen for this problem http://dicedcoins.wordpress.com/2012/07/19/flip-hhh-before-htt/ Apologies, Below* Here's my answer. Let x = probability of winning after no heads (or a tail). y=probability after just one heads. z=probability after two heads. w=probability after HT. Thus x=(1/2)x+(1/2)y, y=(1/2)z+(1/2)w, z=1/2 + (1/2)z, w=(1/2)y. Therefore, z=1, y=2/3, w=1/3, x=2/3. We wanted x at the beginning, so it is 2/3 that HHT comes up first. Show More Responses Think of HHT as H(HT) and HTT as (HT)T For every occurrence of (HT) in a sequence of flips, there is a 1/2 chance an H occurred before the (HT) and a 1/2*1/2 chance a T occurred after. Thus, HHT is 2x more likely than HTT. HHT is first 2/3 of the time. |
Junior Trader at Jane Street was asked...
During the third interview : imagine an infinite chess board. If the horse from 1 case, in how many cases can he possibly ends after 10 moves. You actually don't have to give a number but a 95% confidence interval. pen and paper allowed 13 Answers751 Don't really understand the question... the horse from 1 case? and whats the intuition of the answer given? I think it's much more than 751. I found 7938126 cases, and there are more. Show More Responses The answer is actually 741. I probably wouldn't have thought of this super quickly during an interview, but just think about it this way: in 10 moves, the most the knight can move to the right (or to the left) is 20 spaces. So you are confined to a 41-by-41 box of spaces. Now just label each column (or row if you'd prefer, as this is obviously symmetric) 0-40 (so the knight begins on the center square of column 20). Then just ask yourself....how many spaces in column 0 can the knight land on in 10 moves? How about column 1? And so on. If you think of it this way the answer will become clear. To "candidate" I suspect you are solving the wrong problem. If you're looking at possible paths that a knight might take then maybe I'd believe your answer. But for spaces to land on this is definitely wrong. By the way, since this is only a confidence interval, my friend had a very good way of estimating this. Each knight moves along the diagonal of a triangle with legs 1 and 2; in other words, the knight moves sqrt{5} away from the center with each move. So the spaces that the knight could land on would be roughly inside a circle of radius 10sqrt{5}, which has area about 1500. But the knight can only land on half of those squares because in an even number of moves he must land on a square that's the same color as the square he started on. So your estimate would be 750, so take some reasonable interval around 750. «wlfgngpck» I did it the way you said by giving half the area of the circus of radius 10*sqrt(5) so 750 is not bad for a true answer of 741 (or 751 I don't remember) Solution visualised : http://twitpic.com/9jegtb Formula (no idea why, but it works) x=amount of steps (square(1+4*x) + 1) / 2 - square(4*x) / 16 Range as square : ( 2x + 1 + 2x ) * (2x + 1 + 2x) = 41*41 = 1681 Add centerpoint : + 1 / 1682 Only half of the fields will be posible : / 2 = 841 Corners are not reachable, 1/8th of each direction without center lines : ( 2x*2x / 2 ) /8 = 100 Result 841-100=741 741 is too big, if the knight is at (0;0) can get to (20;10) in 10 moves but not to (19;9) in 10 moves...try it out with 2 moves...it's not 37 cases but only 33 because he can't get to (2;2) (-2;-2) (-2;2) (2;-2) in 2 moves... sorry I meant to write that he can't reach (14;14), of course he can reach (19;9) so my answer would be 741-4=737 cause he cant reach (14;14), (14;-14)and (-14,14) (-14;-14) no my bad, the can be reached 741 is correct, it's just in the case 2 that you have to substract these diagonals... he can get to 20 spaces in all 4 directions. thats 41x41 = 1681. he cannot reach the corners which are composed of 10 + 9 + 8...+2+1 boxes = 55. so four corners are 220 boxes. that leaves him at 1461. subtract one for the one he is on currently -> 1460 and divide by 2 bc he cant land on the opposite color from where he started. answer is 731 7n^2 + 4n + 1 for any n>1 |
Quantitative Trader at Jane Street was asked...
N points lie on a circle. You draw lines connecting all the points to each other. These lines divide up the circle into a number of regions. How many regions is this? Assume that the points are scattered in such a way as to give the maximum number of regions for that N. 14 Answersn choose 4 + n choose 2 + 1 I don't think the above answer is right.What happens if N is less than 4? Even if N is at least four, it still doesn't work For example, take the case when 4 lines are drawn, you can make 11 regions, but Dimitar's formula gives 4c4+4c2+1=8 The way you do it, is you start out with 1 region with 0 lines. Then you draw 1 line to get 2 regions. When the maximum number of regions is created, each new line will cross every previous line and will create a new region each time it crosses line. It also creates a new region just by being created. So the 2nd line makes 2 new regions, the third line makes 3 new regions, the fourth line makes 4 new regions etc. So the answer is the sum of the first N natural numbers +1. In general this is the formula N(N+1)/2+1 Hi, I also get Dimtar's formula, you may use the recursion method to do it, which takes some time. Is there any easy way to get this one? Btw, when there are 4 dots on a circle, I think it shoud still give 8 regions. I think 11 is the answer to another problem. If you make n cuts on a circle, the max shares you can create. Show More Responses I don't think that is correct. I can't see a way that, while obeying these rules, you can have 11 sections for 4 points. Perhaps the formula 2^(N-1)? i got 2^(N-1) as well 1 dot - 1 region 2 dots - 2 regions 3 dots - 4 regions 4 dots - 8 regions 2^(N-1), N greater than or equal to 1 The unanswered question (and the reasoning behind the combinations thing) is whether two adjacent regions may have the line that divides them ignored for counting up a them both together as a new region. Dimitar's way assumes you may erase a line and Mike's way does not. However, for Dimitar's way, I think the combinations do not just stop at the nC4 + nC2, but really keep going up to n (and Dimitar just stopped at ~6 when he was testing the base cases). Mike's way assumes each region cannot be made up of sub regions, which I feel is the more correct answer, since it gives a scalable answer without summation/set notation, though you should ask the interviewer which he'd prefer. Let's take the 3 dot example: Mike's thinking: =There's the middle triangle and the 3 arc regions, so 4 Dimitar's thinking: =Mike's + triangle + 1,2,3 regions =4 + 3C1 + 3C2 + 3C3 =4 + 3 + 3 + 1 = 11 which really seems to break down into: 2^n-1+summation(nC1->n). I dislike Dimitar's way, because it invariably includes the entire circle as a "region" that has been created, which seems to go against the spirit of the problem. Err, 2*n-1+summation(n-1C->n-1) This is a famous example in mathematics; it's often used as a warning against naive generalization. Here are the answers for the first six natural numbers: (# points) : (# regions) 1 : 1 2 : 2 3 : 4 4 : 8 5 : 16 6 : 31 Yes, 31. You can see, e.g., Conway and Guy's "The Book of Numbers" for an account of this. it is "Moser's circle problem" 1+nC2+nC4 srsly? draw 4 lines yourself and you can easily find its 11 The last answer should be 1+(n-1)*n*(n^2-5n+18)/24. At first I thought it's 2^(n-1), because for the first 5 terms it's really the same, but when n=6, it should be 31. Solution: I use recursion. Assume the number of regions for n points is f(n). If we add a new point, we can count how many new regions are created. 1. outside the polygon of original n points, create n new regions. 2. inside the polygon, once the line between the new point and original point cuts the original line, there will be one more region. Label the original points clockwise as 1 2 3 ... n, and the line of the new point with point i will cut (i-1)(n-i) lines. This number is the number of points before the points i times the number of points after the point i. Then how to calculate the sum of (i-1)*(n-i), i.e., sum(k)*n + sum(k*(k+1)). The first term is easy. The second term in fact is a question in the book Heard On the Street. First we guess it's k(k+1)(k+2)/3, and then use mathematical induction to prove it in an easy way. After all, I get f(n+1) = f(n) + n + n*(n-1)*(n-2)/6. And then use recursion and formula for sum(k^3), sum(k^2), sum(k) to get the last answer. Show More Responses mingda is correct One or more comments have been removed. |
Assistant Trader at Jane Street was asked...
what is the expected number of flips of a coin to simulate a 6 sided die. 12 AnswersE(x) = .75*3 + .25*E(X+1). From there it simplifies to E(X) = 10/3 E(x)=3+0.25E(x), so E(x)=4. Hi Can you please explain this in detail ? I dont seem to follow how did u guys do this ? Thanks Show More Responses 11/3. E(x) = .75*3 + .25*E(X+2). The probability of a six sided die is 1/6, while the probability of a coin flip is 1/2, thus, in order to simulate a six sided die the coin must have the same probability, so 1/2 has to become 1/6. From there, you can write the equation1/2^x=1/6, or to make it simpler, 2^x=6. Without using guess and check, you can rewrite the equation to log base 2 6=x (or log2(6)=x), and from there solve: log(6)/log(2), which comes out to 2.58496, or 2.585 (2^2.585=6.000). So, to answer your question, the coin would have to flip 2.585 in order to simulate the flip of a coin. x=2.585 3 flips. The coin gives 1 out of 2 possibilities per flip. 3 flips will give you 6 possible combinations like the 6 sided die (1 heads, 2 tails, 2 heads, 1 tail, etc.). Wsc is on the right track. You have to flip 3 coins at least, but the probability of a null result is 1/4 every time, so you would need to flip 3 more coins. This is a geometric sequence 3+3*1/4+3*(1/4)^2 etc, so the answer is 3/(1-1/4) = 4 expected coin flips. 4 The correct answer is 11/3, as written by "Someone" on July 9, 2011. Both William's and P's answers are close, but not quite accurate, because they assumed that it takes 3 flips to discard a null result. Instead, it only takes two flips to discard a null result (HHT or HHH) since we don't have to flip the third coin if the first two are already heads (HH). That's why the answer is slightly less than 4. Indeed, note that we have a 3/4 chance of being able to get one of the 6 good results (HTH, HTT, THH, THT, TTH, TTT) that yields a random number from 1 to 6, and a 1/4 chance of having to reflip the coins (HHH or HHT). The key is that for those two results to be discarded, we only needed to flip 2 coins to determine that! There's no need to flip a 3rd coin if the first two were already HH (it'd be a waste of a throw!). Hence, 3/4 of the time, the number of flips required is three and 1/4 of the time, the expected number of flips required is 2+E[X]: E[X] = 3/4*3 + 1/4*(2+E[X]). Alternatively, we can flip the coin twice, and then note that 3/4 of the time (for HT,TH,or TT), we only flip one more coin, and 1/4 of the time (for HH), we have to re-flip, so E[X] = 2 + (3/4*1+1/4*E[X]) Either way, we have E[X] = 11/4 + 1/4*E[X], which yields the desired result, E(x) = 11/3. 4.5 It's 11/3. Say you want HHH and TTT to be your rolls to start over so that the last roll is 50-50 to be H or T and you'll only have to roll twice more since there will be no bias. Roll your first roll, it's H or T. After that there is a probability of 1/4 that you'll have to 2 times again. So there a 3/4 chance you won't have to roll again. So using the equation 1/p to find EN we get 1+2(4/3)=1+8/3=11/3 You can't flip a die because you only have a coin. DUH It is easier to look at it as almost 3 flips set up as a binary number. It would be perfect if you were representing an 8 sided die, but since you want only 6 possible results and 2 flips is too little and 3 flips is too big you have to adjust your fomula as such: 0=tails 1=heads 000 = Null this means you scratch these results and flip again three more times. 001 = 1 010 = 2 011 = 3 100 =4 101 = 5 110 = 6 111 = is another Null result Of course the Nulls can be made to be anything as are the numbers it is all relative. This give you a 1 in 6 chance everytime. |
There is a 91% chance of seeing a shooting star in the next hour, what is the probability of seeing a shooting star in the next half hour? 12 Answers70% How could this be the answer? surely it is 40.5%; half of the 91% probability? sorry I meant 45.5% Show More Responses probability shooting star in half hour = x probability of NOT seeing shooting star in 1 hour = (1-x)^2 probability of seeing shooting star in 1 hour = 1 - (1-x)^2 so we solve 1 - (1-x)^2 = 0.91 for x According to the question, suppose we have a random variable X that is the time when we see a shooting star, and let F(x) be the CDF of X. Hence, F(now+1h)-F(now)=0.91. And this is unfortunately the only thing we know about F(x). In other words, any valid F(x) satisfying such requirement could be the CDF of X. Therefore, we have no idea of the value of F(now+0.5h)-F(now) because F(now+0.5) could be any value between F(now) and F(now)+0,91. Answer: unknown result depending on the distribution. The second answer is incorrect. Take an extreme case as an example, if the probability of seeing a shooting star in 1 hour is 1, then the root of the function would be 1, which means that the probability of seeing a shooting star in the first 30 minutes is 1. An interesting question followed by that would be: what about in the first 15 (second 15) mins? According to this method, we can again conclude that the probability of having a shooting star in the first 15mins is still 1. And this can go on for ever, and result in the conclusion that at any time interval, P(shooting_Star) would be 1 which is obviously mistaken. let p= probability to see the star in half hour, (1-p)=won't see, (1-p)^2=can't see a star in an hour=1-0.91, solve we have p=0.7 The answer should be 0.7 but most of the explanations here make no sense. It is reasonable to assume a exponential distribution here and solve the probability. Probability is 30%. The arrival of star follows a Poisson process. Seeing K arrivals in time T is P = (lambda*T)^K * exp(-lambda*T)/K!. Now we know there has been no arrival in 1 hour, T = 1, K = 0. P = exp(-lambda) = 1-0.91 = 0.09. Now T = 0.5 (half an hour), P = exp(-lambda*1/2) = sqrt(0.09) = 0.3. The probability of seeing a star is 1-0.3 = 0.7, or 70%. I would argue for the 91/2% = 45.5% chance of seeing the star. The wording of the problem implies this is not a poisson process. Rather, I would interpret as the weather channel telling residents in an area that there is a 91% chance of seeing the shooting star between 7pm and 8pm (this is an unusual occurrence). Hence, with 9% chance you can't see a star in the next half hour. Then, in the 91% of the time where there is a shooting star in the next hour, one could make the reasonable assumption that the time it comes is uniformly distributed in the hour. So, 45.5%. Like, think about it in the real world. It is kind of unreasonable to model seeing shooting stars as a Poisson process with parameter .91 stars per hour. P(no star in an hr) = 1 - 0.91 = 0.09 P(no star in half an hour)^2 = 0.09 P(no star in half an hour) = 0.3 P(star in half an hour) =1 - 0.3 = 0.7 = 70% |
Trader at Jane Street was asked...
Let's play a game - I give you a 12 sided die and will pay you whatever the die lands on. If you are unhappy with the roll, you can choose to roll another two 6-sided dice and I wil pay you the sum of the two dice. How much are you willing to pay to play this game. 11 Answers1/2 expected value of rolling one die + 1/2 expected value of rolling two dice = $8.25 12 sided die: Expected Val 13/2=6.5 2 6-sided die: (2*1+3*2+4*3+5*4+6*5+7*6+8*7+9*4+10*3+11*2+12*1)*1/6*1/6=268/36=77/9 First time rolling side 12, will stop to roll the 2 6-side one if the number is >=9; If the number is <=8, then roll the second dies. (9+10+11+12)/12+(8/12)*77/9=9.2 @Christine your approach is right, the only thing is that if you have 2 6-sided die then the prob of outcome of 8 is 5 ((2,6), (6,2), (3,5), (5,3) and (4,4)). Thus you will get (2*1+3*2+4*3+5*4+6*5+7*6+8*5+9*4+10*3+11*2+12*1)*1/6*1/6 = (14*(1+2+3+4+5) +7*6) /36=14*18/36=7. Overall we get 7*7/12 + (8+9+10+11+12)/12=(49+50)/12=99/12=8.25 Show More Responses Suppose your strategy is to to be "happy" if the first roll is 7 or higher and otherwise go on to the second round. The expected value is: 1/2 * [(7 + 8 + 9 + 10 + 11 + 12) / 6] + 1/2 * [(1 + 2 + 3 + 4 + 5 + 6) / 6 + 3.5] = 8.25. E(rolling 6 dice twice ) = 2*E(6 dice one) = 2*(1+6)/2 = 7 So I reroll only if 12 dice gave me 6 or less. So with this strategy Let X payoff then E(X) = p(stick with 12)*E(X|sitck with 12 die) + p(reroll)*E(X|reroll) = 1/2 * (7+12)/2 + 1/2 * 7 = 4.75 + 3.5 = 8.25 isn't answer is obvious? if roll less or equal than 6, roll again; otherwise accept it so expected value is 1/2*6.5 (if roll again)+1/2*9.5 (9.5 is the expected value of 7, 8, 9, 10, 11, 12) =16/2=8 The answer is .5*9.5+.5*7=4.75+3.5=8.25. the way to get it is you roll again if you get less than 7 on the first roll. None of these answers are correct It says that if you roll the second, then whatever comes up will be your payment Strategy: Roll the 2 D6 in the case where you see a number on the D12 that is less than 7 because E(2*D6) = 7. This happens half the time so it will be .5 * E(D12) + .5 * E(2*D6) = 6.75 That is wrong. The expected value of the second roll is 7. So I would choose to roll the second if I get less than 7 in the first die. The expected value of this strategy is 8.25. The expected value of the second roll is 8.5. I would choose to roll the second pair if the first die lands less than or equal to 8. The expected value of this strategy is 8.5 *2/3 + 9/12 +10/12+11/12 +12/12. This is 9.1667. One or more comments have been removed. |
Trader Assistant at DRW was asked...
What is the expected value of rolling two dice? 9 Answers7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 Show More Responses The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 The answer is 7 because the expected value of rolling a single dice is 3.5 ((1/6 * 1)+(1/6*2) + (1/6*3) + (1/6*4) + (1/6*5) + (1/6*6)), so for two dice just multiply 3.5 * 2 = 7 |
Assistant Trader at Jane Street was asked...
Toss 4 coins - probability of more than 2 heads - expected winnings if $1 for each heads - expected winnings if can re-toss 1 coin if chosen 1 20 sided die - player A and B both choose a number. Whoever's number closest to value of the die wins the amount on the die. - optimal strategy? do you want to go first? - what is the expected winnings? 10 Answers1) (a) 3/8 (b) $1.875 2) Is it a fair die? There might be slight weight distribution error due to markings of dots. If it's a fair die then I would stay close to the expectation (10.5) or else I would chose something on the either side of the die based on the way it has been designed. Doesn't matter who goes first. Expectation = 10.5 ::the answer above is not totally right 5/16 for more than 2 heads. expected value 2 if re flip allowed, get 2+15/16=47/16 Show More Responses I think the reflip for the above isn't quite right. I think it's 2 + 15/16 * 1/2, since you have to account for what the reflipped coin may yield, not just the likelihood of having one tail. I'd pick 14 for the dice question, the sum of the bottom half needs to equal the sum of the top half. The sum of 1:14 = 105, the sum of 15:20 = 105. You should choose to go first, depending on your risk aversion you should either choose 15 or 14 Odds of more than 2 heads: 5/16. Expected value is $2 with no re-flips. If allowed 1 re-flip, this adds $0.50 of EV for 15/16 of the situations (you don't added value if you got 4 heads the first time), so EV = $2 + 15/32 = $2.46875. For the dice question, EV is the same ($5.25) if you choose either 14 or 15, therefore, I would allow my opponent to choose first to give myself the opportunity to take advantage if he/she makes a poor choice. If he/she doesn't choose 14 or 15, I can choose the number that is 1 away from their choice on the side closest to 14.5 and I will have an EV greater than $5.25 due to their sub-optimal choice. Expected value is not the same for range 1:14 it is 14/20*105=73.5 and for 15:20 it is 6/20*105=31,5. Sums are equal but you will be winning a lot more if you chose 14 and your opponent chooses 15. Wrong calculation in above answer, Rance is right. One or more comments have been removed. |
See Interview Questions for Similar Jobs
- Analyst
- Associate
- Junior Trader
- Software Engineer
- Quantitative Analyst
- Intern
- Financial Analyst
- Investment Banking Analyst
- Assistant Trader
- Vice President
- Business Analyst
- Consultant
- Software Developer
- Quantitative Researcher
- Quantitative Trader
- Director
- Trading Analyst
- Quantitative Research Analyst
- Research Analyst