1/158
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
Analysis of Variance (ANOVA)
The one-way analysis of variance is used to determine whether there are any differences between the means of three or more independent groups.
3 Assumptions of ANOVA
Each of the samples is a random sample from its population
The variable is normally distributed in each population
The standard deviation (and variance) of the variable is the same in all populations.
What are 4 common assumptions of parametric tests?
Data are random samples from the population
Data are normally distributed
Data are independent
If comparing groups, they have equal variances
What happens if parametric test assumptions are violated?
The conclusions of the research and interpretation of the results may change.
Average/mean
The sample mean is the sum of all the observations in a sample divided by n, the number of observations.
Blinding
The process of concealing information from participants (sometimes also researchers) about which experimental units receive which treatment.
Blocking
The grouping of experimental units that have similar properties. Within each block, treatments are randomly assigned to experimental units.
Categorical variable/data
Qualitative characteristics of individuals that do not have magnitude on a numerical scale (e.g. survival (dead or alive), size class (small, medium, large), life stage (egg, larva, juvenile, adult). Also called factor variables.
Centroid
The multivariate equivalent to an average/mean. The centroid is where the sum of the squared distances from each data point to the centroid is minimised in multivariate space.
Cluster analysis
Grouping data in such a way that observations in the same group (called a cluster) are more similar (in some sense) to each other than to those in other groups (clusters). K-means clustering minimises total within-cluster variation, based on k number of clusters, specified by the researcher.
Coefficient
Coefficients are numbers used to multiply a variable, it is located next to and in front of that variable. In regression with a single explanatory variable, the coefficient tells you how much the response variable is expected to increase (if the coefficient is positive) or decrease (if the coefficient is negative) when that explanatory variable increases by one.
Confidence Interval
A range of values around a population estimate that are believed to contain, with a certain probability (e.g. 95%), the true value of that statistic (i.e. the population value).
Confounding variable
An unmeasured explanatory variable that can mask or distort the causal relationship between measured variables in a study.
Control
A group or groups of subjects that do not receive an experimental treatment, but otherwise experience similar conditions as the treated subjects. Used to help determine if there are any treatment effects in chosen response variable(s).
Degrees of freedom (df)
The number of independent pieces of information that have gone into calculating your estimate.
Distribution
A distribution is a mathematical function that describes a collection of data, or scores, on a variable. For example, a sampling distribution is the probability distribution of all values for an estimate that we might obtain when we sample a population.
Dummy variable
Used with categorical factor variables in linear regression modelling to code levels/groups for estimating coefficients. Usually takes the value of 0 or 1.
Experimental unit
The independent physical entity which can be assigned, at random, to a treatment.
Factor
A type of explanatory variable used to explain/predict the response variable. Each factor will have two or more levels/groups. Both numeric and character variables can be made into factors, but a factor's levels will always be character values and there will be a limited/set number of these chosen by the scientist. Combination of factor levels are called treatments.
Frequency distribution
A frequency distribution describes the number of times each value of a variable occurs in a sample.
Hypothesis testing
Compares data to what we would expect to see if a specific null hypothesis were true. If the data are too unusual, compared to what we would expect to see if the null were true, we state we have evidence against the null hypothesis.
Null hypothesis
A specific statement about a population parameter. It is made for argument and often embodies the sceptical point of view. Often it is that the population parameter of interest is zero (no effect, no preference, no correlation, no difference).
Alternative hypothesis:
Includes all other feasible values for the population parameter besides the value stated in the null hypothesis.
Inference
Using probability to deal with uncertainty in drawing conclusions about a population parameter we wish to estimate or measure.
Interaction effect
An interaction effect happens when one explanatory variable has a relationship with another explanatory variable on a response variable. In other words, the explanatory variables do not act independently on the response variable.
Level/s
Levels are associated with Factor variables (see Factor). It is the splitting of the factor into two or more groups.
Linear regression
A method that draws a straight line through data to predict/explain the response variable (Y) from the explanatory variable (X). Assumptions are: the relationship between X and Y must be linear; at each value of X, the distribution of possible Y-values is normal (normally distributed residuals); the variance of Y-values is the same at all values of X (the residuals have constant variance); at each value of X, the Y-measurements represent a random sample from the population of possible Y-values.
Matrix (or data matrix)
Is easiest to explain by comparing to a data frame. Both are two-dimensional, where columns usually represent variables and rows represent samples. However, in a data frame the columns contain different types of data compared to a matrix where all elements are the same type of data.
Mean/average
The sample mean is the sum of all the observations in a sample divided by n, the number of observations.
Model
In simple terms, statistical modelling is a simplified, mathematically-formalized way to approximate reality (i.e. what generates your data) and optionally to make predictions from this approximation. The statistical model is the mathematical equation that is used.
n
The number of observations in a sample.
Non-metric multidimensional scaling (nMDS)
Is a commonly used multivariate data tool that works to collapse information from multiple dimensions into just a few dimensions to make it easy to visualise and interpret the information. Objects that are placed closer together are more similar to each other than objects found further apart. However, we need to check the stress value to ensure what is being viewed is interpretable (see “stress”).
Normal distribution
A continuous probability distribution describing a bell-shaped curve. It is a good approximation to the frequency distribution of many biological variables.
Numerical variable/data
Quantitative measurements that have magnitude on a numerical scale. These variables are numbers and can be discrete (e.g. number of amino acids in a protein) or continuous (e.g. height).
Null distribution
The sampling distribution of outcomes for a test statistic under the assumption that the null hypothesis is true.
Observation
An observation is the sampling unit from which we collect measurements and/counts from (related to the different variables of interest). Scientists can also use the terms subject, replicate, individual, unit.
One-sample t-test
Compares the mean of a random sample from a normal population with the population mean proposed in a null hypothesis. Assumptions are: the data are a random sample from the population; the variable is normally distributed in the population.
Outlier
An observation/data point well outside the range of values of other observations in a data set.
Parameter
A parameter is a quantity describing a population. A parameter never changes because it relates to the underlying population. We can use statistics to try and estimate parameters (Module 1 & 3 in BIOSCI 220), or we can use parameters to simulate or predict data (Module 2 in BIOSCI 220). Parameters are usually Greek letters (e.g. σ) or capital letters (e.g. P).
Parametric tests
Parametric statistical tests assume the underlying population from which you have sampled from are normally distributed. Non-parametric tests do not require this assumption to be met (they often use ranks of data points rather than the actual values of the data).
Population
A population is all the individual units of interest, whereas a sample is a subset of units taken from the population.
Principal Components Analysis (PCA)
The process of computing new uncorrelated variables, called principal components, from a dataset that explain the maximum amount of variation in the data. The idea of PCA is to reduce the number of variables of a data set, while preserving as much information as possible.
p-value
Each member of a population has an equal and independent chance of being selected into the sample being taken.
Random sample
Each member of a population has an equal and independent chance of being selected into the sample being taken.
Randomisation in experimental design
The random assignment of treatments to units in an experimental study.This process helps eliminate bias and ensures that treatment groups are comparable.
Randomisation test/permutation test
Generates a null distribution for the association between two variables by repeatedly and randomly rearranging the values of one of the two variables in the data. Assumptions are: the data are a random sample from the population; for tests that are comparing means or medians between groups, the distribution of the variable must have the same shape in every population (robust to this assumption when n is large).
Replication in experimental design
The application of every treatment to multiple, independent experimental units to allow us to generalise our results to our population of interest.This process helps to improve the reliability and validity of the results by reducing the effects of variability during the experiment.
Reproducibility
Research is considered to be reproducible when the exact results can be reproduced if given access to the original data, software, or code.
Residual/Error
Residuals (or errors) are the distances between data points and the model. They indicate the extent to which a model accounts for the variation in the observed data. Useful in linear regression and ANOVA models.
Response variable
Aka Dependent variable, outcome variable, Y variable. A response variable is what changes as a result of changes in one or more explanatory variables. It is the expected effect, and it responds to explanatory variables.
Sample
A sample is a subset of units taken from the population.
Scaling/Standardising
A technique used to allow comparison between variables that have different measurement units (e.g., grams and millimetres) or are on different scales. We centre the data and make the spread of the data equal by subtracting the variable mean then dividing by the variable standard deviation. This makes changes between and within variables relative to each other.
Screeplot
A diagnostic tool to check whether Principal Components Analysis works well on your data or not. A screeplot shows how much variation each PC captures from the data. An ideal curve should be steep, then bends at an “elbow” — this is your cutting-off point — and after that flattens out.
Skew
Refers to asymmetry in the shape of a frequency distribution for a numerical variable.
Standard deviation
A common measure of spread of a distribution. It indicates just how different measurements typically are from the mean.
Standard error
The standard deviation divided by the square root of n.
Statistical power
The probability that a random sample will lead to strong evidence against a null hypothesis, which is indeed false.
Stress
A term used in non-metric multidimensional scaling (nMDS) to describe how well the nMDS represents the original data. If stress is too high (>0.2), the nMDS should not be interpreted.
Test statistic
A one-number summary calculated from the data that is used to evaluate how compatible that data are with the result expected under the null hypothesis.
Two-sample t-test (independent)
Compares the means of two random and independent samples from two normal populations with the difference in population means proposed in a null hypothesis. Assumptions are: each of the two samples is a random sample from its population; the variable is normally distributed in each population; the standard deviation (and variance) of the variable is the same in both populations.
Type I error
Rejecting a true null hypothesis. The significance level α sets the probability of committing a type I error.It occurs when a test indicates a significant effect or difference when there is none.
Type II error
Failing to find evidence against a false null hypothesis.
Variable
A variable is any characteristic or measurement that differs from individual to individual. Data/observations are the measurements of one or more variables made on a sample of individuals. Explanatory variables predict or affect another variable, called a response variable.
Welch’s t-test
Compares the means of two random and independent samples from two normal populations with the difference in population means proposed in a null hypothesis. Differs from the two-sample independent t-test in that it can be used even when the variances of the samples are not equal.
Variance
A measure of spread of a distribution. It is the average of the squared differences from the mean. The standard deviation is the square root of the variance.
Variation
Variability in statistics refers to the difference being exhibited by data points within a data set, as related to each other or as related to the mean. This can be expressed through the range, variance or standard deviation of a data set. Variation is also a biology term and is used in a similar way, where it refers to the differences or deviations from the recognized norm or standard.
?function
If you have questions about a particular R function, or what arguments can be given to that function, you can access its documentation by writing the code ?insert_function_name_here into the console in R. It will return a help file in the bottom right-hand pane in RStudio. For operators like %>%, enclose in backticks like this: ?%>%``.
%>% (piping operator) – tidyverse
The pipe operator allows us to combine multiple operations in R into a single sequential chain of actions. %>% takes the output of one function and then “pipes” it to be the input of the next function. Read %>% as “then” or “and then.”
<- (assignment operator) – base
The assignment operator is used to assign a value to a variable.
+ – base
Sums two variables together.
- – base
Subtracts one variable from another.
* – base
Multiplies two variables together.
/ – base
Divides one variable from another.
$ – base
Allows you to access objects stored within an object (e.g. df$variable).
apply() – base
Apply a function across an array, matrix or data frame. MARGIN = 1 (rows), 2 (columns), or c(1, 2).
args() – base
Tells you what arguments a function will take.
data.frame – base
The most common way of storing data in R. Columns = variables, rows = samples.
drop_na() – tidyr
Drop rows containing missing values.
factor() – base
Convert variable(s) into factor variables.
filter() – dplyr
Subset a data frame, retaining or dropping rows based on conditions.
getwd() – base
Returns filepath of the current working directory.
ggplot() – ggplot2
Opening command to create a data visualisation.
glimpse() – dplyr
Transposed version of print: columns run down, data across.
group_by() – dplyr
Group dataframe by variables (columns).
install.packages("package") – base
Installs R package from repository.
is.na() – base
Returns TRUE for each data point that is NA.
library() – base
Loads installed R packages into current session.
list.files() – base
Returns all files in working directory.
mutate() – dplyr
Create/modify/delete columns in a data frame.
pivot_longer() – tidyr
“Lengthens” data (more rows, fewer columns).
pivot_wider() – tidyr
“Widens” data (more columns, fewer rows).
read_csv() – readr
Imports a .csv file into R as a tibble.
tibble – tidyverse
A special type of data frame (cleaner printing, easier to work with).
select() – dplyr
Subset a data frame by columns.
setwd() – base
Sets working directory (use at beginning of every R session).
summarise() / summarize() – dplyr
Reduces multiple values to a single value, often with group_by().
view() – dplyr
Opens dataset in spreadsheet style format in RStudio.