Exam Physiology: Wearable Data
What variables were the researchers trying to measure?
True or False: High Electrodermal activity (EDA) means the person being measured might be stressed.
Why might we want to install add-on packages in R?
How can we confirm that our data loaded correctly? Take a screenshot and point to your evidence.
Looking at the
timestampcolumn, how often are measurements being collected?How many rows of data, or observations, does this data have? Hint: look at the Environment Pane (top right) and see how many
obs.you have.
Run
count(phys_data, test, studentID) %>% print(n=30)to see student and test combinations. How many observations does studentS8have for the Final? Take a screenshot showing this number.Which student has the lowest number of observations for the Final?
Sort the
hrcolumn. What is the greatest heart rate observed? Which student was this? Take a screenshot of your evidence.Which student had the greatest eda values? Which exam was this? Take a screenshot of your evidence.
Change the code above slightly, replacing
hrwitheda. Run the changed code in your console. What is the correlation between thetempandedavariables? Take a screenshot of your evidence.What does the correlation value tell you about the relationship between these two variables? (E.g., as one goes up, the other does what ?)
(Optional) Try changing the code again to look at the correlation value between
edaandhr. Run the changed code in your console. What is the correlation between these variables, and what is the relationship? Take a screenshot of your evidence.
Change the code that creates the plots slightly, replacing
hrwitheda. Run the changed code in your console. Take a screenshot of your plots.Which test/exam appears to have the greatest electrodermal activity (EDA) for student
S9?To confirm your results, calculate the mean
edafor each test. Run the code above to calculate the means, remembering to replacehrwitheda. Do the results surprise you? Take a screenshot of your results table in the console.(Optional) Try running 1-3 above with student
S8instead ofS9. You’ll need to replace anywhereS9was mentioned in the code! Take a screenshot of your plots/results.
Change the code that creates the plots, replacing
hrwitheda. Run the changed code in your console. Take a screenshot of your plots.What conclusions can you draw about stress in these two students, based on their
EDAmeasurements?(Optional) To confirm your results, compare the mean eda for each test and student (
S9andS8). You can return to the code from Part 4 and re-calculate it if you need to. Do the results back up your conclusions from question 2? Take a screenshot of your results table in the console.(Optional) Try running 1-3 above with two different students. You’ll need to replace anywhere
S9orS8was mentioned in the code with the students of your choice. Take a screenshot of your plots/results.
Based on your plots and information so far, do you have any ideas (hypotheses!) about how stress and grades might be related?
Would looking at more data help you feel more or less comfortable with your hypotheses?
Look at some of the values for
temp. Are these realistic? Why or why not?