Hi is there an easy way to calculate percentiles in PowerLanguage?
It is a simple method in python pandas: https://pandas.pydata.org/pandas-docs/s ... ntile.html
Thanks
percentile/quantile in PowerLanguage
-
- Posts: 7
- Joined: 03 Apr 2018
- Has thanked: 1 time
- Been thanked: 1 time
- Anna MultiCharts
- Posts: 560
- Joined: 14 Jul 2017
- Has thanked: 42 times
- Been thanked: 141 times
Re: percentile/quantile in PowerLanguage
Hello, birdman3000!
There’s no such function in PowerLanguage. It will be required to create it yourself.
There’s no such function in PowerLanguage. It will be required to create it yourself.
-
- Posts: 7
- Joined: 03 Apr 2018
- Has thanked: 1 time
- Been thanked: 1 time
-
- Posts: 275
- Joined: 22 Apr 2014
- Has thanked: 70 times
- Been thanked: 72 times
Re: percentile/quantile in PowerLanguage
Different applications have different ways of calculating quantiles. You might want to take a look at this if you want your code to match what you get with pandas.
https://stackoverflow.com/questions/448 ... n-manually
regards,
Alex
https://stackoverflow.com/questions/448 ... n-manually
regards,
Alex
- ABC
- Posts: 723
- Joined: 16 Dec 2006
- Location: www.abctradinggroup.com
- Has thanked: 125 times
- Been thanked: 410 times
- Contact:
Re: percentile/quantile in PowerLanguage
birdman3000,
you might want to take a look at the build in Percentile function.
Regards,
ABC
you might want to take a look at the build in Percentile function.
Regards,
ABC
It's pretty basic statistics. Can I request it gets added?