mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-29 18:42:44 +08:00
11f9178fd3
Correct the annualization factor from being 1/sqrt(252), since the annualization was applied to the volatility, by including 252 in the Sharpe's numerator.
62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
{
|
|
"metadata": {
|
|
"name": "AnswerKeyAnnotations"
|
|
},
|
|
"nbformat": 3,
|
|
"nbformat_minor": 0,
|
|
"worksheets": [
|
|
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": true,
|
|
"input": [
|
|
"#\n",
|
|
"# Copyright 2013 Quantopian, Inc.\n",
|
|
"#\n",
|
|
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n",
|
|
"# you may not use this file except in compliance with the License.\n",
|
|
"# You may obtain a copy of the License at\n",
|
|
"#\n",
|
|
"# http://www.apache.org/licenses/LICENSE-2.0\n",
|
|
"#\n",
|
|
"# Unless required by applicable law or agreed to in writing, software\n",
|
|
"# distributed under the License is distributed on an \"AS IS\" BASIS,\n",
|
|
"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n",
|
|
"# See the License for the specific language governing permissions and\n",
|
|
"# limitations under the License.\n",
|
|
"\n",
|
|
"from annotation_utils import Markdown\n",
|
|
"import answer_key"
|
|
],
|
|
"language": "python",
|
|
"outputs": [],
|
|
"prompt_number": 1
|
|
},
|
|
{
|
|
"cell_type": "code",
|
|
"collapsed": false,
|
|
"input": [
|
|
"Markdown(\"\"\"\n",
|
|
"Download link for latest answer key: [{latest_answer_key_url}]({latest_answer_key_url})\n",
|
|
"\"\"\".format(latest_answer_key_url=answer_key.LATEST_ANSWER_KEY_URL))"
|
|
],
|
|
"language": "python",
|
|
"outputs": [
|
|
{
|
|
"html": [
|
|
"<p>Download link for latest answer key: <a href=\"https://s3.amazonaws.com/zipline-test-data/risk/cc507b6fca18aabadac69657181edd4e/risk-answer-key.xlsx\">https://s3.amazonaws.com/zipline-test-data/risk/5b48e6a70181d73ecb7f07df5a3092e2/risk-answer-key.xlsx</a></p>"
|
|
],
|
|
"output_type": "pyout",
|
|
"prompt_number": 2,
|
|
"text": [
|
|
"'\\nDownload link for latest answer key: [https://s3.amazonaws.com/zipline-test-data/risk/cc507b6fca18aabadac69657181edd4e/risk-answer-key.xlsx](https://s3.amazonaws.com/zipline-test-data/risk/5b48e6a70181d73ecb7f07df5a3092e2/risk-answer-key.xlsx)\\n'"
|
|
]
|
|
}
|
|
],
|
|
"prompt_number": 2
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |