[Big Data] Week 5 A (Advance)
Question 1
1 | 0 | 0 |
0 | 2 | 0 |
0 | 0 | 0 |
Your Answer | Score | Explanation | |
---|---|---|---|
There is one element with value 1. | Correct | 1.00 | |
There is one element with value -2. | |||
There are seven elements with value infinity. | |||
There is one element with value 0. | |||
Total | 1.00 / 1.00 |
Question 2
Here is a table of the bids, CTR's for positions 1, 2, and 3, and budget for each advertiser.
Advertiser | Bid | CTR1 | CTR2 | CTR3 | Budget |
---|---|---|---|---|---|
A | $.10 | .015 | .010 | .005 | $1 |
B | $.09 | .016 | .012 | .006 | $2 |
C | $.08 | .017 | .014 | .007 | $3 |
D | $.07 | .018 | .015 | .008 | $4 |
E | $.06 | .019 | .016 | .010 | $5 |
The publisher uses the following strategy to allocate the three ad slots:
- Any advertiser whose budget is spent is ignored in what follows.
- The first slot goes to the advertiser whose expected yield for the first slot (product of the bid and the CTR for the first slot) is the greatest. This advertiser is ignored in what follows.
- The second slot goes to the advertiser whose expected yield for the second slot (product of the bid and the CTR for the second slot) is the greatest. This advertiser is ignored in what follows.
- The third slot goes to the advertiser whose expected yield for the third slot (product of the bid and the CTR for the third slot) is the greatest.
The same three advertisers get the three ad positions until one of two things happens:
- An advertiser runs out of budget, or
- All 101 click-throughs have been obtained.
Either of these events ends one phase of the allocation. If a phase ends because an advertiser ran out of budget, then they are assumed to get all the clicks their budget buys. During the same phase, we calculate the number of click-throughs received by the other two advertisers by assuming that all three received click-throughs in proportion to their respective CTR's for their positions (round to the nearest integer). If click-throughs remain, the publisher reallocates all three slots and starts a new phase.
If the phase ends because all click-throughs have been allocated, assume that the three advertisers received click-throughs in proportion to their respective CTR's (again, rounding if necessary).
Your task is to simulate the allocation of slots and to determine how many click-throughs each of the five advertisers get.
Your Answer | Score | Explanation | |
---|---|---|---|
A gets 9 click-throughs. | |||
B gets 0 click-throughs. | |||
A gets 10 click-throughs. | Correct | 1.00 | |
D gets 18 click-throughs. | |||
Total | 1.00 / 1.00 |
Question 3
Suppose you are given the following points in two-dimensional Euclidean space: x = (0,0); y = (10,10), a = (1,6); b = (3,7); c = (4,3); d = (7,7), e = (8,2); f = (9,5). Obviously, x and y are furthest apart, so start with these. You must add five more points, which we shall refer to as the first, second,..., fifth points in what follows. The distance measure is the normal Euclidean L2-norm. Which of the following is true about the order in which the five points are added?
Your Answer | Score | Explanation | |
---|---|---|---|
c is added fifth | |||
e is added second | |||
c is added third | Correct | 1.00 | |
b is added fourth | |||
Total | 1.00 / 1.00 |