151 //println("Blue data: " + investment(blchip_portfolio, 1978 to 2018, 100)) |
151 //println("Blue data: " + investment(blchip_portfolio, 1978 to 2018, 100)) |
152 |
152 |
153 //} |
153 //} |
154 |
154 |
155 |
155 |
|
156 //val ds = get_deltas(get_prices(List("GOOG", "AAPL"), 2010 to 2012)) |
|
157 //yearly_yield(ds, 100, 0) => 125 |
|
158 //yearly_yield(ds, 100, 1) => 117 |
156 |
159 |
|
160 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2000, 100) // => 100 |
|
161 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2001, 100) // => 27 |
|
162 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2002, 100) // => 42 |
|
163 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2003, 100) // => 27 |
|
164 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2004, 100) // => 38 |
|
165 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2005, 100) // => 113 |
|
166 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2006, 100) // => 254 |
|
167 //investment(List("GOOG", "AAPL", "BIDU"), 2000 to 2007, 100) // => 349 |