giqr

버전 1.1.0.0 (3.65 KB) 작성자: Antonio Trujillo-Ortiz
Interquartile range of a grouped sample.
다운로드 수: 136
업데이트 날짜: 2014/12/18

라이선스 보기

In some scientific works, once the data have been gathered from a population of interest, it is often difficult to get a sense of what the data indicate when they are presented in an unorganized fashion.
Assembling the raw data into a meaningful form, such as a frequency distribution, makes the data easier to understand and interpret. It is in the context of frequency distributions that the importance of conveying in a succinct way numerical information contained in the data is encountered.
So, grouped data is data that has been organized into groups known as classes. The raw dataset can be organized by constructing a table showing the frequency distribution of the variable (whose values are given in the raw dataset). Such a frequency table is often referred to as grouped data.

Here, we developed a m-code to calculate the interquartile range of a grouped data.

One can input the returns or modified vectors n and xout containing the frequency counts and the bin locations of the hist m-function, in a column form matrix.

Interquartile range calculation uses the formula,

GIQR = GP75 - GP25 (= GQ3 - GQ1)

where:
GP75 = grouped percentile 75
GP25 = grouped percentile 25

--In orden to run it you must first download the m-file gprctile at:
http://www.mathworks.com/matlabcentral/fileexchange/38228-gprctile

Syntax: function y = giqr(x)

Input:
x - data matrix (Size of matrix must be n-by-2; absolut frequency=
column 1, class mark=column 2)

Output:
y - interquartile range of the values in x

인용 양식

Antonio Trujillo-Ortiz (2024). giqr (https://www.mathworks.com/matlabcentral/fileexchange/48792-giqr), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.1.0.0

It was added an appropriate format to cite this file.

1.0.0.0