You are on page 1of 6

ABT20803: BIOSTATISTIK

TUTORIAL TASK 1
NAME: SITI NUR ADILAH BINTI MD RASID (059110)
WAN NUR ATHIRAH BINTI ABDUL HANINI (059579)
EVALUATOR: SIR MOHD TARMIZAN BIN IBRAHIM

REPORT: HOW TO PLOT A HISTOGRAM FOR RATIO DATA


BY USING MICROSOFT EXCEL

The following sample data represents heights (in cm) of 40 students in Statistic Class.

159 163 165 165 166 169 170 173


160 163 165 165 167 170 171 174
161 164 165 165 167 170 171 174
162 164 165 165 168 170 172 175
162 164 165 166 168 170 172 177

Table 1: Data of heights (in cm) of 40 students in Statistic Class

Table 2: Frequency Distribution of the heights (in cm) of 40 students in Statistic Class (N = 40)
Heights/cm Frequency Cumulative Frequency Relative Cumulative Frequency
(%) (CF/N*100)
155-159 1 1 2.5
159-163 6 7 17.5
163-167 16 23 57.5
167-171 10 33 82.5
171-175 6 39 97.5
175-179 1 40 100
(Woodbury, G., 2002)
1.0 Introduction

2.0 Steps to activate the ‘Data Analysis’ command

Steps on how to activate Data Analysis command in Excel if it is not available in your version of Excel, you
need to load the Analysis ToolPak add-inprogram. The instructions follow as below:

STEP 1 STEP 2 STEP 3

Click the
File tab

Click the Add-ins


Click Options category
STEP 4 STEP 5

In the Manage box, select Excel


Add-ins then click Go. In the Add-Ins available
box, select the both
Analysis ToolPak check box,
and then click OK.

STEP 6: Click Data to view the Data Analysis Tools at the home tab.

3.0 Steps to plot the Histogram in Ms Excel.

Step 1: Find upper limit for each interval. Step 2: Go to Data, click the Data Analysis Tools and
select Histogram. Then, click OK

Step 3: Click the Input Range arrow ↑ and select all of the raw data.

Step 4: Click the Bin Range ↑ arrow and select the Upper Limit values.
Step 5: Select the Output Range, click chart output. Then, click OK.

Replace the ‘Bin’ colomn


with ‘Interval’ column

Delete the
unnecessary
rows.

Step 6: To adjust the space between the histogram chart, Right-click on any of the coloured bars. Select
‘Format Data Point’. Then, adjust the ‘Gap Width’ until 0%.

By clicking double right click,


we are able to edit the data.

To change the colour of the histogram,


double right click on the bars and
select ‘Fill and Line’
3.1 Steps to plot the Histogram (percentage) in Ms Excel.

1. Copy and paste the same 2. Clicking double right click.


graft. Then edit the data.

4.0 Determine the skewness of histogram using Ms Excel

Select a blank cell for locating the result. Type ‘=SKEW’ at the cell. Then, select the whole raw data and press
enter. Skewness value obtained.

5.0
Summary of histogram data
6.0 Reference

Woodbury, G. (2002). An introduction to statistics

You might also like