SlideShare a Scribd company logo
1 of 35
Computing Transformations Transforming variables Transformations for normality Transformations for linearity
Transformations: Transforming variables to satisfy assumptions ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Transformations change the measurement scale In the diagram to the right, the values of 5 through 20 are plotted on the different scales used in the transformations.  These scales would be used in plotting the horizontal axis of the histogram depicting the distribution.  When comparing values measured on the decimal scale to which we are accustomed, we see that each transformation changes the distance between the benchmark measurements. All of the transformations increase the distance between small values and decrease the distance between large values.  This has the effect of moving the positively skewed values to the left, reducing the effect of the skewing and producing a distribution that more closely resembles a normal distribution.
Transformations: Computing transformations in SPSS ,[object Object],[object Object]
Transformations: Two forms for computing transformations ,[object Object],[object Object],[object Object]
Transformations: Functions and formulas for transformations ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Transformations: Transformation of positively skewed variables ,[object Object],[object Object],[object Object]
Transformations: Example of positively skewed variable ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Transformations: Transformation of negatively skewed variables ,[object Object],[object Object],[object Object]
Transformations: Example of negatively skewed variable ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Transformations: The Square Transformation for Linearity ,[object Object],[object Object],[object Object]
Transformations: Example of the square transformation ,[object Object],[object Object],[object Object],[object Object]
Transformations: Transformations for normality Both the histogram and the normality plot for  Total Time Spent on the Internet  (netime) indicate that the variable is not normally distributed.
Transformations: Determine whether reflection is required Skewness, in the table of Descriptive Statistics, indicates whether or not reflection (reversing the values) is required in the transformation. If Skewness is positive, as it is in this problem, reflection is not required.  If Skewness is negative, reflection is required.
Transformations: Compute the adjustment to the argument In this problem, the minimum value is 0, so 1 will be added to each value in the formula, i.e. the argument to the SPSS functions and formula for the inverse will be:  netime + 1.
Transformations: Computing the logarithmic transformation To compute the transformation, select the  Compute … command from the  Transform  menu.
Transformations: Specifying the transform variable name and function First , in the  Target Variable  text box, type a name for the log transformation variable, e.g.  “lgnetime“.  Second , scroll down the list of functions to find LG10, which calculates logarithmic values use a base of 10.  (The logarithmic values are the power to which 10 is raised to produce the original number.) Third , click on the up arrow button to move the highlighted function to the Numeric Expression text box.
Transformations: Adding the variable name to the function First , scroll down the list of variables to locate the variable we want to transform.  Click on its name so that it is highlighted. Second , click on the right arrow button.  SPSS will replace the highlighted text in the function (?) with the name of the variable.
Transformations: Adding the constant to the function Following the rules stated for determining the constant that needs to be included in the function either to prevent mathematical errors, or to do reflection, we include the constant in the function argument.  In this case, we add 1 to the netime variable. Click on the OK button to complete the compute request.
Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
Transformations: Computing the square root transformation To compute the transformation, select the  Compute … command from the  Transform  menu.
Transformations: Specifying the transform variable name and function First , in the  Target Variable  text box, type a name for the square root transformation variable, e.g.  “sqnetime“.  Second , scroll down the list of functions to find SQRT, which calculates the square root of a variable.  Third , click on the up arrow button to move the highlighted function to the Numeric Expression text box.
Transformations: Adding the variable name to the function Second , click on the right arrow button.  SPSS will replace the highlighted text in the function (?) with the name of the variable. First , scroll down the list of variables to locate the variable we want to transform.  Click on its name so that it is highlighted.
Transformations: Adding the constant to the function Following the rules stated for determining the constant that needs to be included in the function either to prevent mathematical errors, or to do reflection, we include the constant in the function argument.  In this case, we add 1 to the netime variable. Click on the OK button to complete the compute request.
Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
Transformations: Computing the inverse transformation To compute the transformation, select the  Compute … command from the  Transform  menu.
Transformations: Specifying the transform variable name and formula First , in the  Target Variable  text box, type a name for the inverse transformation variable, e.g.  “innetime“.  Second , there is not a function for computing the inverse, so we type the formula directly into the  Numeric Expression  text box. Third , click on the  OK  button to complete the compute request.
Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
Transformations: Adjustment to the argument for the square transformation In this problem, the minimum value is 0, no adjustment is needed for computing the square.  If the minimum was a number less than zero, we would add the absolute value of the minimum (dropping the sign) as an adjustment to the variable. It is mathematically correct to square a value of zero, so the adjustment to the argument for the square transformation is different.  What we need to avoid are negative numbers, since the square of a negative number produces the same value as the square of a positive number.
Transformations: Computing the square transformation To compute the transformation, select the  Compute … command from the  Transform  menu.
Transformations: Specifying the transform variable name and formula First , in the  Target Variable  text box, type a name for the inverse transformation variable, e.g.  “s2netime“.  Second , there is not a function for computing the square, so we type the formula directly into the  Numeric Expression  text box. Third , click on the  OK  button to complete the compute request.
Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
Using the script to compute transformations When the script tests assumptions, it will create the transformations that are checked. If you want to retain the transformed variable to use in an analysis, clear the checkbox that tells the script to delete the transformed variables it created.
The transformed variables The transformed variables are added to the data editor. The variable names attempt to identify the transformation in the variable name. The variable labels fully identify the transformation, including the function and formula used to compute it.
Which transformation to use The recommendation of which transform to use is often summarized in a pictorial chart like the above.  In practice, it is difficult to determine which distribution is most like your variable. It is often more efficient to compute all transformations and examine the statistical properties of each.

More Related Content

What's hot

Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
Elkana Rorio
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
SHHUSSAIN
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
Harsh Upadhyay
 
Exploring bivariate data
Exploring bivariate dataExploring bivariate data
Exploring bivariate data
Ulster BOCES
 

What's hot (19)

Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Regression with Time Series Data
Regression with Time Series DataRegression with Time Series Data
Regression with Time Series Data
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
Multiple Linear Regression
Multiple Linear Regression Multiple Linear Regression
Multiple Linear Regression
 
Simple linear regression
Simple linear regression Simple linear regression
Simple linear regression
 
Applications of regression analysis - Measurement of validity of relationship
Applications of regression analysis - Measurement of validity of relationshipApplications of regression analysis - Measurement of validity of relationship
Applications of regression analysis - Measurement of validity of relationship
 
Regression analysis made easy
Regression analysis made easyRegression analysis made easy
Regression analysis made easy
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Introduction to Regression Analysis and R
Introduction to Regression Analysis and R   Introduction to Regression Analysis and R
Introduction to Regression Analysis and R
 
Regression analysis in R
Regression analysis in RRegression analysis in R
Regression analysis in R
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Research Methodology Module-06
Research Methodology Module-06Research Methodology Module-06
Research Methodology Module-06
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
 
Exploring bivariate data
Exploring bivariate dataExploring bivariate data
Exploring bivariate data
 
Regression & correlation coefficient
Regression & correlation coefficientRegression & correlation coefficient
Regression & correlation coefficient
 
Regression
RegressionRegression
Regression
 

Viewers also liked

8.4 logarithmic functions
8.4 logarithmic functions8.4 logarithmic functions
8.4 logarithmic functions
hisema01
 
2.3 stem and leaf displays
2.3 stem and leaf displays2.3 stem and leaf displays
2.3 stem and leaf displays
leblance
 
Binomial Distribution
Binomial DistributionBinomial Distribution
Binomial Distribution
arm74
 
Using Spss Compute (Another Method)
Using Spss   Compute (Another Method)Using Spss   Compute (Another Method)
Using Spss Compute (Another Method)
Dr Ali Yusob Md Zain
 
Poisson distribution assign
Poisson distribution assignPoisson distribution assign
Poisson distribution assign
Abdul Kader
 
Using Spss Transforming Variable - Compute
Using Spss Transforming Variable - ComputeUsing Spss Transforming Variable - Compute
Using Spss Transforming Variable - Compute
Dr Ali Yusob Md Zain
 
Binomial probability distribution
Binomial probability distributionBinomial probability distribution
Binomial probability distribution
Muhammad Yahaya
 
