Excel for Statistical Analysis Guide
Excel for Statistical Analysis Guide
PRESENTATION
In this Learning Unit, you will become familiar with some resources available in
Excel for statistical analysis. You will learn how to create distribution tables.
frequencies, you will know which graphs are suitable for each type of variable and still you will
familiarize yourself with some statistical tests.
Good studies.
At the end of this Learning Unit, you should present the following learnings:
CHALLENGE
Within statistical analysis, two very important concepts are measures of position and
or of variability. To conduct analyses of quantitative variables, it is possible to calculate, by
through the use of Excel, the measures of position (mean, mode, and median) and measures of variability
(variance and standard deviation).
Many statistical analyses can be done using Excel. One can start with the basics, such as the
generation of tables and graphs, up to inferential statistics, with hypothesis testing.
See in the infographic the step-by-step calculation of the average using this software, being the
Mean is one of the measures of position to summarize numerical data.
BOOK CONTENT
In the chapter Statistical analysis using Excel, from the work Bioestatistics, you will get to know
some tools available in Excel to perform some statistical calculations. You
you will also learn basic tips on how to perform descriptive statistics and parametric tests
non-parametric with the use of Excel.
Good reading.
BIOSTATISTICS
Introduction
It is through a survey of information regarding certain
in the subjects that the statistical data is collected. However, the
The collection of statistical data in isolation is of little use.
In this way, it is important that it is possible to analyze and compare these
data, in order to achieve a completeness of information, what can be done
through the Excel tool, where it is possible to unite the survey
of data with its analysis.
In this chapter, you will learn how to set up a database.
statistician in Excel, how to organize the data correctly to
subsequent statistical analyses, as well as it will build tables and charts
with the help of Excel and will learn about the main tests that can be
carried out in this software.
Statistical data
When we gather information or do some type of
observation and we noted this result, we are collecting statistical data.
When, for example, we fill out an evaluation form for a new student
in a gym, we are collecting some information about this individual
2 Statistical analysis using Excel
duo, and we do this for every new student who starts the activity. The set
this information is what we call statistical data.
But if we leave this data noted on the registration forms, we do not
we will have all the information that these data can provide us. We need,
So, tabulate this data and analyze it with the records of other students;
if this is not done, we will only have isolated records and we will not be able to
we will not be able to verify any trends or make comparisons, such as,
example, analyze the evolution of the students of this academy. To build
a database, we need to organize the variables so that each
the column of the spreadsheet is a variable, and each row of that spreadsheet is a
sample or population unit.
Consider a form containing variables relevant to the physical anamnesis and
some behavioral variables for filling new students
from this gym, considering the quantitative variables of age, weight, height
and the qualitative variables sex, history of pain, diagnosed disease pre-
-existing. Note, in Table 1, that the variables are arranged in each of
of the columns, and each line contains the information of a patient. In the first
line, then, the student is 32 years old, male, weighs 72 kg and is 1.70 m tall,
tem histórico de dores e não tem doença pré-existente.
25 Female 60 155 No No
40 Male 80 190 No No
18 Male 79 185 No No
23 Male 78 180 No No
(Continues)
Statistical analysis using Excel 3
(Continuation)
31 Female 79 165 No No
46 Male 95 180 No No
55 Female 69 155 No No
47 Female 68 157 No No
The data represented this way does not provide us with much information yet.
Imagine if, instead of having this little data, we had a spreadsheet.
with 100 students: we would only have a bunch of numbers and words noted down
and we would not be able to observe any trend. However, this is the way
that the data must be organized so that we can carry out the first
analyses, which we call descriptive analyses.
According to Callegari-Jacques (2007), the description of the variables is indispensable.
as a preliminary step for the proper interpretation of the results of
an investigation, and the methodology used is part of descriptive statistics.
Descriptive analysis is one of the divisions of statistics. In this phase of analysis, it is
the first summary of the data has been made. Descriptive statistics, then, corresponds
the collection, organization, presentation, and summary of data (with diagrams and
graphs or using a summarized numerical value) (DOANE; SEWARD,
2014). Descriptive statistics can be produced in the form of tables.
de distribuição de frequências, em forma de gráficos e em forma de resumos
numerical, such as the mean and standard deviation.
For quantitative variables, we can calculate the measures of position.
(mean, mode, and median) and the measures of variability (variance and standard deviation)
standard) using Excel. For this, we only need the database,
according to Table 1, to start the analyses.
4 Statistical analysis using Excel
mode, which is the most frequent value of the data distribution, we type
“=modo(núm1, núm2,...)”, selecionamos os dados e clicamos ementer. Para
the calculation of the standard deviation, which measures the variability of the data, we type
in the target cell “=stdev.p(num1, num2,…)”, or we click on emfx
and we searched for the word sample standard deviation, one way or another.
After choosing the function, just select the data and press enter. It is
it is important to emphasize that this is the function for calculating the standard deviation
from a sample.
Sexo Frequência %
Female 11 57.9
Male 8 42.1
Total 19 100.0
1 6 10.3
2 8 13.8
3 13 22.4
4 12 20.7
5 10 127,
6 7 12.1
7 2 3.4
Total 58 100.0
155|—160 4 21.1
160|—165 2 10.5
165—170 4 21.1
170|—175 2 10.5
175|—180 1 5.3
180|—185 4 21,1
185—190 2 10.5
Total 19 100,0
In this representation, the symbol of the vertical bar ( | ) indicates that the number
it is contained in the range where the bar is present next to you.
new tab in your spreadsheet, where we can produce all the tables that will be
interesting to be developed.
Com o recurso de tabelas dinâmicas podemos elaborar tabelas de distribui-
simple frequency analysis, as previously presented,
the table of categorical data and the frequency distribution table by
point. In addition to simple tables, the feature also allows for creating tables.
crosswords, as exemplified in Table 5.
History of pains
Female 6 5.0 11
Male 5 3.0 8
Total 11 8 19
The pivot tables bring many features, and you can learn more by watching the
video available on the following link.
[Link]
Now, our focus will be on the simplest graphs, which are part of the
descriptive statistics, the first summary we make with our database
data. There is a large number of charts available, but here, it studies-
Let's remove the basic charts.
After we have the tables ready, we can create the graphs in
Excel. Again, we go to the insert tab and this time we insert charts.
(in this window we have several graphs available).
For the frequency distribution table for categorical data, we can
use pie charts, column charts, and bar charts.
In our example for the data from the sex variable table, we can obtain
the following graph (Figure 4).
10 Statistical analysis using Excel
It is important to know that the pie chart is recommended for use only
for qualitative variables. For the data in our distribution table of
frequencies by points, we can create column or bar charts,
as shown in Figure 5.
Statistical analysis using Excel 11
Figure 7. Histogram.
Learn how to enable the Excel Analysis ToolPak add-in by following the link.
[Link]
As we are testing the average IQ in more than two samples (more than two
types of training), we used the ANOVA test.
Observing the analysis presented, it can be verified that the p-value is significant,
that is, less than 0.05 (significance level of the 5% test). Therefore, we can
reject the null hypothesis that there will always be the hypothesis of equality.
We concluded, then, that there is a difference in the average IQ in at least one of the
levels of training, at a significance level of 5%.
16 Statistical analysis using Excel
Recommended readings
LAPPONI, J. C. Statistics using Excel. 4th ed. Rio de Janeiro: Elsevier, 2005.
SCHMULLER, J. Statistical analysis with Excel: for dummies. 3rd ed. Rio de Janeiro: Alta Books,
2018.
TEACHER'S TIP
There are some features available to be enabled in Excel, including the tools
of conducting parametric statistical tests. An example of these tools is the test
ANOVA, which aims to test more than two means.
See in the Teacher's Tip how to perform an ANOVA test using Excel.
EXERCISES
1) Thinking about developing a series of exercises more aimed at a specific age group.
a personal trainer wants to calculate the average age of his students. To do this,
he will use Excel, with the data already entered in the spreadsheet. What would be the steps
What should he follow?
A) Type equal - type with - open parenthesis - select data from all ages -
close parentheses - press enter.
B) Type equal – type average – open parenthesis – select the data for all ages –
close the parenthesis - type equals.
C) Type equal - type average - open parentheses - select the data from all ages -
close parentheses - type equal.
D) Type average - open parenthesis - select the data for all ages - close
parentheses - type the same.
E) Type equal – type average – open parentheses – select the data for all ages –
close parentheses - press enter.
2) Wishing to verify the variability in the running time of his students, a
The physical education professional decided to evaluate his students by recording the times that
each of them ran in the 200m race. The statistic that measures the variability of the
data is the standard deviation. How would this Physical Education professional do to
calculate the standard deviation of this sample of students in Excel, after entering the data in
spreadsheet?
A) Type equal - type var.a - open parentheses - select the data of all losses of
fat - close parentheses - press enter.
B) Type the same - type medium deviation - open parentheses - select the data of all
fat loss - close parentheses - type the same.
C) Type the same - type desvpad.a - open parentheses - select the data for all losses
of fat - close parentheses - press enter.
D) Type the same - type var.a - open parentheses - select the data for all losses of
fat – close parentheses – type equal.
E) Type desvpad.p - open parenthesis - select the data of all fat losses -
close parenthesis - press enter.
A) The educator can conclude that the test is not significant, since the 3 protocols are
equivalent in terms of weight loss efficiency.
B) The educator can conclude that the test is significant, since the 3 protocols are
equivalents in terms of weight loss efficiency.
C) The educator can conclude that the test is not significant, since there is a difference in at least
less one of the protocols regarding weight loss efficiency.
D) The educator can conclude that the test is significant, since there is a difference in at least
less one of the protocols regarding weight loss efficiency.
E) The educator cannot conclude if the test is significant, since there is no evidence.
sufficient for decision-making.
4) A physical education teacher intends to present to the class council what are the
main modalities that the students from their classes reported as their favorite. The
data is in the table below:
Wishing to create a chart to represent this data, what sequence of steps for
What type of appropriate chart should be generated in Excel?
5) Wishing to better visualize the database of 250 students from a gym, the
the manager intends to create frequency tables for categorical data with the variables
sex, city, and type. What Excel tool should he use to build
but faster these tables?
A) Data analysis.
B) Charts.
C) Pivot table.
E) Page layout.
IN PRACTICE
Many times, in the practice of the professional activity, it is common for some doubts to arise, such as
for example, what is the most effective method for muscle gain or the suspicion that
Men lose weight more easily than women using the same diet, etc. It already exists.
many studies conducted in articles in the area, but it may also be convenient to use a
new technique and test it.
To do this, the professional needs to follow some steps to carry out a study in which they
You want to validate a hypothesis. See, in practice, how one of these tests works.
LEARN MORE
To expand your knowledge on this subject, see below the suggestions from
professor:
Below, see how to apply the ANOVA test and the t-test in Excel.
Using Excel: average, median, mode, standard deviation, variance, maximum and minimum