Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Measures.Quartiles: value for Q1 (lower quartile) wrong in QuantileMethod.R #865

@hkoestin

Description

@hkoestin

Hello @cesarsouza

I just found out, that the calculation for the lower quartile (25% quantile) is not working correctly, when passing in QuantileMethod.R as method.

I have the following vector:

var v1 = new double[] { 18, 31, 25, 2, 22, 13, 37, 1, 4, 7, 6, 45, 10, 24, 23, 49, 27, 9, 35, 
                             14, 34, 33, 41, 42, 20, 43, 3, 48, 15, 39, 11, 38, 46, 17, 40, 16, 
                             50, 29, 19, 47, 12, 28, 32, 8, 30, 26, 5, 44, 36, 21};

For this vector, I get the following results for the Q1 value:

  • v1:
    • using Accord: 12.5
    • using R: 13.25

Don't know though, where the difference is coming from.
For some other samples I get correct results.

Cheers, Harald

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions