Print - Back

Misty Guthinger - Sleep Survey Data
Generated Feb 23, 2019 by maguthinger

Survey Information

My group and I designed a survey to collect data on sleep quality and quantity. The population we sampled was from adults age 18 and older. The samples that I collected for this survey were polled by Facebook friends. Therefore, we have a convenience sample with a voluntary response aspect, as not everyone we asked took the time to respond. All samples were anonymous.

 The survey questions are as follows:

1.      How many hours of sleep do you get a night?

2.      How would rate your quality of sleep?  very poor, poor, fair, good, very good

3.      How old are you?

4.      Are you male or female? male or female


Looking at a Categorical Variable

Pie Chart of Quality of Sleep

The results displayed in the pie chart show how individuals rated their quality of sleep: very poor, poor, fair, good, very good.  


The data indicates that a majority reported quality of sleep as being fair at 45.1%. Approximately a quarter reported their sleep quality as good and only 3.53% reported getting very poor sleep. 


Bar Plot of Sleep Quality and Gender

The bar plot shows the individuals reported gender of being male or female and their relation to their reported quality of sleep. 


With viewing the bar plot we are able to see that many more women than men who answered the survey. The majority of both rated their quality of sleep as being fair. Males reported have more “good” sleep over “poor” sleep than females did. 

Looking at a Numerical Variable

The responses to the question "How old are you?" are shown in the histogram, boxplot, and summary statistics below.






The histogram shows a right skewed distribution. 

The center of the skewed data set has a median of 40 years of age and mean of 42.5. Note that the mean is greater than the median, which is typical of a right-skewed distribution. The range of the data is 63 with a minimum age of 20 and maximum reported age of 83.   There is a lot of variability in the responses to this question, with a range of 63 years of age and a standard deviation of 13.69 years.  The IQR, which gives the range of the middle half of the data, is 22 years of age. For this data, the range rule of thumb is not accurate, since the range/4 = 5.5 and the standard deviation is 13.69.  Four outliers have been identified to potentially affect the data.

Relationship between Two Numerical Variables

This scatter plot depicts the correlation between the number of hours slept and the subjects reported age.


The shape of the scatter plot shown does not have a linear representation with no discernable relationship suggesting there is no correlation with the data presented.

Correlation of Hours and Age


Suggests there is no correlation.

Since the absolute value of r is less than .196 (Table A-5 in the textbook), we can conclude that there is no statistically significant correlation between the number of hours slept and the age of the individual or this sample.

Result 1: Pie Chart With Data   [Info]
Right click to copy

Result 2: Bar Plot With Data   [Info]
Right click to copy

Result 3: Histogram   [Info]
Right click to copy

Result 4: Boxplot   [Info]
Right click to copy

Result 5: Summary Stats.   [Info]

Summary statistics:

ColumnnMeanVarianceStd. dev.MedianRangeMinMaxQ1Q3IQR

Result 6: Scatter Plot   [Info]
Right click to copy

Result 7: Correlation   [Info]
Correlation between N1 and N2 is: