I have 2 datasets each of a (12x12) matrix. I want a qqplot between 2 datasets. Brief the functions to be used in detail . Do i need to fit any distribution and then plot?

10 次查看(过去 30 天)
I have 2 datasets each of a (12x12) matrix. I want a qqplot between these 2 datasets. Brief the steps and the functions in detail. Do i need to fit any distribution and then plot?

回答(1 个)

Yash
Yash 2023-8-22
Hi,
A quantile-quantile plot (qq-plot) does not require to fit a specific distribution.
>> qqplot(x,y)
The above function from the Statistics and Machine Learning Toolbox in MATLAB creates a quantile-quantile plot, comparing the quantiles of sample data x with the quantiles of sample data y. If the samples are from the same distribution, the plot will show a linear relationship.
When x and y are matrices in MATLAB, the qqplot function displays a separate line for each pair of corresponding columns. It compares the quantiles of each column in ‘x with the quantiles of the corresponding column in y.
For more information on ‘qqplot’ you can refer to the documentation: https://in.mathworks.com/help/stats/qqplot.html
Hope it helps!

标签

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by