Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.0 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Estatística > Measures of Dispersion > iqr

iqr

interquartile range

Syntax

q=iqr(x)
q=iqr(x,'r') (or, equivalently, q=iqr(x,1))
q=iqr(x,'c') (or, equivalently, q=iqr(x,2))

Arguments

x

real or complex vector or matrix

Description

This function computes the interquartile range IQR= upper quartile - lower quartile of a vector or a matrix x.

For a vector or a matrix x , q=iqr(x) returns in the scalar q the interquartile range of all the entries of x.

q=iqr(x,'r') (or, equivalently, q=iqr(x,1)) is the rowwise interquartile range. It returns in each entry of the row vector q the interquartile range of each column of x.

q=iqr(x,'c') (or, equivalently, q=iqr(x,2)) is the columnwise interquartile range. It returns in each entry of the column vector q the interquartile range of each row of x.

Examples

x  = 1:10;

// Interquartile range of vector 1 to 10
// Q1 = 3 and Q3 = 8, so iqr = 5
iqr(x)

Bibliography

Wonacott, T.H.Wonacott, R.J.; Introductory Statistics, J.Wiley-Sons, 1990.

Report an issue
<< Measures of Dispersion Measures of Dispersion mad >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 14 15:09:45 CET 2017