Linear Transformation of Data

Transforming Data
The measure of central tendency and measure of spread could change if we shift or scale the values in a given data set.
Shifting: adding or subtracting the same constant c to every data value
Scaling: multiplying or dividing every data value by the same constant d
Shifting & Scaling: multiplying/dividing every data value by the same constant d and adding/subtracting the same constant c
Example

25, 60, 65
What happens to the data set?

Example

Mean(y+5)=10+5=15Mean(3y)=3y=3(10)=30Mean(3y+5)=3(10)+5=35
Median(y+5)=8+5=13Median(3y)=3y=3(8)=24Median(3y+5)=3(8)+5=29
SD(y+5)=6.325SD(3y)=3y=3(6.325)=18.975SD(3y+5)=3(6.325)=18.975


Linear Transformation
Given a linear equation Y=c+dX where c is the shifting constant and d is the scaling constant, then:
Example
Suppose that a data set has a mean of 8 and a standard deviation of 3. You wish to multiply all of the numbers by 4 and then subtract 3.
Determine the new mean and standard deviation.
We are transforming X→Y
Let X represent the first data set and let Y represent the new data set.
Then Y=4X−3
- New mean: Y=4(8)−3=29
- New standard deviation: sY=4×3=12

Example: Linear Transformation
Jenny is a hairdresser at Swish Salon. She pays the salon a fixed fee of $5,000 to rent a chair (this is subtracted from her profit). In addition, the salon gets 15% of her revenue (which means she keeps 85% of her revenue). Suppose Jenny makes an average of $60,000 in revenue with a standard deviation of $8,000. What is the mean and standard deviation of her profit?
Hint: Profit = Revenue - Costs
Y=profit
X=revenue
c=−5000 (fixed cost, subtracted from profit)
d=0.85 (she keeps 85% of the revenue because the salon gets 15% of the revenue)
Y=0.85X−5000
Mean(profit):
SD(profit):
You are working overseas in Tokyo in as a consultant. Your average annual earning is ¥5,000,000 with a standard deviation of ¥1,500,000. The exchange rate is ¥1 = $0.009 USD. Each year, you must pay your agency a fixed fee of $10,000 USD.
Find the mean and standard deviation of your annual net earnings in US dollars.