Skip to content

Commit

Permalink
MAINT: typos and rephrasing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmargenot committed Aug 21, 2018
1 parent 4c3fb44 commit 55576ac
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 24 deletions.
80 changes: 61 additions & 19 deletions notebooks/lectures/Factor_Analysis/notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@
"\n",
"This function also separates our factor into quantiles for each date, replacing the factor value with its appropriate quantile on a given day. Since we will be holding baskets of the top and bottom quantiles, we only care about the factor insofar as it relates to movement into and out of these baskets.\n",
"\n",
"This information is analyzed several different ways, in terms of:\n",
"Alphalens provides three categories of analysis on alpha factors:\n",
"\n",
"* Returns\n",
"* Information\n",
Expand All @@ -842,7 +842,7 @@
"source": [
"### Returns Tear Sheet\n",
"\n",
"If we are solely interested in returns, we can create a tear sheet that only contains the returns analysis. The following code block generates all of our returns plots once we have stored the forward returns data!"
"If we are solely interested in returns, we can create a tear sheet that only contains the returns analysis. The following code block generates all of our returns plots once we have stored the forward returns data:"
]
},
{
Expand Down Expand Up @@ -958,32 +958,44 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"### Returns Tear Sheet Breakdown"
]
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### $\\alpha$ and $\\beta$ Point Estimates\n",
"#### $\\alpha$ and $\\beta$ Point Estimates Chart\n",
"\n",
"Now we calculate the $\\alpha$ and $\\beta$ of our factor with respect to the market. These are calculated by creating a regression of the market returns for each period against a long-short factor portfolio and extracting the parameters. These signify the excess return associated with our factor and the market beta, respectively."
]
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Returns Point Estimates\n",
"#### Returns Point Estimates Chart\n",
"\n",
"These point estimates were also calculated agnostic of the sector groupings so they give us an overall view of what our spread would look like if we traded this factor with a long-short equity algorithm and didn't examine which sectors those returns were coming from."
]
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Mean Period-Wise Return by Quantile\n",
"\n",
Expand All @@ -996,7 +1008,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Factor-Weighted Long/Short Portfolio Cumulative Return\n",
"\n",
Expand Down Expand Up @@ -1025,7 +1040,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Quantile Mean Return in BPS\n",
"\n",
Expand All @@ -1041,7 +1059,7 @@
"source": [
"#### Sector Breakdown of Returns\n",
"\n",
"`Alphalens` provides a breakdown returns by industry group, provided that you feed it a set of classifiers, using the `by_group` flag. While it is good to consider breakdowns by quantile, it is also important to see how your factor is exposed to the different facets of the market. This is a good way to assess if your factor is behaving as it should in your universe. For example, if you intend your universe to only touch a certain sector, it is worthwhile to confirm that your factor and universe indeed only touch that sector."
"`Alphalens` provides a breakdown of returns by group, provided that you feed it a set of categorical values (such as industry labels), using the `by_group` flag. While it is good to consider breakdowns by quantile, it is also important to see how your factor is exposed to the different facets of the market. This is a good way to assess if your factor is behaving as it should in your universe. For example, if you intend your universe to only touch a certain sector, it is worthwhile to confirm that your factor and universe indeed only touch that sector."
]
},
{
Expand Down Expand Up @@ -1187,7 +1205,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### IC Point Estimates\n",
"\n",
Expand All @@ -1196,7 +1217,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### IC Time Series\n",
"\n",
Expand All @@ -1205,7 +1229,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### IC Histograms\n",
"\n",
Expand All @@ -1214,7 +1241,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### IC QQ-Plots\n",
"\n",
Expand All @@ -1235,7 +1265,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### IC by Group\n",
"\n",
Expand Down Expand Up @@ -1412,7 +1445,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Factor Autocorrelation\n",
"\n",
Expand All @@ -1421,15 +1457,21 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Top and Bottom Quantile Turnover\n",
"These plot shows a fairly ordinary turnover for the factor, implying that we will not be hit too hard by the constant changing of portfolio positions, though this varies from time period to time period. We cannot see the costs directly, however, because `Alphalens` does not model commission costs. It simply provides metrics that we can use to judge a factor by itself. To properly model undermining influences such as slippage and commissions you will need to implement a strategy that uses your factor in the backtester.\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"#### Autocorrelation\n",
"\n",
Expand Down
10 changes: 5 additions & 5 deletions notebooks/lectures/Factor_Analysis/preview.html
Original file line number Diff line number Diff line change
Expand Up @@ -12480,7 +12480,7 @@ <h1 id="Alphalens-Components">Alphalens Components<a class="anchor-link" href="#
<div class="text_cell_render border-box-sizing rendered_html">
<p>As explained above, the forward returns are the returns that we would have received for holding each security for the specified number of days, ending on the given date. These, too, are broken out by sector.</p>
<p>This function also separates our factor into quantiles for each date, replacing the factor value with its appropriate quantile on a given day. Since we will be holding baskets of the top and bottom quantiles, we only care about the factor insofar as it relates to movement into and out of these baskets.</p>
<p>This information is analyzed several different ways, in terms of:</p>
<p>Alphalens provides three categories of analysis on alpha factors:</p>
<ul>
<li>Returns</li>
<li>Information</li>
Expand All @@ -12495,7 +12495,7 @@ <h1 id="Alphalens-Components">Alphalens Components<a class="anchor-link" href="#
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h3 id="Returns-Tear-Sheet">Returns Tear Sheet<a class="anchor-link" href="#Returns-Tear-Sheet">&#182;</a></h3><p>If we are solely interested in returns, we can create a tear sheet that only contains the returns analysis. The following code block generates all of our returns plots once we have stored the forward returns data!</p>
<h3 id="Returns-Tear-Sheet">Returns Tear Sheet<a class="anchor-link" href="#Returns-Tear-Sheet">&#182;</a></h3><p>If we are solely interested in returns, we can create a tear sheet that only contains the returns analysis. The following code block generates all of our returns plots once we have stored the forward returns data:</p>

</div>
</div>
Expand Down Expand Up @@ -25774,7 +25774,7 @@ <h3 id="Returns-Tear-Sheet-Breakdown">Returns Tear Sheet Breakdown<a class="anch
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h4 id="$\alpha$-and-$\beta$-Point-Estimates">$\alpha$ and $\beta$ Point Estimates<a class="anchor-link" href="#$\alpha$-and-$\beta$-Point-Estimates">&#182;</a></h4><p>Now we calculate the $\alpha$ and $\beta$ of our factor with respect to the market. These are calculated by creating a regression of the market returns for each period against a long-short factor portfolio and extracting the parameters. These signify the excess return associated with our factor and the market beta, respectively.</p>
<h4 id="$\alpha$-and-$\beta$-Point-Estimates-Chart">$\alpha$ and $\beta$ Point Estimates Chart<a class="anchor-link" href="#$\alpha$-and-$\beta$-Point-Estimates-Chart">&#182;</a></h4><p>Now we calculate the $\alpha$ and $\beta$ of our factor with respect to the market. These are calculated by creating a regression of the market returns for each period against a long-short factor portfolio and extracting the parameters. These signify the excess return associated with our factor and the market beta, respectively.</p>

</div>
</div>
Expand All @@ -25783,7 +25783,7 @@ <h4 id="$\alpha$-and-$\beta$-Point-Estimates">$\alpha$ and $\beta$ Point Estimat
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h4 id="Returns-Point-Estimates">Returns Point Estimates<a class="anchor-link" href="#Returns-Point-Estimates">&#182;</a></h4><p>These point estimates were also calculated agnostic of the sector groupings so they give us an overall view of what our spread would look like if we traded this factor with a long-short equity algorithm and didn't examine which sectors those returns were coming from.</p>
<h4 id="Returns-Point-Estimates-Chart">Returns Point Estimates Chart<a class="anchor-link" href="#Returns-Point-Estimates-Chart">&#182;</a></h4><p>These point estimates were also calculated agnostic of the sector groupings so they give us an overall view of what our spread would look like if we traded this factor with a long-short equity algorithm and didn't examine which sectors those returns were coming from.</p>

</div>
</div>
Expand Down Expand Up @@ -25838,7 +25838,7 @@ <h4 id="Quantile-Mean-Return-in-BPS">Quantile Mean Return in BPS<a class="anchor
</div>
<div class="inner_cell">
<div class="text_cell_render border-box-sizing rendered_html">
<h4 id="Sector-Breakdown-of-Returns">Sector Breakdown of Returns<a class="anchor-link" href="#Sector-Breakdown-of-Returns">&#182;</a></h4><p><code>Alphalens</code> provides a breakdown returns by industry group, provided that you feed it a set of classifiers, using the <code>by_group</code> flag. While it is good to consider breakdowns by quantile, it is also important to see how your factor is exposed to the different facets of the market. This is a good way to assess if your factor is behaving as it should in your universe. For example, if you intend your universe to only touch a certain sector, it is worthwhile to confirm that your factor and universe indeed only touch that sector.</p>
<h4 id="Sector-Breakdown-of-Returns">Sector Breakdown of Returns<a class="anchor-link" href="#Sector-Breakdown-of-Returns">&#182;</a></h4><p><code>Alphalens</code> provides a breakdown of returns by group, provided that you feed it a set of categorical values (such as industry labels), using the <code>by_group</code> flag. While it is good to consider breakdowns by quantile, it is also important to see how your factor is exposed to the different facets of the market. This is a good way to assess if your factor is behaving as it should in your universe. For example, if you intend your universe to only touch a certain sector, it is worthwhile to confirm that your factor and universe indeed only touch that sector.</p>

</div>
</div>
Expand Down

0 comments on commit 55576ac

Please sign in to comment.