M.
Sellu FBC USL 2019
STAT 315 (3 CREDITS)
COMPUTER APPLICATIONS AND PROGRAMMING IN STATISTICS
CONTENT
Introduction to Computer applications’ packages (word processing, excel, power point
applications).
Working with word processing
Working with excel application
Working with power point application.
Working with SPSS Package
1
M.Sellu FBC USL 2019
Introduction to Computer Application –MS Excel Application.
Using a spreadsheet
A spreadsheet is a computer program used to manipulate data and carry out calculations, or chains of
calculations.
The information in a spreadsheet is stored in a rectangular array of cell. The content of each cell can be a
number, text or formula. The power of a spreadsheet is that a cell’s numeric value can be linked to the
content of one cell as the sum of the contents of two other cells. Furthermore, if the value of a cell is
changed anywhere in the spreadsheet, all values dependent on it are recalculated and the new values are
displayed immediately.
The usual mathematical symbols of +, -, *(for x) , /(for ) and ^ (for raising to a power). Parentheses are
used in the usual fashion as grouping symbols.
2.1.12 Spreadsheets
Electronic spreadsheets provide extensive graphing capabilities and their use is widespread. Because
Microsoft products are the most widely used software products on a PC, all the examples will be based on
the Microsoft spreadsheet for 2007. It is expected that all later versions of excel will support the handling
characteristics of earlier versions with only a few minor changes.
2
M.Sellu FBC USL 2019
Rows and Columns
Every electronic spreadsheet consists of a collection of cells arranged in a rectangular array of columns
and rows. To enable the identification of individual cells each cell has an address given by the column
label followed by a row label. In excel spreadsheet the columns are labeled alphabetically from A
onwards and the row are numbered from 1 onwards. So that the address with address H125 is on the H(8th
) column of the 125 row as shown below.
At any time one particular cell boundary is highlighted with a cursor and this cell is called the active cell
2.1.14 Text and number entry
Every cell on the spreadsheet is capable of having numbers or text entered into it via the keyboard. Make
the cell with the address B10 the active cell and type in the text:
Barth and then press Enter
Now make cell B15 the active cell and type in the number 12 followed by Enter
3
M.Sellu FBC USL 2019
2.1.15 Formulas
As well as text and numbers, each cell is capable of containing a formula. In an excel spreadsheet every
formula begins with the = (equal) sign when it is being entered at the keyboard. Move the cursor to cell
B16 and enter at the keyboard: =5*B15 followed by Enter. The * represents multiplication (x) and the
formula states that the contents of cell B16 will be five times the contents of cell B15
4
M.Sellu FBC USL 2019
2.1.16 Clearing entries
To clear an entry, point and click at the cell to be cleared. This makes it the active cell. Click the Home
menu to reveal a dropdown menu. Select from this menu the option Clear to reveal a further drop-down
menu. In this second menu select All and the cell contents are then cleared as indicated below.
5
M.Sellu FBC USL 2019
Now make sure that all entries on the spreadsheet have been cleared because we want to use spreadsheet
to construct a graph.
Construction of a Cartesian graph
Follow these instructions to plot the graph of y x 2 3
Enter the number 3 in A1
Highlight the cell A1 to A7 by pointing at A1, holding down the mouse button, dragging the pointer to A7
and then releasing the mouse button (all the cells from A2 to A7 turn black to indicate that they have been
selected)
Select the Fill – Series commands from the command Bar as shown below:
Now in the series window change the Step value to 1 and click OK button as depicted below.
6
M.Sellu FBC USL 2019
Cell A2 to A7 fill with single place decimals ranging from 3 to 3 with step value intervals of 1.
These are the x values , where 3 x 3 is the x intervals as shown below.
In cell B1, type in the formula =A1^2-3 and then press Enter. The number 6 appears in cell B1 – that is (9
-3 = 6) where -3 is the content of A1.
Activate cell B2 and select the Edit-Copy commands
Highlight cells B2 to B7 and select Edit-Paste commands
Cells B2 to B7 fill with numbers, each being the number in the adjoining cell minus 3.
You have just copied the formula in B1into the cells B2 to B7. These are the corresponding y values
7
M.Sellu FBC USL 2019
Now highlight the two columns of numbers – cell A1: B7
Click the Chart Wizard button from the Insert Menu
The Chart Wizard appeared, requesting a choice of chart type:
Click XY (Scatter) to reveal a further choice of type of XY Scatter charts.
Click the type in the top right-hand corner to select it (scatter with data points connected by smooth lines
without markers) as indicated below:
8
M.Sellu FBC USL 2019
y =x^2 -3
7
6
5
4
3
2
1
0
-4 -3 -2 -1 0 1 2 3 4
-1
-2
-3
-4
Now produce the graphs of the following equations:
a. y 6 x x 2 in the interval 3 x 3 step value 0.5
b. y ( x 2) 3 in the interval 1 x 5 step value 0.3
c. y x 3 6x 2 11x 6 in the interval 1 x 5 step value 0.3
d. y 2x e 2 x in the interval 1 x 3 step value 0.3
9
M.Sellu FBC USL 2019
Random numbers
10
M.Sellu FBC USL 2019
11
M.Sellu FBC USL 2019
12
M.Sellu FBC USL 2019
13
M.Sellu FBC USL 2019
14
M.Sellu FBC USL 2019
15
M.Sellu FBC USL 2019
Listing
16