simulating normal random variables

46
• Project: – Several options for bid: • Bid our signal • Develop several strategies • Develop stable bidding strategy Simulating Normal Random Variables

Upload: duc

Post on 24-Feb-2016

47 views

Category:

Documents


0 download

DESCRIPTION

Simulating Normal Random Variables. Project: Several options for bid: Bid our signal Develop several strategies Develop stable bidding strategy. Simulating Normal Random Variables. Project: Several options for bid: Bid our signal Develop several strategies - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Simulating Normal Random Variables

• Project:– Several options for bid:

• Bid our signal• Develop several strategies• Develop stable bidding strategy

Simulating Normal Random Variables

Page 2: Simulating Normal Random Variables

• Project:– Several options for bid:

• Bid our signal• Develop several strategies• Develop stable bidding strategy

Simulating Normal Random Variables

Page 3: Simulating Normal Random Variables

• Bidding the geologist’s signal is a bad idea

• Leads to an average loss of approx. $24.7 million

• What should be done?

Simulating Normal Random Variables

Page 4: Simulating Normal Random Variables

• Create a simulation of 5000 auctions including all companies (use NORMINV) on a new worksheet

• Find maximum error for each auction (represented by the variable C)

• Find average of 5000 maximum values: E(C)

Simulating Normal Random Variables

Page 5: Simulating Normal Random Variables

Simulating Normal Random Variables

• Project:Trial Company 1 Company 2 Company 3 Company 4

1 15.106 -32.153 17.654 -3.9842 13.408 4.354 3.549 -17.3703 6.726 4.637 -8.750 10.1384 5.927 25.166 -22.059 -10.6445 11.165 7.096 18.272 -9.4506 10.269 3.076 -8.259 6.8987 6.069 0.170 -2.491 -8.7188 18.182 -2.560 13.111 17.9769 8.134 -10.000 10.000 -0.84810 12.054 -21.252 -4.311 -4.27311 -15.400 -0.831 -12.692 -22.36912 11.067 -23.569 -3.357 2.172

Max E (C )38.324 25.01317.55032.54525.16627.71226.74843.89319.33516.91823.785

Page 6: Simulating Normal Random Variables

Simulating Normal Random Variables

NumberProven Value Max Difference Number

Proven Value Max

Difference

1 237.2 257.1 19.9 11 189.9 257.1 67.22 196.8 234.1 37.3 12 173.9 234.1 60.23 154.9 169.0 14.1 13 226.5 169.0 -57.54 262.6 293.7 31.1 14 269.6 293.7 24.15 229.4 258.8 29.4 15 234.7 258.8 24.16 192.4 224.5 32.1 16 209.4 224.5 15.17 209.1 242.9 33.8 17 290.5 242.9 -47.68 236.7 252.0 15.3 18 299.5 252.0 -47.59 245.0 271.7 26.7 19 206.2 271.7 65.510 259.2 283.5 24.3 20 272.8 283.5 10.7

Average amount overbid: $24.7 M

Page 7: Simulating Normal Random Variables

• The average of the 5000 maximum values is called the “Winner’s Curse”

• Defined as the average amount the winner of the auction would overbid by bidding their signal

Simulating Normal Random Variables

Page 8: Simulating Normal Random Variables

• “First Plan” for a reasonable profit is to subtract E(C) from the geologist’s signal

• This ensures that the winning company would make a fair and reasonable profit.

Simulating Normal Random Variables

Page 9: Simulating Normal Random Variables

• This plan is not ideal, since the goal of a company is to maximize their profit

• To find a better strategy, find the gap between 1st place company and 2nd place company

Simulating Normal Random Variables

Page 10: Simulating Normal Random Variables

• The monetary gap between 1st and 2nd is a wasted addition to the amount bid

• The 1st place company must only outbid the 2nd place company by $0.01

Simulating Normal Random Variables

Page 11: Simulating Normal Random Variables

• Find the value of the 2nd place company for each of the 5000 sample auctions (use LARGE function)

• Once the 2nd place values are found, find the difference between 1st and 2nd (represented by variable B)

Simulating Normal Random Variables

Page 12: Simulating Normal Random Variables

• For 5000 differences, find the average: E(B)

• The average difference between 1st and 2nd place is called the “Winner’s Blessing”

• Find 10 samples of E(C) and E(B) and average them

Simulating Normal Random Variables

Page 13: Simulating Normal Random Variables

Simulating Normal Random Variables

• Project:Max E (C ) 2nd Max Difference E (B )

