|
|
楼主

楼主 |
发表于 2009-9-11 08:07:10
|
只看该作者
求救! 哪位高人能写出这个题的SAS code!!!!!!!
In one of the Louis Vuitton Cup challenger series, there were 9 competing syndicates. Let‟s call then Boats 1 to 9. Suppose that we rank the boats with a score from 1 to 9, so that Boat 1 (the slowest) has value 1, Boat 2 (the second slowest) has values 2, up to Boat 9 (the fastest) having value 9. Then suppose when Boats i and j compete, that Boat i will win with probability i/(i + j), and Boat j will win with probability j/(i + j), and there are no draws.
There are two rounds. In Round 1, suppose a win means 1 point and a loss means no points. In Round 2, suppose a win means 2 points and a loss no points. Then whatever boat having the highest cumulative points by the end of Round 2 will be the challenger for the America‟s cup, i.e., sail against the defender (Team New Zealand). In Round 1, every possible combination of pairwise boat race will be staged. Similarly, for Round 2. Thus, there will be 72 boat races in total; each boat will race 16 times.
We want to estimate the probability that Boat 9 outrightly wins, and also the probability that Boat 9 draws, the Louis Vuitton Cup. With these, we want an associated 95% confidence interval.
Write a SAS program to simulate the above description. Run your simulation 10000 times. Please make sure you heed the following instructions.
(i) Print the output from 10000 simulations. If your log file is „big‟, then only print the log file coming from 3 simulations.
(ii) You should clearly stat the values of your two estimates. Your print out should be well labelled and reasonably understandable. You can calculate your confidence intervals by hand.
(iii) By an “outright” win, after 72 races, it might be that two or more boats each have the same number of points (i.e., the boats are first equal). Then this is a draw, and not an outright win. An outright win will occur when the number of points of one of the boats is strictly greater than all the other boats. |
|