% Data from BSnet.XLS, from the textbook exercise, p. 891, #2 % The input in X represent data: stpr, expr, r, duration, sigma. % The output is the price. X=[56 50 0.08 0.25 0.35 60 52 0.1 0.5 0.4 64 48 0.09 0.25 0.3 68 46 0.11 0.75 0.2 72 44 0.1 0.25 0.1 65 45 0.11 0.5 0.15 48 52 0.12 0.75 0.18 32 49 0.13 0.5 0.16 40 43 0.12 0.75 0.14 26 38 0.11 0.25 0.12 34 35 0.1 0.5 0.11 28 27 0.09 0.75 0.09 19 38 0.08 0.5 0.07 37 44 0.07 0.75 0.12 45 39 0.06 0.25 0.2 49 45 0.05 0.5 0.25 52 46 0.04 0.25 0.18 53 48 0.03 0.5 0.16 40 32 0.02 0.75 0.14 35 40 0.04 0.25 0.2 37 38 0.06 0.5 0.18 35 42 0.08 0.75 0.16]; T=[8.17 12.79 17.13 25.65 29.09 22.41 3.21 0.008 2.29 0 1.44 2.85 0 0.25 6.68 1.44 6.59 6.78 8.52 0.19 1.94 0.53];