Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A measure of the degree of linear association between a pair of random variables.
1
vote
Creating a matrix of average correlations for sub-industry from individual stock correlation...
Now, having this dataframe, called corr_df, for example I would use this code:
corr_df_avg = corr_df.groupby(['date','ind1','ind2'])['correlation'].mean()
to get the average correlation between ind1 … To set the average correlation = 1 where ind1 = ind2 run this code
corr_df_avg = corr_df_avg.assign(correlation = corr_df_avg['correlation'].where(corr_df_avg['ind1']! …
1
vote
Correlation between the perfect market-timing strategy and the market itself?
So if you did a simple correlation of these two vectors then it would be less than one. …