We Value Your Privacy

We and our partners use technology such as cookies on our site to personalise content and ads, provide social media features, and analyse our traffic. Click below to consent to the use of this technology across the web. You can change your mind and change your consent choices at anytime by returning to this site.

Update Consent
Loading ...

How to Test Linearity in SPSS

Updated April 17, 2017

In many situations, such as prior to performing linear regression analysis, researchers want to test their data for linearity. Linearity means that two variables, "x" and "y," are related by a mathematical equation "y = cx," where "c" is any constant number. The importance of testing for linearity lies in the fact that many statistical methods require an assumption of linearity of data (i.e. the data was sampled from a population that relates the variables of interest in a linear fashion). This means that before using common methods like linear regression, tests for linearity must be performed (otherwise, the linear regression results cannot be accepted). SPSS, a powerful statistical software tool, allows researchers to observe with ease the possibility of the data arriving from a linear population. Through scatterplot testing methods, you can employ SPSS's functions to arrive at a test of linearity.

Loading ...
  1. Input your data into SPSS. You can do this manually, by entering the data in the spreadsheet entitled "data editor" that you initially see upon start-up or by using the "open file" command in the "file" menu to open a SPSS data file. Put each point of data in each row, starting from the top.

  2. Open the scatterplot menu. Go to "graphs" in the menu and choose "scatter." A scatterplot dialogue box will appear.

  3. Choose "simple" in the scatterplot dialogue box.

  4. Construct the scatterplot. Select the variables to test for linearity in the "simple scatterplot" dialogue box. Choose the "x" and "y" variables. For tests of linearity, it does not matter which variables are chosen as "x" and "y," but follow the standard method and let the dependent variable (the variable you have most interest in) be "y." Click on the variable in the left menu and then click on the arrow to the right, pointing to "y axis." Repeat this for the x-variable, choosing the variable in the left menu and clicking on the arrow to the right pointing at "x axis." Create the scatterplot by clicking "okay" in the "simple scatterplot" dialogue box after entering the "x" and "y" variables.

  5. Observe the resulting plot for linearity. Linearity is displayed by the data points being arranged in the shape of an oval. If you observe any other shape to the data, it is most likely that the population from which your data came is not linear in terms of the variables you are analysing. Thus, if you do not observe the oval shape indicative of linearity, your data fail the test of linearity.

Loading ...

About the Author

Having obtained a Master of Science in psychology in East Asia, Damon Verial has been applying his knowledge to related topics since 2010. Having written professionally since 2001, he has been featured in financial publications such as SafeHaven and the McMillian Portfolio. He also runs a financial newsletter at Stock Barometer.

Loading ...