Please enable JavaScript.
Coggle requires JavaScript to display documents.
Swirl: Data Analysis (Dispersion (Box and Whisker plot (IQR = inter…
Swirl: Data Analysis
Dispersion
range(cars$price)
This command returns the maximum and minimum values of the price data column in the data set of "cars"
-
-
Box and Whisker plot
plots the minimum, Q1 = 25th percentile, Q2 = 50th percentile or median, Q3 = 75th percentile, maximum values
-
2 Sample t-test
question: is there a significant difference between average fuel efficiency for automatic and manual transmissions
null hyp: fuel efficiency is the same between the two types of vehicles . Or stated mathematically, the difference between the average miles per gallon of manual and automatic vehicles is not significantly different from zero.
alternative hyp: there is a significant difference between fuel efficiency of manual and automatic cars. and the difference will be not be zero.
-
t.test(dataset 1 dataset 2, alternative = "two.sided")
-
-
1 sample t-test
Note: must use a t-test instead of a z-test when I don't have access to population variance (or population st. dev.) and thus must estimate it from data
-
Note: while normal distributions describe an entire population, t-distributions describe samples drawn from an entire population, accordingly, the t-distribution for each sample size is different. the larger the sample, the more the t-distribution resembles the normal distribution
the t-distribution is symmetric and bell-shaped, like the normal distribution, but has heavier tails, meaning that it is more prone to producing values that fall far from its mean