Skip to content

Commit ab2f0a4

Browse files
authored
Update PDFAnalyze.m
1 parent 61cdad8 commit ab2f0a4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

PDFAnalyze.m

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,13 @@
2222
% 'sqr' scaled quantile residual
2323
% 'combined' pdf and sqr plotted on one figure
2424
%
25-
% Multiple plot types occur with multiple
26-
% name/value pairs specified
25+
% Multiple plot types occur with multiple name/value pairs specified
26+
%
27+
% The equation for Scaled Quantile Residual (SQR) is given by SQR = sqrt(N+2)*(u - uniform-u) where N is the number of data samples.
28+
% SQR plots are very useful as a diagnostic measure because they are sample size invariant and have universal characteristics
29+
% independent of the true PDF. The SQR plot type plots the SQR for each data sample by position, highlighting in red those that fall
30+
% outside of the expected 98% threshold.
31+
%
2732
%
2833
% 'EstimationType' The default estimation method is PDFEstimate.
2934
% Additional KDE methods are available:
@@ -37,6 +42,7 @@
3742
% estimate for use with 'pdf' plot type. Useful
3843
% for comparison to a known distribution.
3944
%
45+
%
4046
% Example: Plot the estimate of random sample for a Normal distribution
4147
% along with the true Normal distribution:
4248
% data = randn(1000, 1);
@@ -216,4 +222,4 @@
216222
xlabel('Sample Range');
217223
end
218224
end
219-
end
225+
end

0 commit comments

Comments
 (0)