Probability Concepts Applications
Probability Concepts  ApplicationsProbability Concepts  Applications
Probability Concepts Applications
guest44b78
 

Viewers also liked (20)

8.4 logarithmic functions
8.4 logarithmic functions8.4 logarithmic functions
8.4 logarithmic functions
 
Logarithmic functions (2)
Logarithmic functions (2)Logarithmic functions (2)
Logarithmic functions (2)
 
linear transformation
linear transformationlinear transformation
linear transformation
 
2.3 stem and leaf displays
2.3 stem and leaf displays2.3 stem and leaf displays
2.3 stem and leaf displays
 
Poisson lecture
Poisson lecturePoisson lecture
Poisson lecture
 
Poisson distribution
Poisson distributionPoisson distribution
Poisson distribution
 
Binomial Distribution
Binomial DistributionBinomial Distribution
Binomial Distribution
 
Transformation of random variables
Transformation of random variablesTransformation of random variables
Transformation of random variables
 
Using Spss Compute (Another Method)
Using Spss   Compute (Another Method)Using Spss   Compute (Another Method)
Using Spss Compute (Another Method)
 
Poisson distribution assign
Poisson distribution assignPoisson distribution assign
Poisson distribution assign
 
Poission distribution
Poission distributionPoission distribution
Poission distribution
 
Linear transformation and application
Linear transformation and applicationLinear transformation and application
Linear transformation and application
 
Using Spss Transforming Variable - Compute
Using Spss Transforming Variable - ComputeUsing Spss Transforming Variable - Compute
Using Spss Transforming Variable - Compute
 
Linear Transformations
Linear TransformationsLinear Transformations
Linear Transformations
 
Linear transformation.ppt
Linear transformation.pptLinear transformation.ppt
Linear transformation.ppt
 
Binomial probability distribution
Binomial probability distributionBinomial probability distribution
Binomial probability distribution
 
Probability Concepts Applications
Probability Concepts  ApplicationsProbability Concepts  Applications
Probability Concepts Applications
 
Poisson distribution
Poisson distributionPoisson distribution
Poisson distribution
 
Types of graphs used in medicine
Types of graphs used in medicineTypes of graphs used in medicine
Types of graphs used in medicine
 
Stem and-leaf-diagram-ppt.-dfs
Stem and-leaf-diagram-ppt.-dfsStem and-leaf-diagram-ppt.-dfs
Stem and-leaf-diagram-ppt.-dfs
 

Similar to Computing Transformations Spring2005

BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx
  BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx  BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx
BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx
ShiraPrater50
 
Week 4 Lecture 12 Significance Earlier we discussed co.docx
Week 4 Lecture 12 Significance Earlier we discussed co.docxWeek 4 Lecture 12 Significance Earlier we discussed co.docx
Week 4 Lecture 12 Significance Earlier we discussed co.docx
cockekeshia
 
Predicting US house prices using Multiple Linear Regression in R
Predicting US house prices using Multiple Linear Regression in RPredicting US house prices using Multiple Linear Regression in R
Predicting US house prices using Multiple Linear Regression in R
Sotiris Baratsas
 
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docxFSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
budbarber38650
 
Building a Regression Model using SPSS
Building a Regression Model using SPSSBuilding a Regression Model using SPSS
Building a Regression Model using SPSS
Zac Bodner
 

Similar to Computing Transformations Spring2005 (20)

Data Transformation
Data TransformationData Transformation
Data Transformation
 
BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx
  BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx  BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx
BUS 308 Week 4 Lecture 3 Developing Relationships in Exc.docx
 
Week 4 Lecture 12 Significance Earlier we discussed co.docx
Week 4 Lecture 12 Significance Earlier we discussed co.docxWeek 4 Lecture 12 Significance Earlier we discussed co.docx
Week 4 Lecture 12 Significance Earlier we discussed co.docx
 
Bootcamp of new world to taken seriously
Bootcamp of new world to taken seriouslyBootcamp of new world to taken seriously
Bootcamp of new world to taken seriously
 
