SarahGillespie / CS7200_project_CODE_ONLY

code for the stats project
0 stars 0 forks source link

Sarah specify data by year, test to see if groups are from same sample #3

Closed SarahGillespie closed 10 months ago

SarahGillespie commented 10 months ago

Sarah = extract columns to detail by year, do participant test by year. Due by Friday at noon.

SarahGillespie commented 10 months ago

I just put the population code on Github… I used Kolmogorov-Smirnov Test to test to see if the 2021 and 2022 samples were pulled from the same group/distribution/sample.

ks.test(participant_May_2021$upright_prop, participant_May_2022$upright_prop)

p-value of 0.07598... cannot reject the null so this MIGHT be the same population/distribution.

ks.test(participant_May_2021$ambulation_prop, participant_May_2022$ambulation_prop) P-value of <0.01... can reject the null, so these are different population/distribution.

control and treatment the same P-value of <0.01 too, even smaller than May2021 vs May2022 ambulation, so we can still consider treatment and control to be significantly different populations, just like our earlier analysis.

SarahGillespie commented 10 months ago

we can combine the "May" groups from 2021 and 2022 as long as we include a section in the final writing that justifies why we thought it was okay.