ArticleslgStudy

science

Alternating conditional expectations

Alternating conditional expectations is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Alternating conditional expectations rather than just read about it. In short: In statistics, Alternating Conditional Expectations (ACE) is a nonparametric algorithm used in regression analysis to find the optimal transformations for both the outcome (response) variable and the input (predictor) variables. For example, in a model that tries to predict house prices based on size and location, ACE helps by figuring out if, for instance, transforming the size (maybe taking the square root or loga…

Key takeaways

  • Alternating conditional expectations belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Alternating conditional expectations to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Alternating conditional expectations from memory before moving on to harder problems.

Reference excerpt

In statistics, Alternating Conditional Expectations (ACE) is a nonparametric algorithm used in regression analysis to find the optimal transformations for both the outcome (response) variable and the input (predictor) variables. For example, in a model that tries to predict house prices based on size and location, ACE helps by figuring out if, for instance, transforming the size (maybe taking the square root or logarithm) or the location (perhaps grouping locations into categories) would make the relationship easier to model and lead to better predictions. The algorithm iteratively adjusts these transformations until it finds the ones that maximize the predictive power of the regression model.

Introduction In statistics, a nonlinear transformation of variables is commonly used in practice in regression problems. ACE is one of the methods to find those transformations that produce the best fitting additive model. Knowledge of such transformations aids in the interpretation and understanding of the relationship between the response and predictors. ACE transforms the response variable Y and its predictor variables, Xi to minimize the fraction of variance not explained. The transformation is nonlinear and is iteratively obtained from data.

Mathematical description Let Y,X1,…,Xp be random variables. We use X1,…,Xp to predict Y. Suppose θ(Y),φ1(X1),…,φp(Xp) are zero-mean functions and with these transformation functions, the fraction of variance of θ(Y) not explained is

e2(θ,φ1,…,φp)=𝔼[θ(Y)−∑i=1pφi(Xi)]2𝔼[θ2(Y)] Generally, the optimal transformations that minimize the unexplained part are difficult to compute directly. As an alternative, ACE is an iterative method to calculate the optimal transformations. The procedure of ACE has the following steps:

Hold φ1(X1),…,φp(Xp) fixed, minimizing e2gives θ1(Y)=𝔼[∑i=1pφi(Xi)|Y] Normalize θ1(Y) to unit variance. For each k, fix other φi(Xi) and θ(Y), minimizing e2 and the solution is:: φ~k=𝔼[θ(Y)−∑i≠kφi(Xi)|Xk] Iterate the above three steps until e2 is within error tolerance.

Bivariate case The optimal transformation θ∗(Y),φ∗(X) for p=1 satisfies

ρ∗(X,Y)=ρ∗(θ∗,φ∗)=maxθ,φρ(θ(Y),φ(X)) where ρ is Pearson correlation coefficient. ρ∗(X,Y) is known as the maximal correlation between X and Y. It can be used as a general measure of dependence. In the bivariate case, the ACE algorithm can also be regarded as a method for estimating the maximal correlation between two variables.

Software implementation The algorithm and software were developed as part of Project Orion. The R language has a package acepack which implements the ACE algorithm. The following example demonstrates its usage:

Discussion The ACE algorithm provides a fully automated method for estimating optimal transformations in multiple regression. It also provides a method for estimating the maximal correlation between random variables. Since the process of iteration usually terminates in a limited number of runs, the time complexity of the algorithm is O(np) where n is the number of samples. The algorithm is reasonably computer efficient. A strong advantage of the ACE procedure is the ability to incorporate variables of quite different types in terms of the set of values they can assume. The transformation functions θ(y),φi(xi) assume values on the real line. Their arguments can, however, assume values on any set. For example, ordered real and unordered categorical variables can be incorporated in the same regression equation. Variables of mixed type are admissible. As a tool for data analysis, the ACE procedure provides graphical output to indicate a need for transformations as well as to guide in their choice. If a particular plot suggests a familiar functional form for a transformation, then the data can be pre-transformed using this functional form and the ACE algorithm can be rerun. Wang suggests that the Box-Cox transform, a parametric approach, is a special case of ACE.

Limitations As with any regression procedure, a high degree of association between predictor variables can sometimes cause the individual transformation estimates to be highly variable, even though the complete model is reasonably stable. When this is suspected, running the algorithm on randomly selected subsets of the data, or on bootstrap samples can assist in assessing the variability. ACE has shown some sensitivity to the order of the predictor variables and extreme outliers. Long tailed distributions can lead to the above mentioned instability. In real world applications one can never be sure that all relevant variables are observed and ACE will always recommend a transform. Thus the recommended transforms can be symptoms of this problem rather than what ACE is trying to solve.

References

This draft contains quotations from Estimating Optimal Transformations For Multiple Regression And Correlation By Leo Breiman And Jerome Freidman. Technical Report No. 9 July 1982, which is in the public domain.

Worked examples

Example 1 — a first encounter with Alternating conditional expectations

Start with the simplest possible case. Write down what Alternating conditional expectations claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Alternating conditional expectations before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Alternating conditional expectations ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Alternating conditional expectations

In research
Alternating conditional expectations appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Alternating conditional expectations in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Alternating conditional expectations is common in secondary-school and first-year university syllabi. It links to neighbouring topics Nonparametric regression, so understanding it makes those chapters shorter.
In everyday life
Look for Alternating conditional expectations outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Alternating conditional expectations” →

How to study Alternating conditional expectations in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Alternating conditional expectations means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Alternating conditional expectations out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Alternating conditional expectations in simple terms?

In statistics, Alternating Conditional Expectations (ACE) is a nonparametric algorithm used in regression analysis to find the optimal transformations for both the outcome (response) variable and the input (predictor) variables. For example, in a model that tries to predict house prices based on si…

Why does Alternating conditional expectations matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Alternating conditional expectations?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Alternating conditional expectations.

Tags

  • Nonparametric regression

Keep exploring