Machine learning session4(linear regression)
Machine learning   session4(linear regression)Machine learning   session4(linear regression)
Machine learning session4(linear regression)
 
Predicting US house prices using Multiple Linear Regression in R
Predicting US house prices using Multiple Linear Regression in RPredicting US house prices using Multiple Linear Regression in R
Predicting US house prices using Multiple Linear Regression in R
 
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docxFSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
FSE 200AdkinsPage 1 of 10Simple Linear Regression Corr.docx
 
A Systematic Approach To Probabilistic Pointer Analysis
A Systematic Approach To Probabilistic Pointer AnalysisA Systematic Approach To Probabilistic Pointer Analysis
A Systematic Approach To Probabilistic Pointer Analysis
 
Assignment 01
Assignment 01Assignment 01
Assignment 01
 
Assignment 01
Assignment 01Assignment 01
Assignment 01
 
Machine learning
Machine learningMachine learning
Machine learning
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
Linear logisticregression
Linear logisticregressionLinear logisticregression
Linear logisticregression
 
chapter 2 post optimality.pptx
chapter 2 post optimality.pptxchapter 2 post optimality.pptx
chapter 2 post optimality.pptx
 
01 algebra
01 algebra01 algebra
01 algebra
 
working with python
working with pythonworking with python
working with python
 
Building a Regression Model using SPSS
Building a Regression Model using SPSSBuilding a Regression Model using SPSS
Building a Regression Model using SPSS
 
Simplex Algorithm
Simplex AlgorithmSimplex Algorithm
Simplex Algorithm
 
Mba Ebooks ! Edhole
Mba Ebooks ! EdholeMba Ebooks ! Edhole
Mba Ebooks ! Edhole
 
Python_Module_2.pdf
Python_Module_2.pdfPython_Module_2.pdf
Python_Module_2.pdf
 

More from guest5989655

Taxonomia Aptitudinilor Fleishman
Taxonomia Aptitudinilor  FleishmanTaxonomia Aptitudinilor  Fleishman
Taxonomia Aptitudinilor Fleishman
guest5989655
 
Profile Si Selectia De Personal
Profile Si Selectia De PersonalProfile Si Selectia De Personal
Profile Si Selectia De Personal
guest5989655
 
Curs Master Muncii 1
Curs Master Muncii 1Curs Master Muncii 1
Curs Master Muncii 1
guest5989655
 
Metoda Observatiei
Metoda ObservatieiMetoda Observatiei
Metoda Observatiei
guest5989655
 
Tulburarile Nevrotice, Tulburarile Legate De Stres Si
Tulburarile Nevrotice, Tulburarile Legate De Stres SiTulburarile Nevrotice, Tulburarile Legate De Stres Si
Tulburarile Nevrotice, Tulburarile Legate De Stres Si
guest5989655
 
Tulburarile Fobice
Tulburarile FobiceTulburarile Fobice
Tulburarile Fobice
guest5989655
 
Tulburarile De Personalitate
Tulburarile De PersonalitateTulburarile De Personalitate
Tulburarile De Personalitate
guest5989655
 
Tulburari De Personalitate
Tulburari De PersonalitateTulburari De Personalitate
Tulburari De Personalitate
guest5989655
 
Tulburarea Obsesiv Compulsiva
Tulburarea Obsesiv CompulsivaTulburarea Obsesiv Compulsiva
Tulburarea Obsesiv Compulsiva
guest5989655
 
Tulburarea De Stres Posttraumatica
Tulburarea De Stres PosttraumaticaTulburarea De Stres Posttraumatica
Tulburarea De Stres Posttraumatica
guest5989655
 
Tulburarea De Panica
Tulburarea De PanicaTulburarea De Panica
Tulburarea De Panica
guest5989655
 
Satisfactia Muncii
Satisfactia MunciiSatisfactia Muncii
Satisfactia Muncii
guest5989655
 
Religie şI Schimbare Socială.
Religie şI Schimbare Socială.Religie şI Schimbare Socială.
Religie şI Schimbare Socială.
guest5989655
 
Psihostimulante Curs Dorin
Psihostimulante Curs DorinPsihostimulante Curs Dorin
Psihostimulante Curs Dorin
guest5989655
 
