<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 26, 2018 at 11:59 AM, Sebastian Berg <span dir="ltr"><<a href="mailto:sebastian@sipsolutions.net" target="_blank">sebastian@sipsolutions.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I seem to recall that there was a discussion on this and it was a lot<br>
trickier then expected.<br></blockquote><div><br></div><div>But given that numpy has the weights already for cov, then I don't see any additional issues</div><div>whith adding it also to corrcoef.</div><div><br></div><div>corrcoef is just rescaling the cov, so there is nothing special to add except that corrcoef hands off the options to cov.</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think statsmodels might have options in this direction.<br></blockquote><div><br></div><div>statsmodels still has only fweights (case weights) for covariance and correlation</div><div><br></div><div>Josef</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- Sebastian<br>
<div><div class="h5"><br>
<br>
On Thu, 2018-04-26 at 15:44 +0000, Corin Hoad wrote:<br>
> Hello,<br>
> <br>
> Would it be possible to add the fweights and aweights keyword<br>
> arguments from np.cov to np.corrcoef? They would retain their meaning<br>
> from np.cov as frequency- or importance-based weightings<br>
> respectively.<br>
> <br>
> Yours,<br>
> Corin Hoad<br>
</div></div>> ______________________________<wbr>_________________<br>
> NumPy-Discussion mailing list<br>
> <a href="mailto:NumPy-Discussion@python.org">NumPy-Discussion@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/numpy-<wbr>discussion</a><br>______________________________<wbr>_________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@python.org">NumPy-Discussion@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/numpy-discussion" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/numpy-<wbr>discussion</a><br>
<br></blockquote></div><br></div></div>