skewreduction.m- skewness reduction (transformation method)
Skewness Reduction
USAGE: [xt r sk]=skewreduction(x)
Input:
x: original data (skewed data) - x should be positive. If some of the observations are negative the following transformation can be used before skewness reduction x=x-min(x)
Outputs:
xt: transformed data (data with skewness close to 0)
r: a root in which xt=x.^r
sk: skewness of transfomed data
This function tranform x (a skewed data) to xt in which xt has skewness close to zero. This is useful to trasform skewed (non-normal) data to normal (or close to normal)data.
Example 1 (x has positive skewness):
x=gamrnd(1,4,1,1000);
[xt r sk]=skewreduction(x)
Example 2 (x has negative skewness):
x=wblrnd(3,20,1,1000);
[xt r sk]=skewreduction(x)
______________________________________
Copyright(c) Babak Abbasi, RMIT University, 2011
References:
1-Niaki, S.T.A and Abbasi, B., 2007, Skewness Reduction Approach in Multi-Attribute Process Monitoring
Communications in Statistics - Theory and Methods Volume 36, Issue 12, 2007
2- Hosseinifard S.Z., Abbasi B., Ahmad S., Abdollahian M., 2009, A transformation technique to estimate the process capability index for non-normal processes , International Journal of Advanced Manufacturing Technology 40 (5-6), 512-517.
Cite As
Babak Abbasi (2024). skewreduction.m- skewness reduction (transformation method) (https://www.mathworks.com/matlabcentral/fileexchange/32815-skewreduction-m-skewness-reduction-transformation-method), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.9.0.0 | A new variable has been added to the code to make in more efficient. |
||
1.8.0.0 | Add a figure. |
||
1.4.0.0 | An assumption that x should be positive was added in description part. |
||
1.3.0.0 | I have added a new reference in description section. |
||
1.2.0.0 | Added more explanation in description section. |
||
1.1.0.0 | add a keyword in title to be searched better in search engines. |
||
1.0.0.0 |