1/17
Looks like no tags are added yet.
how to find how many value sit above or below a value in R
sum(variable $specific column variable <= number)
<= for below this value
>= for above this value
how to find how many values sit within a range in R
sum(between(data name$variable, smaller number, larger number)
what is frequency density
The height of a bin or the y-axis variable on a histogram
calculated by dividing the frequency of numbers covered in the bin range by the size of the range (class width)
class width = highest-lowest value
what are 2 ways to generalise finding to a wider population
Assume the pattern for a smaller sample is the same for the wider population
has no real statistical significance
can only be used to make a general statement
Assume the data from a sample and population can be represented through a normal distribution
provides an overall pattern but can ignore smaller abnormalities
what is normal distribution
a probability distribution that shows that values closer to the mean occur more frequently and are hence more probable
A normally distributed histogram will show a unimodal bell curve and follow the empirical rule
How to find the proportion of values above or below a certain number in R
pnorm(q=Num, mean = Number, sd= number)
q is the number that values can be above or below
replace q with p, and a proportion to calculate max value in that proportion of data
how are standard deviations and mean displayed in normal distribution curve
mean is found at the highest peak of the curve on the x axis. the distribtuion id then split into sections, with each one being mean - or + n standard deviations from the mean
If the standard deviation is high, the distribution will be shorter and wider
if the standard deviation is low, the distribution will be taller and skinnier
what is the empirical rule
also known as the 68-95-99.7 rule as
68% of data will fall between 1 STD + or - the mean
95% of data will fall between 2 STD + or - the mean
99.7% of data will fall between 3 + or = the mean
how to test in data is normally distributed using R
Using a q-q plot or histogram, but qq plot is easier
if the data points follow the line then it can be assumed that the data is normally distributed
if they differ from the line too much, it can indicate skewed data
What is a population
an entire group of individuals from which you randomly select individuals from to represent said population
larger the sample size the more accurate the results as the more representative the sample
what is a simple random sample
When you are selecting a sample and all individuals are equally likely to be a part of the sample
often just inferred but required as assumption for normal distribution
what are parameters
A number calculated from a population which is unknown due to the inability to test said population
σ = population standard dev
p = population proportion
μ = population mean
what are statistic
A number calculated from a sample that can be used to estimate a parameter
x̄ = sample mean
s = sample standard dev
p̂ = proportion of sample
what is needed to estimate unknow parameters from a statistic
to estimate parameters using statistic we need to describe the sampling distribution of values across multiple samples
The larger the sample, the closer the statistic gets to the parameter
The sampling distribution is calculated using the mean of sample means from multiple experiments ( is an estimate of the population mean)
how to determine the standard error of a sample mean
n = sample size
σx = sample mean
σ= population standard dev
increase in sample size leads to decrease in standard deviation

how to calculate the normal distribution of a simple random sample
sample mean = n(population mean, population standard dev/the square root of n
what is the central limit theorem
The sample distribution of a sample mean approaches a normal distribution the larger the sample size is
A general rule of thumb is that is the sample size is over 30 then we can assume a normal distribution of our sampling distribution
how to figure out that impossible quiz question
For a random variable (x) normally distributed with mean and standard deviation, each value of n will be a certain number of standard deviations way from the mean
if the curve seems to sit one unit away from the mean, it means that most of the data sit 3 STD according to the empirical rule