Professional Documents
Culture Documents
Topic 5
Topic 5
• Assumptions
1 Model is correct
5 5-1
• Histogram
• Normality
– Is histogram of residuals bell-shaped?
– Histogram of residuals
5-2 5-3
Constant Variance
• Levene’s Test
– Compute |yij − mi | where mi is median
– Compare samples using F-test
5-4 5-5
5-6 5-7
Constant Variance
• Why concern?
– Comparison of treatments depends on MSE
– Incorrect intervals and comparison results
• Variance-Stabilizing Transformations
– Common transformations
√ √ √
x, log(x), 1/x, arcsin( x), and 1/ x
– Box-Cox transformations
uses maximum likelihood procedures
can approximate using relationship σi = θµβi
transformation is X 1−β
5-8 5-9
Transformations
5-10 5-11
trans.sas
data three;
set two; logmu = log(mu); logsig = log(sigma);
run;
5-12 5-13
5-14 5-15
Unusual Observations Near-Zero/Truncated Values
• Can use residual plot to detect unusual observations • Can have heavily skewed observations (near zero)
– Concentration of rare contaminant
• Unusual = large |²̂ij |
– Number of defects in assembly line
• Sometimes typographical error – Number of birds at a given site
• Don’t immediately look for excuses – Lifetime of component (does not fail)
• More advanced
Assume non-Normal errors (GLIM models)
• Does observation make a difference if excluded?
EM algorithm (iterative MLE approach)
• Perform analysis with and without observations(s) Bayesian methods
5-16 5-17
run; Median Scores (Number of Points Above Median) for Variable NITROGEN
___________________________________________________
Sum of Expected Std Dev Mean
N P A R 1 W A Y P R O C E D U R E STRAIN N Scores Under H0 Under H0 Score
5-18 5-19