Skip to content
#

finance

Here are 4,158 public repositories matching this topic...

dash
wuzhe1234
wuzhe1234 commented Mar 25, 2022

In order to achieve the expression like "Power($close, Rank($close, 14))" which is fairly common in fomulla alpha.

I guess we could use following code:

class Power(NpPairOperator): def __init__(self, feature_left, feature_right): super(PairPower, self).__init__(feature_left, feature_right, "power")

Finally, we could add a rpow magic method to Expression class

good first issue question
Lean
mlfinlab
CMobley7
CMobley7 commented Mar 27, 2022

When I ran Center of Gravity: cg over 3 months of Bitcoin prices ("20200801" to "20201101"), I got

Close cg
count 132481.000000 132472.000000
mean 11378.306788 -5.499988
std 844.355621 0.001991
min 9881.820000 -5.616297
25% 10710.500000 -5.500833
50% 11368.680000 -5.499987
75% 11742.540000 -5.499146
1
bug good first issue

Powerful modern math library for PHP: Features descriptive statistics and regressions; Continuous and discrete probability distributions; Linear algebra with matrices and vectors, Numerical analysis; special mathematical functions; Algebra

  • Updated Apr 10, 2022
  • PHP

Improve this page

Add a description, image, and links to the finance topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the finance topic, visit your repo's landing page and select "manage topics."

Learn more