Psihologia Martorului şI MăRturiei
Psihologia Martorului şI MăRturieiPsihologia Martorului şI MăRturiei
Psihologia Martorului şI MăRturiei
guest5989655
 

More from guest5989655 (20)

Taxonomia Aptitudinilor Fleishman
Taxonomia Aptitudinilor  FleishmanTaxonomia Aptitudinilor  Fleishman
Taxonomia Aptitudinilor Fleishman
 
Profile Si Selectia De Personal
Profile Si Selectia De PersonalProfile Si Selectia De Personal
Profile Si Selectia De Personal
 
Curs Master Muncii 1
Curs Master Muncii 1Curs Master Muncii 1
Curs Master Muncii 1
 
Metoda Observatiei
Metoda ObservatieiMetoda Observatiei
Metoda Observatiei
 
Tulburarile Nevrotice, Tulburarile Legate De Stres Si
Tulburarile Nevrotice, Tulburarile Legate De Stres SiTulburarile Nevrotice, Tulburarile Legate De Stres Si
Tulburarile Nevrotice, Tulburarile Legate De Stres Si
 
Tulburarile Fobice
Tulburarile FobiceTulburarile Fobice
Tulburarile Fobice
 
Tulburarile De Personalitate
Tulburarile De PersonalitateTulburarile De Personalitate
Tulburarile De Personalitate
 
Tulburari De Personalitate
Tulburari De PersonalitateTulburari De Personalitate
Tulburari De Personalitate
 
Tulburarea Obsesiv Compulsiva
Tulburarea Obsesiv CompulsivaTulburarea Obsesiv Compulsiva
Tulburarea Obsesiv Compulsiva
 
Tulburarea De Stres Posttraumatica
Tulburarea De Stres PosttraumaticaTulburarea De Stres Posttraumatica
Tulburarea De Stres Posttraumatica
 
Tulburarea De Panica
Tulburarea De PanicaTulburarea De Panica
Tulburarea De Panica
 
Tpsihoticestd
TpsihoticestdTpsihoticestd
Tpsihoticestd
 
Toxicostd
ToxicostdToxicostd
Toxicostd
 
S Kstd
S KstdS Kstd
S Kstd
 
Satisfactia Muncii
Satisfactia MunciiSatisfactia Muncii
Satisfactia Muncii
 
Religie şI Schimbare Socială.
Religie şI Schimbare Socială.Religie şI Schimbare Socială.
Religie şI Schimbare Socială.
 
Psihostimulante Curs Dorin
Psihostimulante Curs DorinPsihostimulante Curs Dorin
Psihostimulante Curs Dorin
 
Psihozestd[1]
Psihozestd[1]Psihozestd[1]
Psihozestd[1]
 
Psihopatologie
PsihopatologiePsihopatologie
Psihopatologie
 