17.313 24.913 14.55808 2.755 6.25425.637 12.27096 13.36631.872 27.60626 4.26631.046 18.76496 12.28128.494 22.42148 6.07236.358 16.58774 19.77026.495 18.64604 7.84933.418 22.35776 11.06037.173 27.18338 9.99018.004 17.277 0.72728.501 17.6801 10.82126.247 22.31015 3.93726.458 17.59928 8.85917.107 11.59985 5.508

Page 14: Simulating Normal Random Variables

• “Second Plan” ensures the winner of making a profit on average

• Average profit is equal to E(B)

• Strategy is not stable

Simulating Normal Random Variables

Page 15: Simulating Normal Random Variables

Simulating Normal Random Variables

• We left off at. . .Max E (C ) 2nd Max Difference E (B )

17.313 24.913 14.55808 2.755 6.25425.637 12.27096 13.36631.872 27.60626 4.26631.046 18.76496 12.28128.494 22.42148 6.07236.358 16.58774 19.77026.495 18.64604 7.84933.418 22.35776 11.06037.173 27.18338 9.99018.004 17.277 0.727

Page 16: Simulating Normal Random Variables

• “First Plan”– subtract E(C) from all signal errors– ensures that the winner makes the fair and

reasonable profit

• Average profit above the “fair and reasonable profit” is 0. We would like to increase this extra profit.

Simulating Normal Random Variables

Page 17: Simulating Normal Random Variables

• “Second Plan” – subtract E(C) and E(B) from the signal error– ensures the winner of making a profit (above the

“fair and reasonable” profit) on average

• Average profit is equal to E(B)

Simulating Normal Random Variables

Page 18: Simulating Normal Random Variables

• If all companies adjust their signals by the sum of the winner’s “curse” and “blessing”– every company has an equal chance to win auction

(geologists are all equally expert)– everyone’s profit upon winning is roughly $6.3M

(the winner’s blessing)– everyone’s expected value of the extra profit is

approximately 0.330

Simulating Normal Random Variables

Page 19: Simulating Normal Random Variables

• Suppose Company 1 decides to deviate from the “Second Plan” and adjust their signal differently:– If the adjustment < (E(C) + E(B))

• Company 1 could expect to win more often…• …but the extra profit will be less

– If the adjustment > (E(C) + E(B))• Company 1 could expect to win less often…• …but the extra profit will be more

Simulating Normal Random Variables

Page 20: Simulating Normal Random Variables

• We can easily see how the probability of winning and mean profit (if we win) will change in relation to the difference between our company’s adjustment vs. the other company’s adjustment to their signal, but how does that affect the expected value of our extra profit?– Need a simulation of many (5,000) auctions and track:

• who wins each auction• probability of our company winning• mean extra profit if Company 1 wins• expected value of extra profit

Simulating Normal Random Variables

Page 21: Simulating Normal Random Variables

Simulating Normal Random Variables

E (C ) 22.5 E (B ) 5.8 adjustment for Company 1 28.3

Auction Company 1 Company 2 Company 3 Company 4 Company 5 Company 6 Company 7 Company 8 Company 9 Company 101 -30.9439296 -24.5467473 -28.1076022 -23.5894657 -30.9946832 -11.4237499 -36.1184104 -18.0638898 -9.00832057 -27.59357152 -33.0583904 -23.8996965 -25.264624 -26.4604198 -37.421239 -29.7325996 -5.26636848 -16.0915571 -17.0361132 -46.03189283 -10.7769658 -19.570904 -37.4390333 -40.5166866 -75.4330635 -12.914606 -31.454096 -30.8123908 -31.8603618 -31.46317224 -39.1025267 -38.3979689 -22.0079193 -10.030062 -35.6927724 -31.8003718 -23.8096105 -33.1989731 -23.1695126 -34.60672065 -27.7687364 -27.8552012 -26.2783957 -39.3735257 -29.6392945 -33.5151085 -26.4629972 -30.7007022 -46.416988 -26.0154246 -10.0432074 -17.1706556 -18.546188 -20.8225124 -30.4195972 -24.146498 -6.24473378 -10.3073889 -35.8384541 -10.14267057 -14.0674892 -13.8124482 -38.5341458 -10.586873 -52.0076692 -20.3374815 -14.457002 -37.6379412 -28.4917221 -0.244399068 -52.4985543 -32.804554 -13.9392317 -15.1127153 -13.5841682 -37.4953138 -24.6459935 -29.873832 -26.2800357 -22.76353899 -13.3058323 -24.6695493 -34.6113535 -42.1756692 -22.748651 -20.3966767 -25.0333432 -29.0989713 -16.7729921 -25.2415649

