IB Math Studies Internal Assessment

What is the relationship between daily coffee consumption and sleeping habits?

Exam Session: May 2012

Candidate Number:

School Name: Murrieta Valley High School

Date: February 23, 2012

Course: IB Math Studies

Word Count: 1,612

Name:

Table of Contents

Introduction: Page 2

Raw Data: Pages 3-4

Graphing of data: Page 5

Chi Square Test: Pages 6-7

Discussion/Validity: Page 8

Conclusion: Page 9

Works Cited: Page 10

Introduction:

Sleeping is a seductive habit that every human being eventually succumbs to. Due to this fact, there is an apparent need to investigate and analyze all of the factors that influence sleeping habits. Caffeine, the primary active ingredient in coffee, has been considered the most popular drug in the world, and is found naturally in over 60 plants (Caffeine and Sleep). This wide range of popularity and availability makes studying caffeine’s effect on sleep important and relevant in today’s society. Furthermore, caffeine has been categorized as a stimulant, and is seen to have side effects ranging from sleep disturbance to excessive urination (Caffeine and Sleep). It is for these reasons that I have decided to delve into the relationship between the consumption of caffeine and sleeping patterns.

Task: For this IB math studies statistics project, the main purpose is to determine whether there is a relationship between a high school student’s coffee drinking habits and hours of sleep per night. I find this subject to be interesting as I am an avid coffee drinker, and also have done much research into sleep patterns and disorders on my own. It will be interesting to see the extent to which these two variables affect one another.

Plan: The data will be collected during the second semester of the 2012 school year at Murrieta Valley High School. All data will be collected from students ranging from sophomore to senior year. I will ask the students whether or not the students drink coffee daily, and then ask if they sleep, on average, 0-4 hours, 4-7 hours, or 8+ hours per night. I will graph the data, as well as perform a X2 test in order to quantitatively determine the relationship between coffee consumption and sleeping habits.

Mathematical Investigation

Collected Data:

Number / Drink Coffee Daily / 0-4hours sleep / 4-8 hours sleep / 8+ hours of sleep
1 / Yes / x
2 / Yes / x
3 / No / x
4 / No / x
5 / Yes / x
6 / No / x
7 / yes / x
8 / No / x
9 / Yes / x
10 / No / x
11 / Yes / x
12 / Yes / x
13 / Yes / x
14 / No / x
15 / No / x
16 / No / x
17 / No / x
18 / No / x
19 / Yes / x
20 / Yes / x
21 / Yes / x
22 / No / x
23 / Yes / x
24 / No / x
25 / No / x

Table 1: Raw Data Collected on average Hours of Sleep a Night and Whether or not the Student Drinks Coffee

Number / Drink Coffee Daily / 0-4 hours of sleep / 4-8 hours of sleep / 8+ hours of sleep
26 / no / x
27 / yes / x
28 / no / x
29 / no / x
30 / yes / x
31 / no / x
32 / Yes / x
33 / yes / x
34 / No / x
35 / Yes / x
36 / No / x
37 / Yes / x
38 / Yes / x
39 / yes / x
40 / yes / x
41 / No / x
42 / No / x
43 / No / x
44 / No / x
45 / no / x
46 / Yes / x
47 / yes / x
48 / yes / x
49 / no / x
50 / yes / x

Table 2: Sum of Data in Table 1

Participants / Drink Coffee Daily / Do not Drink Coffee / 0-4 Hours of Sleep / 4-8 Hours of Sleep / 8+ Hours of Sleep
50 / 25 / 25 / 14 / 18 / 18

Graph 1 displays the sleep patterns of the two groups of the participants; those being consuming coffee daily and those who do not. From this visual chart, it is evident that those in the group who drink coffee daily appear to have a higher percentage of participants sleeping 0-4 hours than the group that does not consume coffee. The correlation cannot be deduced here as it would be entirely speculative and thus a statistical analysis must be done to determine the correlation between these two variables.

Table 3: Percentage of Participants Within Each Sub-Category

0-4 hours of sleep / 4-8 hours of sleep / 8+ hours of sleep
Percent of “Daily Coffee Drinkers” group. / 9/25=0.36
36% / 10/25=0.4
40% / 6/25=0.24
24%
Percent of “Does not Drink Coffee” group. / 5/25=0.2
20% / 8/25=0.32
32% / 12/25=0.48
48%

Calculation of a Chi Square Test

The Chi Square test is used to compare observed data with that of expected data, meaning the data that would be expected under the given circumstances. This statistical test quantifies whether or not the observed data is significant.

The formula for the Chi Square test is:

The degrees of freedom are critical to a Chi Square test, as they determine what the critical value is to compare to the final result of the Chi Square test.

Null Hypothesis (H0): Coffee consumption and sleep patterns are independent of one another.

Alternative Hypothesis (H1): Coffee consumption and sleep patterns are dependent on one another.

Degrees of Freedom are calculated by taking (rows-1)(columns-1)

