# Statistical test relationship between two variables

### What statistical analysis should I use? Statistical analyses using SPSS Which statistical test should I perform to be sure of the correlation between two variables with small data stes (i.e. 16)?. In a current problem we are trying to. and other things that go bump in the night) A variety of statistical procedures exist . of a t test research question is “Is there a significant difference between the Sometimes we wish to know if there is a relationship between two variables. Correlation is a bivariate analysis that measures the strengths of association between two variables.

We can do this as shown below. The mean of the variable write for this particular sample of students is We would conclude that this group of students has a significantly higher mean on the writing test than One sample median test A one sample median test allows us to test whether a sample median differs significantly from a hypothesized value.

• Lesson 9 - Identifying Relationships Between Two Variables
• ANOVA, Regression, and Chi-Square
• Types of Statistical Tests

We will use the same variable, write, as we did in the one sample t-test example above, but we do not need to assume that it is interval and normally distributed we only need to assume that write is an ordinal variable. Binomial test A one sample binomial test allows us to test whether the proportion of successes on a two-level categorical dependent variable significantly differs from a hypothesized value.

Chi-square goodness of fit A chi-square goodness of fit test allows us to test whether the observed proportions for a categorical variable differ from hypothesized proportions. We want to test whether the observed proportions from our sample differ significantly from these hypothesized proportions. Two independent samples t-test An independent samples t-test is used when you want to compare the means of a normally distributed interval dependent variable for two independent groups.

For example, using the hsb2 data filesay we wish to test whether the mean for write is the same for males and females.

### Types of Statistical Tests | CYFAR

Because the standard deviations for the two groups are similar In other words, females have a statistically significantly higher mean score on writing An overview of statistical tests in SPSS Wilcoxon-Mann-Whitney test The Wilcoxon-Mann-Whitney test is a non-parametric analog to the independent samples t-test and can be used when you do not assume that the dependent variable is a normally distributed interval variable you only assume that the variable is at least ordinal.

We will use the same data file the hsb2 data file and the same variables in this example as we did in the independent t-test example above and will not assume that write, our dependent variable, is normally distributed. Why is the Mann-Whitney significant when the medians are equal? Chi-square test A chi-square test is used when you want to see if there is a relationship between two categorical variables. In SPSS, the chisq option is used on the statistics subcommand of the crosstabs command to obtain the test statistic and its associated p-value. Remember that the chi-square test assumes that the expected value for each cell is five or higher.

## What statistical analysis should I use? Statistical analyses using SPSS

This assumption is easily met in the examples below. The point of this example is that one or both variables may have more than two levels, and that the variables do not have to have the same number of levels. We will use the same variable, write, as we did in the one sample t-test example above, but we do not need to assume that it is interval and normally distributed we only need to assume that write is an ordinal variable and that its distribution is symmetric.

We will test whether the median writing score write differs significantly from See also Stata Code Fragment: Descriptives, ttests, Anova and Regression Binomial test A one sample binomial test allows us to test whether the proportion of successes on a two-level categorical dependent variable significantly differs from a hypothesized value.

See also Chi-square goodness of fit A chi-square goodness of fit test allows us to test whether the observed proportions for a categorical variable differ from hypothesized proportions. We want to test whether the observed proportions from our sample differ significantly from these hypothesized proportions. To conduct the chi-square goodness of fit test, you need to first download the csgof program that performs this test. You can download csgof from within Stata by typing search csgof see How can I used the search command to search for programs and get additional help? Now that the csgof program is installed, we can use it by typing: See also Useful Stata Programs Two independent samples t-test An independent samples t-test is used when you want to compare the means of a normally distributed interval dependent variable for two independent groups.

For example, using the hsb2 data filesay we wish to test whether the mean for write is the same for males and females. In other words, females have a statistically significantly higher mean score on writing Analyzing Data Wilcoxon-Mann-Whitney test The Wilcoxon-Mann-Whitney test is a non-parametric analog to the independent samples t-test and can be used when you do not assume that the dependent variable is a normally distributed interval variable you only assume that the variable is at least ordinal. You will notice that the Stata syntax for the Wilcoxon-Mann-Whitney test is almost identical to that of the independent samples t-test. We will use the same data file the hsb2 data file and the same variables in this example as we did in the independent t-test example above and will not assume that write, our dependent variable, is normally distributed. You can determine which group has the higher rank by looking at the how the actual rank sums compare to the expected rank sums under the null hypothesis. The sum of the female ranks was higher while the sum of the male ranks was lower.

Thus the female group had higher rank. Analyzing Data Chi-square test A chi-square test is used when you want to see if there is a relationship between two categorical variables. In Stata, the chi2 option is used with the tabulate command to obtain the test statistic and its associated p-value.