10 -44.5356104 -37.0738456 -40.7560647 -13.236532 -25.5556518 -14.7165559 -19.7200105 -36.4189775 -30.3027584 -42.349329611 -52.6778141 -19.755197 -28.7594693 -38.0967318 -20.0681622 -21.0764695 -55.5874918 -21.8048645 -38.5963121 -5.12618638

Create 5000 simulated auctions as before. From every company’s error, subtract off E(C) and E(B)

Page 22: Simulating Normal Random Variables

• You will be eventually changing the adjustment (the amount subtracted from the signal) for Company 1, so it’s a good idea to cell-reference the adjustment. This way, when you want to change the adjustment, you only change one cell, and not an entire column.

Simulating Normal Random Variables

Page 23: Simulating Normal Random Variables

Simulating Normal Random Variables

• For every row, find:

Maximum Winning Company Comp. 1 Other-10.8670522 0 10.8671-9.72816752 0 9.72817-2.83864001 0 2.83864-1.65895408 1 1.65895-9.42984637 0 9.42985-5.9287996 0 5.9288

-11.6771085 1 11.677118.20807392 0 -18.2081-8.39008695 0 8.39009

Extra Profit

the maximum error—this tells you the error of the maximum bid (i.e. how much under/over the bid was fromthe proven value)=MAX(B4:S4)for example.

if the max was the error from Company 1, then Comp. 1 won the auction. I will denote this by a “1” in this column if they won, and a “0” if another company won:=IF(T4=B4,1,0) where T4 is the maximum, B4 is Comp. 1.

For the winning company(Comp. 1 or other) we need to find the extra profit. The profit is the opposite of the error.

=IF(U4=0,-T4,"")

=IF(U4=1,-T4,"")

Page 24: Simulating Normal Random Variables

• Then calculate:

Simulating Normal Random Variables

Comp. 10.05266.57190.3457

Probability of WinningMean extra profit if company wins

Expected value of adjustment

Average for all other companies0.05575.78390.3223

The number of 1’s out of the 5000 auctions:=COUNTIF(U4:U5003,"1")/5000

