Docsity

Computer Lab Exercises for Statistical Data Analysis, Lab Reports of Statistics

Toggle sidebar
bg1
Computer Lab Exercises
1) First steps
- Create directory stat3000 on the C drive (C:\stat3000)
- From your data disk (from Hayter book) copy following files in stat3000 directory:
- A:\Chap_6\Ascii\6-08.txt
- A:\Chap_6\Ascii\6-09.txt
- A:\Chap_6\Ascii\6-10.txt
- A:\Chap_6\Ascii\6-11.txt
- A:\Chap_6\Ascii\6-12.txt
- Take the data disk out of the floppy drive and insert an empty diskette.
- From the Stat3000 Web page, download the SAS model programs and one of the
student data sets (student_data1.prn or student_data2.prn). Save the file in stat3000
directory under the name 'student_data.prn'.
2) Using Microsoft Excel for explanatory data analysis
- Producing bar charts and pie charts:
- open the file '6-08.txt'
- present the data in a well labeled bar chart and a pie chart. Try to change bar
width, color of individual bars and pie 'slices', and the labeling
- repeat the exercise with the file '6-09.txt'
- Producing histograms:
- open the file '6-10.txt'.
- use 'Data analysis toolpack' to produce a histogram. First, let the program choose
the intervals. Then try to define the interval width 'manually'.
- work on the chart: remove spaces between the bars, change titles and labeling etc.
- repeat the exercise with the file '6-11.txt' and '6-12.txt'.
- Descriptive statistics:
- open the file '6-10.txt'.
- use 'Data Analysis Toolpack' to produce a statistical summary. Use Excel built-in
function to obtain those measures of center and spread that are not listed in the
automatic summary.
- repeat the exercise with the file '6-11.txt' and '6-12.txt'.
Every time you finish a piece of work, save the entire workbook!
3) Using SAS for data analysis
- Interactive data analysis:
- import the data from '6-08.txt'. Create a work file with an appropriate name (e.g.
TV).
- use interactive data analysis tools to obtain a bar chart, and a frequency table.
- repeat the exercise with the data from '6-09.txt'.
pf2

Partial preview of the text

Download Computer Lab Exercises for Statistical Data Analysis and more Lab Reports Statistics in PDF only on Docsity!

Computer Lab Exercises

1) First steps

  • Create directory stat3000 on the C drive ( C:\stat3000 )
  • From your data disk (from Hayter book) copy following files in stat3000 directory:
    • A:\Chap_6\Ascii\6-08.txt
    • A:\Chap_6\Ascii\6-09.txt
    • A:\Chap_6\Ascii\6-10.txt
    • A:\Chap_6\Ascii\6-11.txt
    • A:\Chap_6\Ascii\6-12.txt
  • Take the data disk out of the floppy drive and insert an empty diskette.
  • From the Stat3000 Web page, download the SAS model programs and one of the student data sets ( student_data1.prn or student_data2.prn ). Save the file in stat directory under the name 'student_data.prn'.

2) Using Microsoft Excel for explanatory data analysis

  • Producing bar charts and pie charts:
    • open the file '6-08.txt'
    • present the data in a well labeled bar chart and a pie chart. Try to change bar width, color of individual bars and pie 'slices', and the labeling
    • repeat the exercise with the file '6-09.txt'
  • Producing histograms:
    • open the file '6-10.txt'.
    • use 'Data analysis toolpack' to produce a histogram. First, let the program choose the intervals. Then try to define the interval width 'manually'.
    • work on the chart: remove spaces between the bars, change titles and labeling etc.
    • repeat the exercise with the file '6-11.txt' and '6-12.txt'.
  • Descriptive statistics:
    • open the file '6-10.txt'.
    • use 'Data Analysis Toolpack' to produce a statistical summary. Use Excel built-in function to obtain those measures of center and spread that are not listed in the automatic summary.
    • repeat the exercise with the file '6-11.txt' and '6-12.txt'.

Every time you finish a piece of work, save the entire workbook!

3) Using SAS for data analysis

  • Interactive data analysis:
    • import the data from '6-08.txt'. Create a work file with an appropriate name (e.g. TV).
    • use interactive data analysis tools to obtain a bar chart, and a frequency table.
    • repeat the exercise with the data from '6-09.txt'.
  • import the data from '6-10.txt'.
  • use interactive data analysis tools to obtain a histogram, a box plot, summary statistics, and to see the properties of the distribution, and a frequency table.
  • repeat the exercise with the data from '6-11.txt' and '6-12.txt'
  • save every window that you like and want to print afterwards.
  • Running SAS procedures:
  • open the program 'categ.sas'. Run the program.
  • repeat the exercise with the data from '6-09.txt'. Change appropriately the file name, name of the work file, and variables, as well as the title. Save the program under a different name.
  • open the program 'quant.sas '. Run the program.
  • repeat the exercise with the data from '6-11.txt' and '6-12.txt'. Change appropriately the file name, name of the work file, and variables, as well as the title. Every time you make changes, save the program under a different name.
  • open the program 'descstat.sas'. Run the program.
  • repeat the exercise with the data from '6-11.txt' and '6-12.txt'. Change appropriately the file name, name of the work file, and variables, as well as the title. Every time you make changes, save the program under a different name.
  • open the programs 'students.sas'. Run the program and analyze the output.
  • repeat the exercise with the program 'studdesc.sas'.

4) Before you finish

Copy everything from the directory C:\stat3000 on your floppy!

5) If the time allows (now or in your spare time)

Play with the different statistical programs on the Web. Find out what kind of statistical analyses they can do (certainly, you will need some of them later in Stat 3000 course).