percentile/quantile in PowerLanguage

Questions about MultiCharts and user contributed studies.
birdman3000
Posts: 7
Joined: 03 Apr 2018
Has thanked: 1 time
Been thanked: 1 time

percentile/quantile in PowerLanguage

Postby birdman3000 » 09 Jul 2018

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

User avatar
Anna MultiCharts
Posts: 560
Joined: 14 Jul 2017
Has thanked: 42 times
Been thanked: 140 times

Re: percentile/quantile in PowerLanguage

Postby Anna MultiCharts » 09 Jul 2018

Hello, birdman3000!

There’s no such function in PowerLanguage. It will be required to create it yourself.

birdman3000
Posts: 7
Joined: 03 Apr 2018
Has thanked: 1 time
Been thanked: 1 time

Re: percentile/quantile in PowerLanguage

Postby birdman3000 » 09 Jul 2018

It's pretty basic statistics. Can I request it gets added?

hughesfleming
Posts: 275
Joined: 22 Apr 2014
Has thanked: 70 times
Been thanked: 72 times

Re: percentile/quantile in PowerLanguage

Postby hughesfleming » 10 Jul 2018

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

User avatar
ABC
Posts: 718
Joined: 16 Dec 2006
Location: www.abctradinggroup.com
Has thanked: 125 times
Been thanked: 408 times
Contact:

Re: percentile/quantile in PowerLanguage

Postby ABC » 10 Jul 2018

birdman3000,

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?


Return to “MultiCharts”