The best Maths tutors available
Poonam
5
5 (68 reviews)
Poonam
£100
/h
Gift icon
1st lesson free!
Paolo
4.9
4.9 (82 reviews)
Paolo
£35
/h
Gift icon
1st lesson free!
Sehaj
4.9
4.9 (60 reviews)
Sehaj
£60
/h
Gift icon
1st lesson free!
Anthony
5
5 (86 reviews)
Anthony
£15
/h
Gift icon
1st lesson free!
Johann
5
5 (59 reviews)
Johann
£50
/h
Gift icon
1st lesson free!
Tomi
5
5 (40 reviews)
Tomi
£85
/h
Gift icon
1st lesson free!
Imad
5
5 (27 reviews)
Imad
£95
/h
Gift icon
1st lesson free!
Harjinder
4.9
4.9 (165 reviews)
Harjinder
£25
/h
Gift icon
1st lesson free!
Poonam
5
5 (68 reviews)
Poonam
£100
/h
Gift icon
1st lesson free!
Paolo
4.9
4.9 (82 reviews)
Paolo
£35
/h
Gift icon
1st lesson free!
Sehaj
4.9
4.9 (60 reviews)
Sehaj
£60
/h
Gift icon
1st lesson free!
Anthony
5
5 (86 reviews)
Anthony
£15
/h
Gift icon
1st lesson free!
Johann
5
5 (59 reviews)
Johann
£50
/h
Gift icon
1st lesson free!
Tomi
5
5 (40 reviews)
Tomi
£85
/h
Gift icon
1st lesson free!
Imad
5
5 (27 reviews)
Imad
£95
/h
Gift icon
1st lesson free!
Harjinder
4.9
4.9 (165 reviews)
Harjinder
£25
/h
Gift icon
1st lesson free!
Let's go

Definition of a Variable

While a variable might sound like a very mathematical term, variables are something that you deal with on a daily basis. The definition of a variable is simply something that you are interested in measuring.
categorical_variable

The image above presents a perfect example of a variable which is the level of satisfaction people feel towards a shampoo product. This variable is measured by asking people o fill in a survey rating their satisfaction level from 1 to 5.

TypeOther NamesDescriptionExample
QuantitativeNumericA variable that deals with quantitiesHeight, number of births, age
QualitativeCategoricalA variable that deals with the qualities of somethingSatisfaction level, colour, gender

Above, you can see the two main types of variables: categorical and numeric type. In our example, the variable is a categorical, or qualitative, variable. Qualitative variables can be broken down further.

TypeDescriptionExample
DummyA categorical variable converted to numbers to be used in analysisGender coded as Female = 1 and Male = 0
NominalA categorical variable whose categories have no predetermined order or scaleEye colour, t-shirt brand
OrdinalA categorical variable whose categories have an order or follow a scaleSatisfaction level, economic status, income level

As you can see in the table above, there are three subtypes within qualitative variables. In addition to this, we must distinguish between the sample and the population. While the population includes all the things, people or places we want to measure - a sample is only a subset of the population.

The example above illustrates that for our example variable, the entire population actually has a satisfaction level of 3.5. However, because it is impossible to measure the variable for our entire population, we get an estimate of 4.1.

population_sample

Analyse Two Numerical Variables

While an analysis using only two variables can seem too simple to reveal anything interesting, this type of analysis is actually the most common one performed. You can learn a lot by focusing in on only two variables. Take a look at the picture below to get a better idea of the type of analysis you can perform.

numerical_relationships

Some of the most common types of statistics you can use to analyse two variables are summarized in the table below with examples.

Statistic MethodDescriptionExample
RegressionBuilding a model where one variable is used to predict the otherA regression model that uses price to predict demand
Correlation CoefficientA measure of the strength of the relationship between two variablesMeasuring the strength of the linear relationship between pizza sales and number of birthday parties
Two Sample t-testComparing the means of the same variable from two populationsComparing the mean test score of two different schools

Regression

A regression model is a statistical model that can be used to examine the relationship between one response variable and one or more explanatory variables.

regression_relationships

In the image above, you can see the number of cars at a state beach plotted by the temperature on the given day. These two numeric variables exhibit a linear relationship, which we can take advantage of in our linear regression model.

regression_formula_componentsexample_regression
1Response VariableVariable we want to studyCars
2ConstantThe constant in our regression modelbo
3Regression coefficientThe change in number of cars with an increase of 1 Cb1
4Explanatory variableThe variable we use to predict the response variableTemperature

Correlation Coefficient

The formula for the correlation coefficient can be seen below.

correlation_coefficient

This statistic measures the strength of the linear relationship between two variables. The image below illustrates how you should interpret this statistic.

correlation_coefficient_interpretation
Continuing with the previous example, take a look at the following scenario.

Correlation coefficientInterpretation
0.3There is a very weak, positive relationship between temperature and number of cars at the beach
0.7There is a strong, positive relationship between temperature and number of cars at the beach

Test on Means

A two sample t-test allows you to compare whether or not the means of two populations are equal or not. This is helpful when you’re trying to test whether or not a certain characteristic is more present in one group over another. The table below has some examples.

1Body temperatureDifference in mean body temperature between a group of men and women
2Heart rateDifference in mean heart rate between a group of professional athletes and non-athletes
3DiseaseDifference in mean disease rate between a group of patients who took a drug versus a placebo

Analyse One Numerical and One Categorical Variable

There is a lot of fun that comes with analysing the relationships between categorical and numeric variables. Check out the table below for some examples.

NumericCategoricalRelationship
Test scoreExtracurricular activitiesDoes the type of extracurricular activity you take part in help predict your test score?
IncomeStudy majorDoes the field you majored in have an association with your income level?

ANOVA

One of the ways you can analyse the relationship between a categorical and numeric variable is to conduct an analysis of variance test, or ANOVA. This test is similar to a two sample t-test, in that it compares the means of groups.

The major difference is that ANOVA compares the means of two or more groups. Take a look at the example below.

ANOVA_example

This example shows the mean house price in each region. The table below shows how to interpret an ANOVA.

Null HypothesisThere is no significant difference between the mean house prices in each region
p > 0.05Fail to reject Ho
p < 0.05Reject Ho

Analyse Two Categorical Variables

One of the ways you can analyse the relationship between two categorical variables is through a two-way table and chi-square test. Take the following table as an example.

FemaleMale
Science Major456350
Literature Major240600
Total696950

Here, we perform a chi-square test, which tests the association between the rows and columns in our 2-way table.

chi_square_statistic

Using the above statistic, we can determine whether or not there is an association between major and gender.

Summarise with AI:

Did you like this article? Rate it!

4.00 (5 rating(s))
Loading...
Emma

Emma

I am passionate about travelling and currently live and work in Paris. I like to spend my time reading, gardening, running, learning languages and exploring new places.