In data analysis transformation is the replacement of a variable by a function of that variable. for example, replacing a variable x by the square root of x or the logarithm of x. In a stronger sense, a transformation is a replacement that changes the shape of a distribution or relationship.