percentile/quantile in PowerLanguage

Questions about MultiCharts and user contributed studies.
birdman3000
Posts: 6
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: 457
Joined: 14 Jul 2017
Has thanked: 31 times
Been thanked: 112 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: 6
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: 238
Joined: 22 Apr 2014
Has thanked: 58 times
Been thanked: 61 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: 636
Joined: 16 Dec 2006
Has thanked: 120 times
Been thanked: 359 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”