CS 1173 Data visualization and analysis in Matlab Lab 6
Additional analysis of the sleep diary data

Objectives:

  • Use vector indexing to select rows and columns from arrays.
  • Practice using statistical tools and plots.
  • Become familiar with sleep diary data for the project.
  • Handle more realistic data.
  • Interpret data and draw conclusions.
EEG of slow wave or N3 sleep

Hand-in Requirements:

All projects and laboratories should be submitted submitted electronically through Blackboard under the Assignments menu. Zip up your entire lab6 directory to submit. (Right click on the project folder and follow the Send To link.)

Overview

This laboratory examines the sleep diaries of the cohort as a whole.

Description of the data

The data for this semester can be found on Blackboard in the file diaryFall2011.mat. This file is similar in format to the diary.mat file of Lesson 10 and Lab 5. However, it contains the actual data from students of this semester.

The arrays have a column for each person. The vectors have an element for each person. The values in column n correspond to the same person as the value in position n of each vector. The individual in position n = 1 is an instructor.

Part I: Initial set up

Part II: Analysis

Perform each of the following analyses by computing
  1. Does caffeine use affect how much sleep a person gets?
  2. Do men use more caffeine than women?
  3. Do people with early bedtimes get more sleep than those with later bedtimes?
  4. Are there any visible statistical differences in the wake-up times and caffeine use among women in the 4 sections?:
    Apply at least three tests and discuss the results.

Grading rubric (point values)

Criterion
Performance indicator
Missing Needs improvement Needs a little improvement Meets expectations
Caffeine and sleep computations done 0 1 2 3
Caffeine and sleep discussion 0 1 1.5
Gender and caffeine computations done 0 1 2 3
Gender and caffeine discussion 0 1 1.5 2
Early versus late bedtimes computations 0 1 2 3
Early versus late bedtimes discussion 0 1 1.5 2
Gender/section differences computation 0 1 2 3
Gender/section differences discussion 0 1 1.5 2

This laboratory was written by Kay A. Robbins and Jianhua Ruan of the University of Texas at San Antonio and last modified on 15-Nov-2011. Please contact krobbins@cs.utsa.edu with comments or suggestions. The image is a screen shot of 30 seconds of an EEG recording of a patient during Slow Wave Sleep. The photograph was taken by S. S. Jähnichen on 12/9/2005. The image is available on Wikipedia as http://en.wikipedia.org/wiki/File:Sleep_EEG_Stage_4.jpg.