library(mosaic)library(DT)library(pander)library(car)library(tidyverse)library(lattice)library(dplyr)library(ggplot2)library(knitr)# Record your data from your own mini experiment in Excel.# Save the data as a .csv file in the Data folder of the Statistics-Notebook.papair <-read_csv("../../data/paperairplaneaov.csv")
I folded the planes, Cali threw them, and Stephanie recorded the distance measurements.
We folded 3 planes, 2 from the website Bro Amidan provided and 1 from my memory. That is the one factor we are testing, if different airplanes travel farther distances. We selected the 3 variations of plane based on the assumption that each one would be able to fly far over height or funny movements. Our response variable is distance.
We threw the paper airplanes in the 2nd floor hallway of the ricks, starting at the Math Lab and throwing west. We set up 50 feet of measuring tape and used a yard stick to line up the nose of the plane where it landed with the measuring tape. We threw each plane 10 times one after the other. We were systematic, 5th grade science, sharki boi, nemo. The stats on the data table under numbered order depict which plane got which throw out of the 30. for instance, nemo got the 3rd and 7th throws, etc.
Because we didn’t randomize, there is a possibility that some of the throws could be biased. The first throw compared to the last could have been thrown with less energy. Also viewing the performance of the planes throughout the data collection process could lead to bias. If I was throwing the planes I would be more biased because I like one plane more than the other.
I will be performing a Basic Factor 1 or a one-way anova test the average distance flown between 3 paper airplanes.
In the data table I have included the name of the airplane used as well as the type of plane that it is. The 5th Grade Science plane was not based off of any type of plane found on the internet but is one that I created to show my 5th grade science class over 10 years ago. I had not forgotten how to make it, and there is no internet based reference on the actual type of paper airplane it is.
I have also converted the original data (collected in feet) to inches.
The ANOVA test tells us that there is significance in comparing the 3 groups. We need to take a closer look to actually see that difference. We will run some graphs and then a post hoc test to see which groups are different and more different than the others.
Show the code
## lets go a ggplot that's real sexy likelibrary(ggplot2)library(dplyr)ggplot(papair, aes(x=airplane, y=distance)) +geom_boxplot(aes(fill = airplane)) +theme_bw() +scale_fill_manual(values =c("lightgoldenrod1", "skyblue1", "lightgreen")) +labs(title ="Distance that Paper Airplanes Flew Down Ricks Hallway",fill ="airplane",x ="Paper Airplane Type",y ="Distance Flown (in)")
In this Tukey chart we see that none of the groups overlap on the 0 line so they are all different from eachother. I chose the Tukey test because I want to keep my Type 1 error low. I also want to see the confidence intervals.
contrast estimate SE df t.ratio p.value
5thGradeSciencevsOthers 128.130 18 27 7.105 <0.0001
SharkiboivsOthers -0.822 18 27 -0.046 0.9990
NemovsOthers -127.308 18 27 -7.059 <0.0001
P value adjustment: scheffe method with rank 2
Now this is really interesting. In comparing 5th Grade Science average distance flown is significantly different and no surprise there. Nemo vs the other 2 as well is significant where Nemo is better than Sharkiboi but worse than 5th Grade Science. But Sharkiboi compared to the other two is not significant. That plane is more averageIt’s the exact opposite actually.
(I ran all the different post hocs and didn’t want to straight up delete them)
Pairwise comparisons using t tests with pooled SD
data: papair$distance and papair$airplane
fifth_grade_science nemo
nemo 0.00031 -
sharki_boi 8.8e-09 0.00039
P value adjustment method: none
Pairwise comparisons using t tests with pooled SD
data: papair$distance and papair$airplane
fifth_grade_science nemo
nemo 0.00094 -
sharki_boi 2.6e-08 0.00116
P value adjustment method: bonferroni
Study: papair.aov ~ "airplane"
Scheffe Test for distance
Mean Square Error : 2168.077
airplane, means
distance std r se Min Max Q25 Q50
fifth_grade_science 268.836 53.60714 10 14.72439 195.12 338.64 222.06 269.28
nemo 182.868 45.48429 10 14.72439 142.80 264.36 153.12 157.26
sharki_boi 98.544 39.51817 10 14.72439 35.64 156.00 72.27 90.54
Q75
fifth_grade_science 311.04
nemo 221.19
sharki_boi 130.53
Alpha: 0.05 ; DF Error: 27
Critical Value of F: 3.354131
Minimum Significant Difference: 53.93335
Means with the same letter are not significantly different.
distance groups
fifth_grade_science 268.836 a
nemo 182.868 b
sharki_boi 98.544 c
Interpretation
There is all the statistical significance in comparing 5th Grade Science distance, Nemo distance, and Sharki Boi distance \alpha > 4.94e-08.
The 5th Grade Science airplane is the clear winner, consistently flying farther (mean = 346.8 inches or28.9 feet) than Nemo (mean = 255.6 inches or 21.3 feet) and Sharki Boi (mean = 192.0 inches or 16 feet). Nemo outperforms Sharki Boi, but both are outclassed by 5th Grade Science.
The differences show that 5th Grade Science flies 5–13 feet farther on average than the others. If I was going to put one of these planes in a competition I would select 5th Grade Science.
It would be easy to conclude that the paper airplanes are not equal. That was clear to me in the stages of developing the planes. When we did our first test throw of each before taking measurements 5th grade science outdid the other two in distance and consistency.
If I was performing this test again I would fold the same plane and try different additional folds or even using different weighted paper.