checking data. why do errors happen? computers do not make mistakes. however if incorrect data is...

31
Checking data

Upload: vernon-anderson

Post on 31-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Checking data

Page 2: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Why do errors happen?

Computers do not make mistakes. However if incorrect data is put in

errors happen. In ICT this is called GIGO – Garbage

in, garbage out! The way to avoid incorrect data

being entered is to check it thoroughly.

Page 3: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Why do errors happen?

There are two main methods of avoiding errors.

These are:VerificationValidation

Page 4: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Verification

Verification is the process of checking data.

This can be done visually (e.g. by comparing what is on a data capture sheet with what is on screen or with a print out of the data that has been entered).

This has the disadvantage that the data on the data capture sheet may be incorrect, and a visual check will not spot this.

Page 5: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Verification

This can be done by double data entry (i.e. two people enter the same data, and if it is identical the data is accepted).

This has disadvantages that this is expensive (two people have to be paid to do the same work) and there is no guarantee that they will not make the same mistakes.

Page 6: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Validation

Validation is the process of detecting inaccurate, incomplete, or unreasonable data.

This can be done by the computer as the data is entered and as a result it is much less likely that errors will occur.

Page 7: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Validation

There are several ways in which a computer can validate data as it is entered.

Page 8: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Validation

These include: Character type checks

Range checks Presence checks Hash totals Control total Check digits

Page 9: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Validation

These include: Spelling checkers Custom

dictionaries Length checks Lookup tables Parity errors

Page 10: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Character type checks

Character type checks make sure that the correct type of character has been entered (e.g. that a number has not been entered where a letter should have been or that a letter have not been entered where a number should have been.

Page 11: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Range checks

Range checks make sure that numerical data falls between pre-determined limits (i.e. within a certain range of numbers).

For example, that the age of a pensioner who is a member of a pension scheme and who is 81 is not entered as 18.

This is done by setting a bottom limit on the age range.

Page 12: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Range checks

Range checks are not infallible. In the example of the pension

scheme data, if the age of the pensioner had been 96 and it had been entered as 69, the mistake would not have been detected by a range check.

Page 13: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Presence checks

Presence checks ensure that data that must be entered is entered.

For example, the pension scheme would need a pensioner’s National Insurance number.

If that was not entered the presence check would detect this and notify whoever was entering the data.

Page 14: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Hash totals

A hash total is a meaningless total. It is often used on computer-

generated invoices.

Page 15: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Hash totals

Hash total

The hash total totals the item numbers. When the details on the invoice are keyed into the computer, this total is also keyed in. When the computer adds up the item numbers the hash total acts as a check that everything has been entered correctly. Any difference between the computer’s result and the hash total would indicate that incorrect data had been entered.

Page 16: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Control total

A control total is similar to a hash total except that the result has some meaning.

For example, the total cost of each item on the invoice added together is a control total.

Page 17: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Control total

Control total

When the details on the invoice are keyed into the computer, the control total is also keyed in. When the computer adds up the individual cost of each item that has been ordered, the control total acts as a check that everything has been entered correctly. Any difference between the computer’s result and the control total would indicate that incorrect data had been entered.

Page 18: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Check digits

When large numbers are entered into a data system there is always a chance of error.

To help to overcome this problem an additional number is often added to the end of the original number.

This number is a check digit, and is calculated from the other numbers in the original number.

Page 19: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Check digits

Check digits are often found on barcodes.

When the barcode is scanned, the computer automatically removes the end number and uses the rest of the numbers to calculate what the check digit should be.

If the result is the same, then the number has been entered correctly.

Page 20: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Check digits

The first number (4) is the check digit.

Starting from the left, the next number (7) is multiplied by 11, the second (8) by 10, and so on.

Page 21: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Check digits

The total is then found:

7 x 11 + 8 x 10 + 0 x 9 + 8 x 8 + 3 x 7 + 2 x 6 + 1 x 5 + 8 x 4 + 1 x 3 + 6 x 2 + 9 x 1 = 315

315 is then divided by 11 (there are 11 numbers).

315 ÷ 11 = 28 with a remainder of 7.

Page 22: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Check digits

The remainder is then deducted from 11 and the result should equal the check digit (11 – 7 = 4).

As the check digit is 4, the barcode has been entered correctly.

Page 23: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Spelling checkers

Although spellcheckers are usually found in word processing programs, they can also form part of data-handling programs.

They can be ‘enabled’ (switched on) so that they check data as it is entered and automatically identify any mistakes.

Page 24: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Custom dictionaries

If a spellchecker is used it will automatically identify any words that it does not recognise.

In particular spellcheckers often fail to recognise proper names (i.e. the names of people or places) or specialist words or jargon.

Page 25: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Custom dictionaries

It is possible to avoid this by setting up customised dictionaries to which words can be added.

Once a word had been add to the customised dictionary, the spellchecker will recognised the new words as being spelt correctly.

Page 26: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Length checks

Certain types of data are always the same length.

For example, a National Insurance number will have 2 letters, followed by 6 numbers, followed by 1 letter (e.g. YY232425A).

A length check will identify any NI numbers that have more or fewer characters.

Page 27: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Lookup tables

A lookup table contains a list of valid codes that can be used to enter data.

If a code that is not in the lookup table is entered. it is rejected.

This prevents any incorrect data from being processed.

Page 28: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Parity errors

Data is composed of 1s and 0s (or ‘bits’ of information).

When data is transmitted from one computer to another it is important that does not become damaged or ‘corrupted’ during transmission.

Parity checking is a means of doing this.

Page 29: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Parity errors

Parity is the sum of the bits within a piece of data.

A parity error occurs when one of the bits is changed.

When this happens the parity calculated at the receiving computer is not the same as it was when the data was transmitted.

Page 30: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Parity errors

The difference in parity alerts the computers to the fact that the data has been corrupted.

However, if more than one error occurs they may balance each other out, and parity can appear to be correct even though the data has been corrupted.

Page 31: Checking data. Why do errors happen?  Computers do not make mistakes.  However if incorrect data is put in errors happen.  In ICT this is called GIGO

Common errors

Common types of error are:Transcription errors – these usually

occur when people entering data misread what they are entering (e.g. mistaking 5 for S or O for 0).

Transposition errors – these occur when people entering data get characters out of order or back to front (e.g. 619 instead of 916 or ‘form’ instead of ‘from’).