The number of 0’s out of the 5000 auctions, divided by the number of “other” companies:=COUNTIF(U4:U5003,“0")/(5000*18)

Average the extra winnings in the Company 1 column: =AVERAGE(V4:V5003)

Average the extra winnings in the “Other” column: =AVERAGE(V4:V5003)

Exp. Value of adjustment = P(winning) . (mean extra profit) + P(losing) . 0 =T5007*T5006 =U5007*U5006

Page 25: Simulating Normal Random Variables

• This set-up was meant as a check-up to make sure your spreadsheet is set up correctly. If Company 1 and the other companies all make the same adjustment, – probabilities of winning should be relatively equal– mean profit should be approximately E(B)– expected values should be roughly equalIf this is not true, FIX YOUR SPREADSHEET

NOW!

Simulating Normal Random Variables

Page 26: Simulating Normal Random Variables

• Now we’ll try maximizing the expected value of the extra profit (labeled on the sheet as “expected value of the adjustment”)

• Select a range of adjustment values for Company 1 only, starting around an adjustment of 13 to an adjustment of around 31, by 2. (This allows me to try several adjustments much smaller than the other companies’ adj. of E(C) + E(B), and a few greater than it). Adjust your values as you see fit.

Simulating Normal Random Variables

Page 27: Simulating Normal Random Variables

• Run the simulation several times to ensure accuracy

• Average the results from several simulations• Record the results for adjustment (13, 15, 17,

…, 31) and the expected values received

Simulating Normal Random Variables

Page 28: Simulating Normal Random Variables

• Plot the points on a graph (x-axis will be adjustment values, y-axis will be expected value)

• Fit a polynomial trend line of order 4 through the points

• Estimate the maximum point (want a reasonable x-value)

• This tells us how much we might want to subtract from estimate

Simulating Normal Random Variables

Page 29: Simulating Normal Random Variables

• For example:

Simulating Normal Random Variables

Adj. Expected Value13 0.24515 0.43417 0.50519 0.50721 0.51123 0.49125 0.42627 0.37329 0.32731 0.237

Page 30: Simulating Normal Random Variables

Simulating Normal Random Variables

Optimal Adjustment (Curse + Blessing)

y = -0.00002x4 + 0.00194x3 - 0.07220x2 + 1.18537x - 6.65077

-0.1

0

0.1

0.2

0.3

0.4

0.5

0.6

0 5 10 15 20 25 30 35

Adjustment ($ M)

Expe

cted

Val

ue

Page 31: Simulating Normal Random Variables

Simulating Normal Random Variables

• Use Differentiating.xls to maximize the expected value (set the derivative = 0):

Page 32: Simulating Normal Random Variables

Simulating Normal Random Variables

• The peak is around x = 18.2 with y = 0.49

This means that a company should subtract approximately $18.2 million from their signal and receive an average of $0.49 million profit per auction

Page 33: Simulating Normal Random Variables

Simulating Normal Random Variables

• The “Second Plan” is not stable– we found that is all other companies subtracted

$28.3M from their signals, it was in our best interest (gave us the greatest expected value of our extra profit) is we adjusted our signal by $18.2M.

– All other companies are finding the same thing, so if we all acted in this manner, everyone would adjust by $18.2M, which would leave a negative profit, since we’re adjusting by less than the winner’s curse

Page 34: Simulating Normal Random Variables

Simulating Normal Random Variables

• This makes the “First Plan” (subtracting off only the winner’s curse) seem more profitable to all those concerned. – Let’s then inspect what would be our most

profitable adjustment under this plan– Go through the same steps as last time, except now

try adjustments from 17 to 37 (if we subtract off any less than 17, we are forcing our company to have negative profit)

Page 35: Simulating Normal Random Variables

Simulating Normal Random Variables

• Summary of results thus far:– When all other companies subtracted off the curse

and blessing ($28.3M), it was most beneficial to Company 1 to only subtract off $18.2M.

– When all other companies subtracted off just the curse ($22.5M), it was in Company 1’s best interest to subtract off $28.6M.

Page 36: Simulating Normal Random Variables

Simulating Normal Random Variables

• We see competing tendencies here:

Second Plan First Plan

Page 37: Simulating Normal Random Variables

Simulating Normal Random Variables

• Stable Equlibrium– A stable bidding strategy means that any deviation

from the suggested bid would not be beneficial over a large number of trials

– Stated another way, if we found a stable bidding strategy (an adjustment in which all companies will make to their signals), then any company that deviated from this strategy/adjustment will actually decrease their expected value of extra profit.

Page 38: Simulating Normal Random Variables

Nash Equilibrium

• The optimal adjustment is called a “Nash Equilibrium” value

• “Nash Equilibrium” is named after a mathematician named John Nash

• The optimal situation for one person (company) may not be most beneficial to the whole group (all companies)

Page 39: Simulating Normal Random Variables

Simulating Normal Random Variables

• Update your course file, Auction Equilibrium.xls

• You will need 4 pieces of information to run this program:– # of companies – standard deviation– winner’s curse– winner’s blessing

Page 40: Simulating Normal Random Variables

Simulating Normal Random Variables

• Put these values in cells B10:E10

Number of Companies

Standard Deviation of

Errors Winner's Curse Winner's Blessing18 12.37 22.5 5.8

Page 41: Simulating Normal Random Variables

Simulating Normal Random Variables

• In cell E39, type the adjustment all other companies will make (initially this is curse + blessing)

• Run the macro Optimize so that a value for Company 1’s adjustment appears in the yellow box in cell D39

Page 42: Simulating Normal Random Variables

Simulating Normal Random Variables

• Average the values in cells D39 and E39

• Replace cell E39 value with the average that was just computed

• Press F9 to recompute values

Page 43: Simulating Normal Random Variables

Simulating Normal Random Variables

• Continue finding the average and replacing the E39 value until the D39 and E39 values are the same (our adjustment is equal to other company’s adjustment)

• The optimal adjustment is called a “Nash Equilibrium” value

• Take note of this value, then re-run the macro Optimize, and find a new equilibrium value

Page 44: Simulating Normal Random Variables

Simulating Normal Random Variables

• Get about 10 of these values and average them together. This will be your company’s adjustment to their signal.

*You may stop when the adjustment for Company 1 is within 3 decimal places of the other companies’ adjustment.

Page 45: Simulating Normal Random Variables

Simulating Normal Random Variables

• What does this mean for our Company 1?– If each company reduces its signal by

$24,385,000 then there would be no gain for any one company, if it deviated from this plan.

– Specifically, we will reduce our signal of $121,600,00 by $24,385,000 and submit a bid of $97,215,000

Page 46: Simulating Normal Random Variables

Simulating Normal Random Variables

• Going further:– What real world circumstances might make our auction model

unreliable? – What informative plots could you create with your data on the

probability of winning and the mean extra profit, if a company wins?

– Can you find a way to use trend lines and Solver to eliminate the trial and error use of Auction Equilibrium.xls?

– How can you show that the Nash equilibrium strategy is always safe, in the sense that it will have as high, or higher, an expected value of adjustment for Company 1 than for any other company?

– Look for ways to display your results effectively. – What else can you think of to explore?