24 Data transformation
Data may require transformation when a suitable model on the original scale does not adequately satisfy the assumptions needed for analysis. A transformation can improve the analysis, but should be chosen from the nature of the response and the model diagnostics.
For the usual exact ANOVA F-tests, the fitted model should have additive effects where assumed, independent errors, constant error variance, and normally distributed errors. Normality concerns errors about the fitted means, rather than the pooled observations from different treatments. Departures differ in their consequences; a transformation cannot repair a lack of independence caused by the design. Residual diagnostics help determine whether a transformation, a different variance model, or another response distribution is appropriate.
The effects of two factors, say treatment and replication, are said to be additive if the effect of one factor remains constant across all the levels of the other factor. When this is not the case, the effects are said to be non-additive. Two factors have a multiplicative mean structure when their contributions combine by multiplication; a logarithmic transformation converts a positive product structure into an additive structure, which is one of the main reasons the logarithmic transformation is used.
A transformation changes the response scale and can change both the scientific quantity being compared and the significance result. Choose it from the response distribution, the scientific question and model diagnostics, rather than to obtain a desired p-value. It does not guarantee that the model assumptions are met.
When analysis uses a transformed response, significance tests and mean comparisons should be performed on that scale. Back-transformed estimates can then be reported in the original units. Examine residual plots for variance patterns, outliers, and departures from normality; a non-significant normality test alone does not establish that all assumptions hold. A back-transformed mean generally differs from the arithmetic mean on the original scale and should be labelled accordingly. For example, back-transforming a mean logarithm gives a geometric mean.
The following are the most commonly used transformations
\((i)\) Logarithmic transformation
\((ii)\) Square root transformation
\((iii)\) Arc sine transformation (Angular transformation)
24.1 Logarithmic transformation
When the standard deviation is approximately proportional to the positive treatment mean, the coefficient of variation is roughly constant. A logarithmic transformation can improve additivity and variance stability for this multiplicative structure, subject to residual checks.
Logarithms require positive values. For non-negative counts containing zeros, \(\log(Y+1)\) is a common practical choice, but the choice of constant affects the analysis and should be justified. A positive value less than one can be logged directly; its logarithm is negative. Negative observations require a scientifically justified alternative or a shift making every value positive. Common or natural logarithms may be used consistently.
Example 24.1 The following data in weed counts are recorded from a weedicide trial with 5 treatments and absolute control laid out in RBD. Analyse the data with suitable transformation.
| Treatments | R1 | R2 | R3 | R4 |
|---|---|---|---|---|
| T1 | 169 | 132 | 180 | 105 |
| T2 | 210 | 172 | 158 | 125 |
| T3 | 160 | 94 | 103 | 65 |
| T4 | 100 | 120 | 98 | 74 |
| T5 | 42 | 40 | 84 | 28 |
| T6 | 368 | 300 | 610 | 200 |
Solution
The transformation used is \(X=\log_{10}Y\). All calculations use unrounded transformed values; displayed table entries are rounded.
| Treatments | R1 | R2 | R3 | R4 | \(Total\) |
|---|---|---|---|---|---|
| T1 | 2.228 | 2.121 | 2.255 | 2.021 | 8.625 |
| T2 | 2.322 | 2.236 | 2.199 | 2.097 | 8.853 |
| T3 | 2.204 | 1.973 | 2.013 | 1.813 | 8.003 |
| T4 | 2.000 | 2.079 | 1.991 | 1.869 | 7.940 |
| T5 | 1.623 | 1.602 | 1.924 | 1.447 | 6.597 |
| T6 | 2.566 | 2.477 | 2.785 | 2.301 | 10.129 |
| \(Total\) | 12.943 | 12.488 | 13.168 | 11.548 |
Here, \(n=24\) and \(\sum X=\sum \log Y=50.147\).
\(\sum X^2=106.896\) and \(CF=104.780\).
The remaining procedure for estimation of sum of squares is same as that of RBD analysis.
| Source | df | SS | MSS | Fcal | Ftab |
|---|---|---|---|---|---|
| Treatment | 5 | 1.714 | 0.343 | 35.556 | 2.90 |
| Block | 3 | 0.257 | 0.086 | 8.886 | 3.29 |
| Error | 15 | 0.145 | 0.010 | ||
| Total | 23 | 2.116 |
Since \(F_{cal}>F_{tab}\), the treatment means are not all equal. Pairwise differences are assessed using the critical difference.
\(CD=t_{\alpha/2,15}\sqrt{\frac{2MSE}{r}}=2.131\sqrt{\frac{2(0.009643)}{4}}=0.148\)
Here, the mean of T6 is maximum, T2 and T1 is on par. Also T3 is on par with T4. Mean of T5 is minimum.
Retransformed mean values: \(Y=antilogX\)
| Treatments | Mean | Retransformed means |
|---|---|---|
| T1 | 2.156 | 143.295 |
| T2 | 2.213 | 163.429 |
| T3 | 2.001 | 100.173 |
| T4 | 1.985 | 96.585 |
| T5 | 1.649 | 44.585 |
| T6 | 2.532 | 340.669 |
24.2 Square root transformation
For Poisson-type counts, the variance is proportional to the mean. A square root transformation can approximately stabilise that variance. For an exact Poisson distribution, variance equals mean; a relationship \(\operatorname{Var}(Y)=kE(Y)\) with \(k>1\) describes overdispersion rather than an exact Poisson distribution. Disease counts out of a fixed number of seeds are binomial, not automatically Poisson.
Zero counts can be square-rooted directly. For very small counts, traditional alternatives include \(\sqrt{Y+1}\), \(\sqrt{Y}+\sqrt{Y+1}\), or the Anscombe transformation \(2\sqrt{Y+3/8}\). They are approximations and do not guarantee normally distributed errors. The constant and transformation must be stated and applied consistently.
If \(X=\sqrt{Y+c}\), the inverse is \(Y=X^2-c\). The inverse of a mean on the transformed scale is no greater than the arithmetic mean of the original observations, by concavity of the square root, and the difference need not be small. Adding an appropriate transformed-scale variance is sometimes used as a model-based correction for estimating an original-scale mean. Adding MSE is only an approximation under a specified model; it does not automatically recover the raw mean. Neither square root nor logarithmic data have a universal ranking of how severely they violate ANOVA assumptions.
Example 24.2 The number of living larvae recorded from the plots under seven treatments from a RBD experiments on rice is given below. Analyse the data and draw the inference.
| Treatments | Replications | |||
|---|---|---|---|---|
| R1 | R2 | R3 | R4 | |
| T1 | 9 | 12 | 0 | 1 |
| T2 | 4 | 8 | 5 | 1 |
| T3 | 6 | 15 | 6 | 2 |
| T4 | 9 | 6 | 4 | 5 |
| T5 | 27 | 17 | 10 | 10 |
| T6 | 35 | 28 | 2 | 15 |
| T7 | 1 | 0 | 0 | 0 |
Solution
The data are larval counts from an RBD. A square root transformation is used here as a traditional approach for Poisson-type counts. Counts need not follow a Poisson distribution merely because they are counts, so the transformed model still requires diagnostic checks. For this illustration, use \(X=\sqrt{Y+1}\) for every observed larval count \(Y\), including the zeros.
| Treatments | R1 | R2 | R3 | R4 | Total | Mean |
|---|---|---|---|---|---|---|
| T1 | 3.162 | 3.606 | 1.000 | 1.414 | 9.182 | 2.296 |
| T2 | 2.236 | 3.000 | 2.449 | 1.414 | 9.100 | 2.275 |
| T3 | 2.646 | 4.000 | 2.646 | 1.732 | 11.024 | 2.756 |
| T4 | 3.162 | 2.646 | 2.236 | 2.449 | 10.494 | 2.623 |
| T5 | 5.292 | 4.243 | 3.317 | 3.317 | 16.167 | 4.042 |
| T6 | 6.000 | 5.385 | 1.732 | 4.000 | 17.117 | 4.279 |
| T7 | 1.414 | 1.000 | 1.000 | 1.000 | 4.414 | 1.104 |
| \(Total\) | 23.912 | 23.879 | 14.380 | 15.327 | 77.498 |
Here, \(r=4\), \(v=7\), \(n=28\), \(CF=214.497\).
| Source | df | SS | MSS | Fcal | Ftab |
|---|---|---|---|---|---|
| Treatment | 6 | 28.658 | 4.776 | 7.745 | 2.66 |
| Block | 3 | 11.745 | 3.915 | 6.348 | 3.16 |
| Error | 18 | 11.101 | 0.617 | ||
| Total | 27 | 51.503 |
Since \(F_{cal}>F_{tab}\), the treatment means are not all equal. Pairwise differences are assessed using the critical difference.
\(CD=t_{\alpha/2,edf}\times\sqrt{\frac{2MSE}{r}}=2.101\times\sqrt{\frac{2\times0.617}{4}}=1.17\)
Here, the mean of T6 is maximum, T3 is found to be on par with mean of T4, T1 and T2. Mean of T7 is minimum.
Retransformed mean values: \(Y=X^2-1\)
| Treatments | Mean | Retransformed means |
|---|---|---|
| T1 | 2.296 | 4.269 |
| T2 | 2.275 | 4.175 |
| T3 | 2.756 | 6.595 |
| T4 | 2.623 | 5.882 |
| T5 | 4.042 | 15.337 |
| T6 | 4.279 | 17.312 |
| T7 | 1.104 | 0.218 |
24.3 Angular transformation
This is a traditional transformation for percentage data derived from binomial counts. However, the data like percentage of carbohydrates, percentage of protein, etc need not to be transformed before applying analysis of variance.
If \(a_{ij}\) success out of n trials are obtained in the jth replicate of the ith treatment the sample proportion \(\hat{p}_{ij}=a_{ij}/n\) has variance \(p_{ij}(1-p_{ij})/n\), where \(p_{ij}\) is the underlying success probability. Replacing \(p_{ij}\) by \(\hat{p}_{ij}\) gives an estimate of this variance. Usually these proportions are expressed in percentages. In binomial data variance tends to be small at the two ends of the range of values but larger towards the middle. This tendency also can be used to identify the transformation.
The traditional 30%–70% guideline is only a rough guide for binomial percentages with comparable denominators. It is not a rule that a single percentage outside that range requires transformation. Assess the variance pattern and model residuals. A binomial generalised linear model is another option, especially when denominators differ. If a transformation is used, apply the same transformation to every observation in the analysis.
The angular transformation is a traditional approximate variance-stabilising transformation for binomial proportions. It does not automatically make the errors normal or the variances equal, particularly with small denominators or proportions near zero or one.
The transformation is obtained by taking the angle whose sine is the square root of the proportion. (percentage / 100) i.e \(arcSin \sqrt p_{ij}\) or \(Sin^{-1} \sqrt p_{ij}\). For \(p_{ij}\) = 0 or 1 (i.e. 0% or 100%) the angular transformation is improved by replacing 0 by 1/4n and 1 by 1-1/4n where, n is the total number of units under observation.
Example 24.3 The following are results on percentage mortality of insects recorded from a laboratory experiment using 6 levels of ekalux - 0, 1, 2, 3, 4 and 5%. Each concentration was applied independently to four experimental units, with 100 insects assessed in each unit, and mortality percentages are recorded below. Analyse the data.
| Treatments | I | II | III | IV |
|---|---|---|---|---|
| T1 | 0 | 0 | 3 | 2 |
| T2 | 12 | 15 | 18 | 17 |
| T3 | 33 | 30 | 35 | 34 |
| T4 | 52 | 54 | 58 | 55 |
| T5 | 86 | 78 | 80 | 79 |
| T6 | 88 | 79 | 100 | 100 |
Solution
For this example, use the angular transformation in degrees:
\[X=\frac{180}{\pi}\sin^{-1}\sqrt{p},\qquad p=Y/100.\]
There are 100 insects in each replicate. Under the endpoint convention described above, replace a zero proportion by \(1/(4n)=1/400=0.0025\), and a unit proportion by \(1-1/(4n)=0.9975\). These are proportions and must not be divided by 100 again.
Thus, 0% gives \(X=2.866^\circ\), and 100% gives \(X=87.134^\circ\).
| Treatments | I | II | III | IV | Total | Means |
|---|---|---|---|---|---|---|
| T1 | 2.866 | 2.866 | 9.974 | 8.130 | 23.836 | 5.959 |
| T2 | 20.268 | 22.786 | 25.104 | 24.350 | 92.509 | 23.127 |
| T3 | 35.062 | 33.211 | 36.271 | 35.669 | 140.212 | 35.053 |
| T4 | 46.146 | 47.294 | 49.603 | 47.870 | 190.914 | 47.728 |
| T5 | 68.027 | 62.028 | 63.435 | 62.725 | 256.215 | 64.054 |
| T6 | 69.732 | 62.725 | 87.134 | 87.134 | 306.725 | 76.681 |
Assume the four independently treated experimental units per concentration were allocated using a CRD. The ANOVA is calculated on unrounded angular values in degrees, using the CRD procedure. This is a worked calculation under the transformed normal-error model; the small number of units and endpoint values still require diagnostic assessment.
| Source | df | SS | MSS | Fcal | Ftab |
|---|---|---|---|---|---|
| Treatment | 5 | 13701.261 | 2740.252 | 89.882 | 2.77 |
| Error | 18 | 548.769 | 30.487 | ||
| Total | 23 | 14250.030 |
Since \(F_{cal}>F_{tab}\), the treatment means are not all equal. Pairwise differences are assessed using the critical difference.
\(CD=t_{\alpha/2,18}\sqrt{\frac{2MSE}{r}}=2.101\sqrt{\frac{2(30.487)}{4}}=8.203\)
Here, the mean of T6 is maximum and mean of T1 is minimum. Every pair of treatment means differs significantly under the calculated protected LSD.
Retransformed mean values: \(Y=100\times sin^2X\)
| Treatments | Mean | Retransformed means |
|---|---|---|
| T1 | 5.959 | 1.078 |
| T2 | 23.127 | 15.427 |
| T3 | 35.053 | 32.986 |
| T4 | 47.728 | 54.755 |
| T5 | 64.054 | 80.857 |
| T6 | 76.681 | 94.693 |
The following table gives an idea about the appropriate transformation which is used for different types of data.
| Distribution | Relation between mean & variance | Appropriate transformation |
|---|---|---|
| Poisson | \(\sigma ^2=\mu\) | \(\sqrt x\) |
| Empirical | \(\sigma ^2=c^2\mu\) | \(\sqrt x\) |
| Binomial | \(\sigma ^2=\frac{p(1-p)}{n}\) | \(sin^{-1} \sqrt p\) |
| Empirical | \(\sigma ^2=c^2\mu ^2\) | \(log(x)\) |
24.4 Box-Cox transformation
The logarithmic and square root transformations are related to a wider family of power transformations. For example, a square root uses the power \(1/2\), and a reciprocal uses the power \(-1\). The Box-Cox transformation provides a family indexed by \(\lambda\) for strictly positive responses. The angular transformation is not a member of this family.
The Box-Cox transformation of a variable \(Y\) takes the form
\[ X = \begin{cases} \dfrac{Y^{\lambda}-1}{\lambda}, & \lambda \neq 0 \\ \log Y, & \lambda = 0 \end{cases} \tag{24.1}\]
where \(Y\) is the untransformed variable, \(X\) is the transformed variable, and \(\lambda\) is the Box-Cox parameter. The value of \(\lambda\) is commonly estimated by maximising the profile likelihood for the fitted model, including the transformation Jacobian. Minimizing unadjusted residual sums of squares across different transformed scales is not a valid selection rule.
Table 24.14 shows how familiar transformations correspond to specific values of \(\lambda\).
| \(\lambda\) | Corresponding transformation |
|---|---|
| 1.00 | Identity up to a shift: the formula gives \(Y-1\); ANOVA F-tests are unchanged |
| 0.50 | Square root transformation |
| 0.33 | Cube root transformation |
| 0.25 | Fourth root transformation |
| 0.00 | Natural logarithmic transformation |
| -0.50 | Reciprocal square root transformation |
| -1.00 | Reciprocal transformation |
In practice, fit the model across a suitable range of trial values of \(\lambda\) and compare their profile likelihoods. A nearby simple power may be preferred for interpretation when it is supported by the likelihood. The transformations in Table 24.14 correspond to Box-Cox values up to shifts and nonzero scale factors; at negative powers the formula also reverses the sign relative to a simple reciprocal. These are monotone transformations, so the inverse and interpretation must match the actual formula; at \(\lambda=1\), the formula gives \(Y-1\). Residual diagnostics are still required after choosing the transformation.
The angular examples use degrees. When computing a back-transformation in software whose sine function uses radians, convert \(X\) degrees to \(X\pi/180\) radians before calculating \(100\sin^2(X\pi/180)\).
24.5 Chapter Summary
Fill in the blanks
Answers are given at the end of the chapter.
A change of measurement scale used before analysis is called a data __________.
Unequal error variances are described as __________.
A transformation commonly used for positive data with multiplicative effects is the __________ transformation.
A traditional variance-stabilising transformation for Poisson counts is the __________ root transformation.
A traditional variance-stabilising transformation for binomial proportions is the __________ square root transformation.
In the angular transformation \(\sin^{-1}\sqrt{p}\), \(p\) denotes a __________.
After a transformation is chosen, significance tests are performed on the __________ scale.
Converting a transformed result to the original scale is called __________ transformation.
The inverse of the square root transformation is __________.
The inverse of a logarithmic transformation is __________.
For a Poisson distribution, the variance equals the __________.
After fitting an ANOVA model, its assumptions should be assessed using the __________.
Short-answer questions
What is data transformation?
Why is data transformation required before statistical analysis?
Why should transformation not be used merely to obtain a desired statistical result?
What are the three traditional transformations discussed in the chapter?
Explain when logarithmic transformation is appropriate.
What is the relationship between mean and standard deviation that suggests logarithmic transformation?
Explain how logarithmic transformation helps to achieve equality of variance.
What transformation is used when zero or negative observations are present?
What should be done when all observations are less than one before logarithmic transformation?
Explain the analysis procedure after logarithmic transformation.
Why should transformed means be retransformed after analysis?
What is the appropriate transformation for Poisson-type count data?
Why is square root transformation suitable for Poisson data?
Give examples of data that may follow a Poisson distribution.
Explain the transformation used when zero counts are present.
Why are retransformed square root means slightly different from the original means?
What rough correction can be applied to retransformed square root means?
Explain when angular transformation is appropriate.
Why is angular transformation used for percentage data derived from counts?
State the variance of a binomial proportion.
Explain why the variance of binomial data is not constant over the range of proportions.
State the rule for deciding whether angular transformation is required.
How are 0% and 100% observations treated before angular transformation?
Explain the complete procedure for analysing percentage data using angular transformation.
How are angular-transformed means retransformed to the original percentage scale?
Explain the relationship between distribution, variance, and appropriate transformation.
Why should the transformed data be tested for normality?
Explain why ANOVA on transformed data is more appropriate when the assumptions of ANOVA are satisfied after transformation.
Distinguish between logarithmic, square root, and angular transformations.
Explain the importance of choosing an appropriate transformation rather than applying the same transformation to all data.
Numerical and conceptual questions
Answers are given at the end of the chapter.
A weed count dataset contains large differences in variability among treatments, with the standard deviation increasing approximately in proportion to the mean. Which transformation should be used? Give the reason.
Explain how you would transform a dataset containing zero and positive weed counts using logarithmic transformation.
A count dataset contains the observations 0, 1, 4, 9, and 16. State the appropriate square root transformation when zero values are present.
A researcher obtains insect counts from different plots. The counts are small and are expected to follow a Poisson distribution. Which transformation should be used and why?
Given the observations 9, 16, 25, 36, and 49, calculate their square root transformed values.
Explain why square root transformation is more appropriate than logarithmic transformation for Poisson-type count data.
A dataset contains percentages 20, 35, 45, 60, and 80. Determine whether angular transformation is required according to the rule given in the chapter.
A percentage dataset contains values 35, 42, 58, and 65. State whether transformation is required.
A percentage dataset contains values 25, 42, 56, and 68. State whether transformation is required.
A percentage dataset contains 0%, 15%, 48%, 76%, and 100%. Explain how the 0% and 100% values should be treated before angular transformation.
For \(p=0.25\), calculate the angular transformation \(sin^{-1}\sqrt p\).
For \(p=0.64\), calculate the angular transformation \(sin^{-1}\sqrt p\).
A treatment has an angular-transformed mean of \(45^\circ\). Calculate the retransformed percentage using \(Y=100\times sin^2X\).
A treatment has mean 4.2 after the transformation \(X=\sqrt{Y+1}\). Calculate the approximate retransformed value using \(Y=X^2-1\).
A weedicide experiment is conducted in RBD and the weed counts are highly variable. Explain the complete procedure for analysing the experiment after logarithmic transformation.
In a transformed RBD analysis, the treatment effect is significant. Explain how treatment means should be compared.
Explain why the conclusions from transformed data should be interpreted using retransformed means rather than the transformed means alone.
In a percentage mortality experiment, one treatment has 100% mortality in one replication. Explain how this observation should be handled before angular transformation.
A dataset follows the relationship \(\sigma^2=\mu\). Identify the likely distribution and appropriate transformation.
A dataset follows the relationship \(\sigma^2=c^2\mu^2\). Identify the appropriate transformation.
A dataset follows the relationship \(\sigma^2=c^2\mu\). Identify the appropriate transformation.
A dataset follows the relationship \(\sigma^2=\frac{p(1-p)}{n}\). Identify the distribution and appropriate transformation.
Explain why applying a transformation to only selected observations is generally inappropriate when the whole dataset requires transformation.
Explain why normality should be checked after transformation before proceeding with ANOVA.
Compare the interpretation of the retransformed means in the three examples given in the chapter.
Important formulae
Logarithmic transformation:
\[ X=\log Y \]
Logarithmic transformation with a constant:
\[ X=\log(Y+k),\quad k>0 \]
Square root transformation:
\[ X=\sqrt{Y} \]
Square root transformation when zero values occur:
\[ X=\sqrt{Y+1} \]
Alternative transformation for very small counts:
\[ X=\sqrt{Y}+\sqrt{Y+1} \]
Angular transformation:
\[ X=sin^{-1}\sqrt p \]
where
\[ p=\frac{Y}{100} \]
Replacement for 0%:
\[ p=\frac{1}{4n} \]
Replacement for 100%:
\[ p=1-\frac{1}{4n} \]
Retransformation after logarithmic transformation:
\[ Y=antilogX \]
Retransformation after \(X=\sqrt{Y+1}\):
\[ Y=X^2-1 \]
Retransformation after angular transformation:
\[ Y=100\times sin^2X \]
Binomial variance:
\[ \sigma^2=\frac{p(1-p)}{n} \]
Poisson variance:
\[ \sigma^2=\mu \]
Empirical variance relationship for square root transformation:
\[ \sigma^2=c^2\mu \]
Empirical variance relationship for logarithmic transformation:
\[ \sigma^2=c^2\mu^2 \]
Coefficient of variation:
\[ CV=\frac{SD}{Mean}\times100 \]
Critical difference for transformed means in an RBD:
\[ CD=t_{\alpha/2,edf}\sqrt{\frac{2MSE}{r}} \]
Quick revision
Data transformation → used when the assumptions required for valid statistical analysis are not satisfied.
Main purpose → improve validity, precision, and accuracy of statistical analysis.
Transformation should not be chosen merely to obtain a desired conclusion.
ANOVA and mean separation → performed on the transformed data.
Final means → retransformed to the original scale for interpretation.
Normality → assess model errors using residual diagnostics after transformation.
Transformations covered → logarithmic, square root, angular, and the Box-Cox family.
Logarithmic transformation → suitable when standard deviation is proportional to the mean.
Log transformation → also useful for multiplicative rather than additive effects.
Logarithms require positive inputs; shifts need justification, and an alternative model may be preferable.
Common transformation for zero values → \(\log(Y+1)\).
Positive observations below one can be logged directly; their logarithms are negative.
Square root transformation → appropriate for Poisson-type count data.
Examples → insect counts, number of defectives, and counts of seeds affected by disease.
Poisson distribution → \(\sigma^2=\mu\).
Empirical square root case → \(\sigma^2=c^2\mu\).
Zero counts → \(\sqrt Y\) is defined; the worked example uses \(\sqrt{Y+1}\) consistently.
Retransformation of square root mean → square the value and subtract 1.
Retransformed square root mean → no greater than the original arithmetic mean; the difference may be substantial.
Back-transformed means are not generally arithmetic means; any bias correction must match the fitted model.
Angular transformation → appropriate for percentage data derived from binomial counts.
Binomial variance → \(\sigma^2=p(1-p)/n\).
The 30%–70% guideline is approximate; use the binomial model and residual diagnostics to assess the analysis.
A single proportion outside 30%–70% does not automatically require transformation. If used, apply one transformation consistently.
Angular transformation → \(sin^{-1}\sqrt p\).
For 0% → replace with \(1/(4n)\).
For 100% → replace with \(1-1/(4n)\).
Retransformation of angular mean → \(100\times sin^2X\), using the same angular unit as in the forward transformation.
Percentage of protein, carbohydrate, etc. → need not necessarily be transformed because such percentages are not necessarily binomial proportions.
Distribution and transformation:
- Poisson → \(\sqrt{x}\).
- Empirical \(\sigma^2=c^2\mu\) → \(\sqrt{x}\).
- Binomial → \(sin^{-1}\sqrt p\).
- Empirical \(\sigma^2=c^2\mu^2\) → \(\log(x)\).
Logarithmic example → weed counts were transformed using \(X=\log Y\).
Square root example → larval counts containing zero values were transformed using \(X=\sqrt{Y+1}\).
Angular example → insect mortality percentages were transformed using \(X=sin^{-1}\sqrt p\).
In all three examples → ANOVA was performed on transformed values.
Treatment means → compared using the appropriate critical difference after significant treatment F test.
Final interpretation → based on retransformed means expressed in the original units.
Answers to fill in the blanks
1. Transformation 2. Heteroscedasticity 3. Logarithmic 4. Square 5. Arcsine 6. Proportion 7. Transformed 8. Back 9. Squaring 10. Exponentiation 11. Mean 12. Residuals
Solutions to numerical and conceptual questions
Since the standard deviation increases approximately in proportion to the mean, the coefficient of variation is roughly constant across treatments, indicating a multiplicative rather than additive effect. The logarithmic transformation should be used, as it converts multiplicative effects into additive ones and stabilizes the variance in this situation.
If a logarithmic analysis is justified, \(\log(Y+1)\) is one possible choice for nonnegative counts containing zeros, applying it to every observation, including the positive ones, so that all values remain on the same transformed scale.
Using \(X=\sqrt{Y+1}\): for \(Y=0,1,4,9,16\), \(X=1.000,\ 1.414,\ 2.236,\ 3.162,\ 4.123\) respectively.
A square root transformation is a traditional option under the stated Poisson-type model, for which the variance is proportional to the mean, matching the variance-stabilizing property of the square root transformation.
For \(Y=9,16,25,36,49\), \(\sqrt{Y}=3,4,5,6,7\) respectively.
For Poisson-type data the variance is proportional to the mean itself (\(\sigma^2=\mu\)), for which the square root transformation gives approximate variance stability. The logarithmic transformation instead stabilizes variance proportional to the square of the mean (\(\sigma^2=c^2\mu^2\)), which does not match the Poisson case.
For binomial percentages with comparable denominators, the angular transformation is a traditional option. The range 20%–80% alone does not prove it is necessary; examine the variance pattern and residuals, or consider a binomial model.
The percentages satisfy the traditional 30%–70% guideline, so an untransformed analysis may be reasonable with comparable denominators. Residual diagnostics are still needed; the range alone does not establish the assumptions.
One value below 30% does not make transformation compulsory. The appropriate analysis depends on the denominators, mean-variance relationship, and residuals. The angular transformation is a traditional option for binomial proportions; a square root can be useful as an approximation for small proportions near zero.
The 0% observation is replaced by \(\dfrac{1}{4n}\) and the 100% observation is replaced by \(1-\dfrac{1}{4n}\) (expressed as a proportion), where \(n\) is the total number of units on which the percentage was based; the remaining observations (15%, 48%, 76%) are converted directly to proportions and transformed along with the adjusted extreme values, under the angular transformation chosen for this exercise.
\(\sin^{-1}\sqrt{0.25}=\sin^{-1}(0.5)=30^\circ\).
\(\sin^{-1}\sqrt{0.64}=\sin^{-1}(0.8)\approx53.13^\circ\).
\(Y=100\times\sin^2(45^\circ)=100\times0.5=50\%\).
\(X^2-1=4.2^2-1=16.64\).
First take \(X=\log Y\) (or \(\log(Y+1)\) if any weed count is zero) for every observation. Carry out the usual RBD analysis of variance on the transformed values \(X\) to obtain the ANOVA table and test the treatment and block F values. If the treatment effect is significant, calculate the critical difference on the transformed scale and group the transformed treatment means. Finally, retransform the treatment means back to the original scale using \(Y=\text{antilog}\,X\) for interpretation.
The treatment means should first be compared on the transformed scale itself, using the critical difference calculated from the transformed-scale MSE, provided the model diagnostics support the additivity and variance assumptions on that scale; only after this comparison should the means be retransformed to the original scale for reporting.
Back-transformed estimates express the fitted results in the original units and aid interpretation. The transformed scale may itself have a useful scientific meaning, such as log response ratios. A back-transformed mean is generally not the original-scale arithmetic mean, so its interpretation should be stated.
Since 100% mortality occurred in that replication, it should be replaced by \(1-\dfrac{1}{4n}\) (as a proportion) before applying the angular transformation, where \(n\) is the number of insects on which that percentage was based.
The relationship \(\sigma^2=\mu\) is consistent with a Poisson variance function but does not uniquely establish the distribution. For Poisson-type counts, the square root transformation may help stabilize the variance; check the transformed-model residuals.
The relationship \(\sigma^2=c^2\mu^2\) is the empirical case matching the logarithmic transformation.
The relationship \(\sigma^2=c^2\mu\) is the empirical case matching the square root transformation.
This is the variance of a sample proportion from \(n\) independent Bernoulli trials with probability \(p\). The angular transformation gives approximate variance stability for comparable denominators; the variance relationship alone does not uniquely identify a distribution.
ANOVA on transformed data assumes that all the observations have been placed on the same scale; if only some observations are transformed while others are left in the original scale, the resulting values are no longer comparable, and the assumptions of additivity and homogeneity of variance that the transformation was meant to restore would not hold across the whole dataset.
The choice of a transformation (logarithmic, square root, or angular) is based on a general theoretical relationship between the mean and variance for a class of data, but this relationship may not hold exactly for every dataset. Residual diagnostics help assess whether the transformed model is adequate. Neither a transformation nor a non-significant normality test confirms that every ANOVA assumption holds.
The weed example uses logarithms, the larval-count example uses \(\sqrt{Y+1}\), and the mortality example uses angular values in degrees. ANOVA and pairwise comparisons are performed on the transformed scale. Back-transformed estimates aid interpretation but are not generally original-scale arithmetic means. The larval treatments with the largest means, T6 and T5, are not significantly different by the calculated CD; an extreme sample mean need not differ significantly from every other mean.
Finding a suitable scale: Box and Cox
In 1964, George E. P. Box and David R. Cox published An Analysis of Transformations. Box was affiliated with the University of Wisconsin, while Cox was at Birkbeck College, University of London. Their paper treated the choice of transformation as part of fitting a statistical model, rather than a rule applied automatically to every dataset. (Box and Cox 1964)
The family indexed by \(\lambda\) connects familiar transformations such as logarithms, square roots and reciprocals. Its value lies in providing a systematic way to examine which scale is supported by the data and model. Choosing a transformation still leaves the researcher responsible for checking the residuals and interpreting the results on the scale actually used.
“It’s easy to lie with statistics. It’s hard to tell the truth without statistics.” – Andrejs Dunkels