Table 4: Observed Values

0-4 Hours of Sleep / 4-8 Hours of Sleep / 8+ Hours of Sleep / Total
Drink Coffee Daily / 9 / 10 / 6 / 25
Do Not Drink Coffee / 5 / 8 / 12 / 25
Total / 14 / 18 / 18 / 50

Table 3 displays the original and observed data for this experiment. It will be used as a basis for the Chi Squared test.

Table 5: Calculations for Expected Values

0-4 Hours of Sleep / 4-8 Hours of Sleep / 8+ Hours of Sleep / Total
Drink Coffee Daily / 14X25
50 / 18X25
50 / 18X25
50 / 25
Do Not Drink Coffee / 14X25
50 / 18X25
50 / 18X25
50 / 25
Total / 14 / 18 / 18 / 50

Table 4 demonstrates the calculations for each of the expected values based on the observed values.

Table 6: Expected Values

0-4 Hours of Sleep / 4-8 Hours of Sleep / 8+ Hours of Sleep / Total
Drink Coffee Daily / 7 / 9 / 9 / 25
Do Not Drink Coffee / 7 / 9 / 9 / 25
Total / 14 / 18 / 18 / 50

Table 5 illustrates what the expected Values were for this experiment found through the calculations in Table 4.

X2= (9-7)2 + (10-9)2 + (6-9)2 +(5-7)2 + (8-9)2 + (12-9)2

7 9 9 7 9 9

X2= 3.365

Df= (rows-1)(columns-1)

Df= (2-1)(3-1)

Df= 2

The X2 critical value at 5% significance with two degrees of freedom is 5.991. The X2 value from this experiment was lower than the critical value, (3.365<5.991) and thus the null hypothesis must be accepted and the two variables, coffee consumption and sleep patterns, are assumed independent of one another.

Discussion/Validity

Limitations:

Throughout this investigation, there were many limitations that could have altered or changed the result of the experiment.

One such limitation can be seen in the way data was collected. Both of the questions that were asked of the participants were dependent on the participant’s recollection of his/her habits. It is very likely that some, if not many, of the participants were not able to recall their sleeping habits accurately, or how often they consume coffee. For this reason, memory is a limitation for this experiment.

Another limitation could be that the participant’s coffee consumption/sleeping habits fluctuate throughout the week, or even throughout the day, and therefore the simple yes or no question could have been difficult to answer for said participants.

Furthermore, the use of a yes or no question for daily coffee consumption is something that is not quantifiable, and therefore limited the amount of statistical analysis that could have been done with the data, such as a least square regression calculation.

In addition, only 50 participants from Murrieta Valley High School were involved in this experiment, and thus cannot be generalized into greater populations, or even the high school for that matter. This was due to a lack of availability of a large population sample off campus.

Also, many factors influence sleeping habits, such as stress, hormonal levels, gender, eating habits, exercise habits, etc., and thus isolating coffee’s effect on sleep patterns is extremely difficult to do.

A further limitation could be that those who said no to drinking coffee could have been receiving coffee’s active ingredient, caffeine, through a variety of other drinks, such as energy drinks. This would skew the data and make isolating coffee’s effect on sleep patterns extremely difficult.

The data collected does not take into account gender, culture, or ethnic background, which could all play a part in sleeping patterns. These outside factors reduce the validity of this experiment and make it much harder in isolating coffee’s effect on sleep patterns.

Conclusions

I performed a X2 test with this data in order to quantify the extent to which the two variables, coffee consumption and sleeping patterns, are dependent upon one another. The X2 test demonstrates that this experiment does not display a correlation between coffee consumption and sleeping patterns. This is due to the fact that the X2 value of 3.37 is lower than the critical value of 5.991. However, there were many limitations in the design of this experiment, as listed previously, and thus one cannot say from this experiment that there is no correlation between the two variables. Due to these limitations, this experiment should be regarded as not containing much validity. A much more thorough, scientifically advanced investigation must be undergone before examining this question any further. Julie Carrier, a professor at the University of Montreal, has carried out such an experiment, and found that; “all subjects who consumed caffeine pills had their sleep negatively affected, especially older participants who slept 50 percent less than usual. In both age groups, caffeine decreased sleep efficiency, sleep duration, slow-wave sleep (SWS) and REM sleep” (Caffeine Cuts into Sleep, Even Hours Later). This study also has its limitations, however it demonstrates that other research has discovered a correlation between these two variables. From this, it is apparent that this investigation failed in isolating caffeine’s effect on sleep, however was based on other valid scientific research.

Works Cited

"Caffeine and Sleep." National Sleep Foundation. Web. 23 Feb. 2012. http://www.sleepfoundation.org/article/sleep-topics/caffeine-and-sleep

"Caffeine Cuts into Sleep, Even Hours Later." LiveScience.com. Web. 23 Feb. 2012. <http://www.livescience.com/7923-caffeine-cuts-sleep-hours.html>.