Psihologia Martorului şI MăRturiei
Psihologia Martorului şI MăRturieiPsihologia Martorului şI MăRturiei
Psihologia Martorului şI MăRturiei
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Computing Transformations Spring2005

  • 1. Computing Transformations Transforming variables Transformations for normality Transformations for linearity
  • 2.
  • 3. Transformations change the measurement scale In the diagram to the right, the values of 5 through 20 are plotted on the different scales used in the transformations. These scales would be used in plotting the horizontal axis of the histogram depicting the distribution. When comparing values measured on the decimal scale to which we are accustomed, we see that each transformation changes the distance between the benchmark measurements. All of the transformations increase the distance between small values and decrease the distance between large values. This has the effect of moving the positively skewed values to the left, reducing the effect of the skewing and producing a distribution that more closely resembles a normal distribution.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Transformations: Transformations for normality Both the histogram and the normality plot for Total Time Spent on the Internet (netime) indicate that the variable is not normally distributed.
  • 14. Transformations: Determine whether reflection is required Skewness, in the table of Descriptive Statistics, indicates whether or not reflection (reversing the values) is required in the transformation. If Skewness is positive, as it is in this problem, reflection is not required. If Skewness is negative, reflection is required.
  • 15. Transformations: Compute the adjustment to the argument In this problem, the minimum value is 0, so 1 will be added to each value in the formula, i.e. the argument to the SPSS functions and formula for the inverse will be: netime + 1.
  • 16. Transformations: Computing the logarithmic transformation To compute the transformation, select the Compute … command from the Transform menu.
  • 17. Transformations: Specifying the transform variable name and function First , in the Target Variable text box, type a name for the log transformation variable, e.g. “lgnetime“. Second , scroll down the list of functions to find LG10, which calculates logarithmic values use a base of 10. (The logarithmic values are the power to which 10 is raised to produce the original number.) Third , click on the up arrow button to move the highlighted function to the Numeric Expression text box.
  • 18. Transformations: Adding the variable name to the function First , scroll down the list of variables to locate the variable we want to transform. Click on its name so that it is highlighted. Second , click on the right arrow button. SPSS will replace the highlighted text in the function (?) with the name of the variable.
  • 19. Transformations: Adding the constant to the function Following the rules stated for determining the constant that needs to be included in the function either to prevent mathematical errors, or to do reflection, we include the constant in the function argument. In this case, we add 1 to the netime variable. Click on the OK button to complete the compute request.
  • 20. Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
  • 21. Transformations: Computing the square root transformation To compute the transformation, select the Compute … command from the Transform menu.
  • 22. Transformations: Specifying the transform variable name and function First , in the Target Variable text box, type a name for the square root transformation variable, e.g. “sqnetime“. Second , scroll down the list of functions to find SQRT, which calculates the square root of a variable. Third , click on the up arrow button to move the highlighted function to the Numeric Expression text box.
  • 23. Transformations: Adding the variable name to the function Second , click on the right arrow button. SPSS will replace the highlighted text in the function (?) with the name of the variable. First , scroll down the list of variables to locate the variable we want to transform. Click on its name so that it is highlighted.
  • 24. Transformations: Adding the constant to the function Following the rules stated for determining the constant that needs to be included in the function either to prevent mathematical errors, or to do reflection, we include the constant in the function argument. In this case, we add 1 to the netime variable. Click on the OK button to complete the compute request.
  • 25. Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
  • 26. Transformations: Computing the inverse transformation To compute the transformation, select the Compute … command from the Transform menu.
  • 27. Transformations: Specifying the transform variable name and formula First , in the Target Variable text box, type a name for the inverse transformation variable, e.g. “innetime“. Second , there is not a function for computing the inverse, so we type the formula directly into the Numeric Expression text box. Third , click on the OK button to complete the compute request.
  • 28. Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
  • 29. Transformations: Adjustment to the argument for the square transformation In this problem, the minimum value is 0, no adjustment is needed for computing the square. If the minimum was a number less than zero, we would add the absolute value of the minimum (dropping the sign) as an adjustment to the variable. It is mathematically correct to square a value of zero, so the adjustment to the argument for the square transformation is different. What we need to avoid are negative numbers, since the square of a negative number produces the same value as the square of a positive number.
  • 30. Transformations: Computing the square transformation To compute the transformation, select the Compute … command from the Transform menu.
  • 31. Transformations: Specifying the transform variable name and formula First , in the Target Variable text box, type a name for the inverse transformation variable, e.g. “s2netime“. Second , there is not a function for computing the square, so we type the formula directly into the Numeric Expression text box. Third , click on the OK button to complete the compute request.
  • 32. Transformations: The transformed variable The transformed variable which we requested SPSS compute is shown in the data editor in a column to the right of the other variables in the dataset.
  • 33. Using the script to compute transformations When the script tests assumptions, it will create the transformations that are checked. If you want to retain the transformed variable to use in an analysis, clear the checkbox that tells the script to delete the transformed variables it created.
  • 34. The transformed variables The transformed variables are added to the data editor. The variable names attempt to identify the transformation in the variable name. The variable labels fully identify the transformation, including the function and formula used to compute it.
  • 35. Which transformation to use The recommendation of which transform to use is often summarized in a pictorial chart like the above. In practice, it is difficult to determine which distribution is most like your variable. It is often more efficient to compute all transformations and examine the statistical properties of each.