1/36
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
Probability density function
A probability density function describes the probability of a continuous random variable falling within a particular interval of values, with the area between the function and the x-axis defining the probability over an interval and the y-axis being the probability density.
The probability over an interval therefore can be found by integrating the probability density function using the limits of the interval.
Since probability cannot take a negative value, the function cannot be negative or go below the x-axis.
Since the total probability for a continuous random variable is 1, the total area under the curve must be equal to 1.
Since the probability of a continuous random variable taking a single value is 0 (P(X = a) = 0), P(X < a) and P(X ≤ a) have the same value.
Probability density functions can be represented by a combination of different functions, each corresponding to part of the domain. These are known as piecewise probability density functions:

Cumulative distribution function
A cumulative distribution function calculates the accumulated probability of a continuous random variable taking a value less than or equal to a specific value of x.
The cumulative distribution function is obtained by integrating each part of the piecewise probability density function using the lowest value of the domain (L) as the lower limit and x as the upper limit, adding the cumulative probability of the previous parts to the next part. A dummy variable (t) is used for the integration. The cumulative distribution function is also defined piecewise.


The cumulative distribution function can be used to directly find P(X ≤ x).
Obtaining a probability density function (f(x)) from a cumulative distribution function (F(x))
Differentiate each part of the piecewise cumulative distribution function, then define each part: f(x) = d/dx(F(x))
For parts of the cumulative distribution function that differentiate to 0, define the probability density function as 0 for ‘otherwise’.
Percentiles
The nth percentile of a continuous random variable, X, is the value of x where P(X ≤ x) = n/100.
The median is the 50th percentile, the lower quartile is the 25th percentile, and the upper quartile is the 75th percentile.
To find the nth percentile (x) from a cumulative distribution function, identify the correct interval of the piecewise cumulative distribution function, and set up the equation F(x) = n/100, then rearrange to find x.
To find the nth percentile from a probability distribution function, find the cumulative distribution function first.
Mode of a continuous random variable
The mode of a continuous random variable is the point with highest y-value (probability density) of a probability density function.
This is either at one of the end-points of the piecewise domains or at a maximum point.
Differentiate the probability density function, and compare with the y-values obtained from the end-points of the piecewise domains to find the highest.
Calculating E(X) of a continuous random variable X
Where f(x) is the probability density function of the continuous random variable X:

For continuous random variables defined with a piecewise probability density function, integrate each part of the function with their respective intervals as the limits then add them together.
Calculating E(g(X)) of a continuous random variable X
Where f(x) is the probability density function of the continuous random variable X, and g(X) is a function of X:

For continuous random variables defined with a piecewise probability density function, integrate each part of the function with their respective intervals as the limits, adding them together.
Calculating Var(X) of a continuous random variable X
Var(X) = E(X2) - (E(X))2
Consider the continuous random variable X with the cumulative distribution function

Find the cumulative distribution function of Y = X2 / 4
Define G(y), the cumulative distribution function of y:
G(y) = P(Y ≤ y)
Substitute the definition of Y: G(y) = P(X2 / 4 ≤ y)
Rearrange to make X the subject: G(y) = P(X ≤ 2√y)
G(y) = F(2√y)
Form G(y) by substituting each x of F(x) with 2√y and transforming the intervals using Y = X2 / 4:

Consider the continuous random variable X with the cumulative distribution function

Find the cumulative distribution function of Y = 1/X
Define G(y), the cumulative distribution function of y:
G(y) = P(Y ≤ y)
Substitute the definition of Y: G(y) = P(1/X ≤ y)
Rearrange to make X the subject: G(y) = P(X ≥ 1/y)
G(y) = 1 - F(1/y)
Form line 2 of G(y): substitute x with 1/y in the middle formula of F(x) and subtract the result from 1. Transform the domain boundaries using Y = 1/X.
Form line 1 of G(y): if y < 1/2, then X ≥ 1/y where 1/y > 2. Since X cannot be greater than 2, P(Y ≤ y) = 0 for all y < 1/2.
Form line 3 of G(y): if y > 1, then X ≥ 1/y where 1/y < 1. Since X is always greater or equal to 1, P(Y ≤ y) = 1 for all y > 1.

Sxx
Sum of squared deviations of x from its mean:


Degrees of freedom
The degrees of freedom of a calculation is the number of values in the calculation that are free to vary and are independent.
Degrees of freedom = n - number of parameters estimated
n = sample size
Unbiased estimator of the variance
A population’s variance can be estimated by taking a random sample from it and calculating the unbiased estimator of the variance, s2:

To ensure the estimator is unbiased, the formula involves division by the number of degrees of freedom (n - 1), as one parameter (the population mean, μ) has been estimated using the sample mean, x̄.
t-distribution curve
The t-distribution is a family of curves showing the probability distribution of the test statistic.
The y-axis is the probability density, and the x-axis is the test statistic.
Features of the curves include the following:
Mean = median = mode = 0, meaning the curve is centred at a test statistic of 0.
It is bell-shaped.
The total area beneath each curve is equal to 1.
It is symmetrical about the mean, which is at the centre peak.
The tails of the curve are asymptotic towards the x-axis.
The curves in the family vary in structure due to their varying degrees of freedom:
When the sample size and degrees of freedom are small, there is higher probability density at the tails.
When the sample size and degrees of freedom are large, there is less probability density at the tails.
When the degrees of freedom approaches infinity, the curve converges to the shape of the normal distribution curve.

One-tailed and two-tailed tests
A one-tailed test tests whether the sample mean has a directional increase or decrease.
Right-tailed test: μ > k
Left-tailed test: μ < k
A two-tailed test tests whether the sample mean has an non-directional difference.
Critical value
The critical value is the boundary between the region of acceptance and rejection on a probability distribution: if the calculated test statistic is more extreme than the critical value, the null hypothesis H0 is rejected.
Significance level
The significance level is the area at the extremities of the curve that are rejected.
Single-sample t-test
A single-sample t-test is a hypothesis test that determines whether there is a significant difference between the mean of the sample group and the hypothesised mean of the population.
It is used when the population is normally distributed and when the population variance, σ2, is unknown.
State whether the test is a one-tailed or two-tailed test.
Two hypotheses are made:
Null hypothesis, H0: μ = k, where k is the assumed value of the mean that is being tested.
Assumes that any difference between the mean of the sample group and the hypothesised mean of the population has negligible meaning and is due to random sampling fluctuation.
Alternative hypothesis, H1: μ ≠ k / μ > k / μ < k, where k is the assumed value of the mean that is being tested.
A one-tailed test uses μ > k / μ < k.
A two-tailed test uses μ ≠ k.
Assumes the mean of the sample group and the hypothesised mean of the population have a statistically significant difference.
The test statistic / t-value is calculated: test statistic = (x̄ - μ) / (s / √n), where x̄ is the sample mean, s is the unbiased estimator of the standard deviation, μ is the hypothesised mean of the population, and n is the sample size.
The test statistic shows the number of standard errors the sample mean is away from the hypothesised mean of the population.
The numerator calculates the difference of the sample mean from the hypothesised mean of the population.
The denominator is the standard error of the mean. A high standard error of the mean indicates that the sample mean is unstable and is unreliable as a representation of the population mean. A low standard error of the mean indicates that the sample mean is stable and is a reliable representation of the population mean.
The critical value is found:
Critical value = tp, n-1
One-tailed test: p = 1 - significance level
Two-tailed test: p = 1 - (significance level / 2)
n-1 is the degree of freedom.
The critical value is found by using a t-distribution table and locating the value of p and the degrees of freedom. We make the critical value positive for a right-tailed test, negative for a left-tailed test, or matching the sign of the test statistic for a two-tailed test.
The null hypothesis H0 is then not rejected if the calculated test statistic is less extreme than the critical value and is rejected if the calculated test statistic is more extreme than the critical value.
The conclusion is stated:
If H0 is not rejected: ‘there is insufficient evidence to claim [H1]’, where H1 is written in the context of the question.
If H0 is rejected: ‘there is sufficient evidence to claim [H1]’, where H1 is written in the context of the question.
2-sample Z-test
A 2-sample Z-test is a hypothesis test that determines if there is a significant difference from the hypothesised difference of two population means.
It is used when the sample sizes are small, the true population variances are known, the two groups of data are independent from each other, and the populations are normally distributed.
It is used when the sample sizes are large: n1 ≥ 30, n2 ≥ 30, the true population variances are unknown, and the two groups of data are independent from each other.
State whether the test is a one-tailed or two-tailed test.
Two hypotheses are made:
Null hypothesis, H0: μ1 - μ2 = k
Assumes that any difference from the hypothesised difference of the two population means has negligible meaning and is due to random sampling fluctuation.
Alternative hypothesis, H1: μ1 - μ2 ≠ k, μ1 - μ2 > k, μ1 - μ2 < k
A one-tailed test uses μ1 - μ2 > k / μ1 - μ2 < k
A two-tailed test uses μ1 - μ2 ≠ k
Assumes that any difference from the hypothesised difference of the two population means is statistically significant.
The test statistic / z-value is calculated, where x̄ is the sample mean, μ is the hypothesised mean of the population, σ2 is the population variance, and n is the sample size:

If the population variances are unknown, the unbiased estimator of the variances is used.
The test statistic shows how many standard errors the difference in sample means is away from the hypothesised difference.
The numerator calculates the difference between the difference of the two sample means and the hypothesised difference between the population means.
The denominator is the standard error of the difference between means. A high standard error indicates that the calculated difference is sample means is unstable and unreliable as a representation of the difference between population means. A low standard error indicates that the difference between the sample means is stable and a reliable representation of the difference between population means.
The critical value is found using the normal distribution table:
Find the area of rejection in each tail, which is equal to the significance level for a one-tailed test and is equal to the significance level / 2 for a two-tailed test.
1 - area of rejection = target area, which is located in the table body to find the critical value.
We make the critical value positive for a right-tailed test, negative for a left-tailed test, or matching the sign of the test statistic for a two-tailed test.
The null hypothesis H0 is then not rejected if the calculated test statistic is less extreme than the critical value and is rejected if the calculated test statistic is more extreme than the critical value.
The conclusion is stated:
If H0 is not rejected: ‘there is insufficient evidence to claim [H1]’, where H1 is written in the context of the question.
If H0 is rejected: ‘there is sufficient evidence to claim [H1]’, where H1 is written in the context of the question.
Pooled estimator of common variance
A pooled estimator of a common variance is used when two populations have unknown but equal variances to estimate this variance.
It is used for 2-sample t-tests when the sample sizes are too small for a 2-sample Z-test (n1 < 30, n2 < 30) and the true population variances are unknown.
When you are not given unbiased estimators of the variance for each sample, the following formula is used:

When you are given the unbiased estimators of the variance for each sample, the following formula can be derived from the previous:

2-sample t-test
A 2-sample t-test is a hypothesis test that determines if there is a significant difference from the hypothesised difference of two population means.
It is used when the two groups of data are independent from each other, are normally distributed, and the true variances of the populations are unknown but the same.
Sample sizes can be small.
State whether the test is a one-tailed or two-tailed test.
Two hypotheses are made:
Null hypothesis, H0: μ1 - μ2 = k
Assumes that any difference from the hypothesised difference of the two population means has negligible meaning and is due to random sampling fluctuation.
Alternative hypothesis, H1: μ1 - μ2 ≠ k, μ1 - μ2 > k, μ1 - μ2 < k
A one-tailed test uses μ1 - μ2 > k / μ1 - μ2 < k
A two-tailed test uses μ1 - μ2 ≠ k
Assumes that any difference from the hypothesised difference of the two population means is statistically significant.
The pooled estimator of the common variance is calculated.
The test statistic / t-value is calculated, where x̄ is the sample mean, μ is the hypothesised mean of the population, s2 is the pooled estimator of common variance, and n is the sample size:

The test statistic shows how many standard errors the difference in sample means is away from the hypothesised difference.
The numerator calculates the difference between the difference of the two sample means and the hypothesised difference between the population means.
The denominator is the standard error of the difference between means. A high standard error indicates that the calculated difference in sample means is unstable and unreliable as a representation of the difference between population means. A low standard error indicates that the difference between the sample means is stable and a reliable representation of the difference between population means.
The critical value is found:
Critical value = tp, n1 + n2 -2
One-tailed test: p = 1 - significance level
Two-tailed test: p = 1 - (significance level / 2)
n1 + n2 - 2 is the degree of freedom.
The critical value is found by using a t-distribution table and locating the value of p and the degrees of freedom. We make the critical value positive for a right-tailed test, negative for a left-tailed test, or matching the sign of the test statistic for a two-tailed test.
The null hypothesis H0 is then not rejected if the calculated test statistic is less extreme than the critical value and is rejected if the calculated test statistic is more extreme than the critical value.
The conclusion is stated:
If H0 is not rejected: ‘there is insufficient evidence to claim [H1]’, where H1 is written in the context of the question.
If H0 is rejected: ‘there is sufficient evidence to claim [H1]’, where H1 is written in the context of the question.
Paired sample t-test
A paired sample t-test is used to measure the effect of a variable on a set of data that is measured twice: before the change in variable and after. The mean of the differences between each pair of data is calculated.
It is used when the two groups of data contain corresponding pairs and the differences between the pairs are normally distributed.
State whether the test is a one-tailed or two-tailed test.
Two hypotheses are made:
Null hypothesis, H0: μd = k
Assumes that any mean difference observed between the paired measurements that is different to the hypothesised mean difference has negligible meaning and is due to random sampling fluctuation.
Alternative hypothesis, H1: μd ≠ k, μd > k, μd < k
A one-tailed test uses μd > k / μd < k
A two-tailed test uses μd ≠ k
Assumes that any mean difference observed between the paired measurements that is different from the hypothesised mean difference is statistically significant.
Calculate the unbiased estimator of the variance of the differences, where n is the number of data pairs:

The test statistic / t-value is calculated, where d̄ is the sample mean difference between the pairs of data, μd is the hypothesised mean difference between the pairs of data, s2d is the unbiased estimator of the variance of the differences, and n is the number of data pairs:

The test statistic shows how many standard errors the sample’s mean of the differences between the pairs of data is away from the hypothesised mean of the differences.
The numerator is the sample mean of the differences between the pairs of data.
The denominator is the standard error of the mean difference. A high standard error indicates that the calculated mean of the differences between the pairs of data is unstable and unreliable as a representation of the mean difference present in the population. A low standard error indicates that the calculated mean of the differences between the pairs of data is stable and a reliable representation of the mean difference present in the population.
The critical value is found:
Critical value = tp, n-1
One-tailed test: p = 1 - significance level
Two-tailed test: p = 1 - (significance level / 2)
n-1 is the degree of freedom.
The critical value is found by using a t-distribution table and locating the value of p and the degrees of freedom. We make the critical value positive for a right-tailed test, negative for a left-tailed test, or matching the sign of the test statistic for a two-tailed test.
The null hypothesis H0 is then not rejected if the calculated test statistic is less extreme than the critical value and is rejected if the calculated test statistic is more extreme than the critical value.
The conclusion is stated:
If H0 is not rejected: ‘there is insufficient evidence to claim [H1]’, where H1 is written in the context of the question.
If H0 is rejected: ‘there is sufficient evidence to claim [H1]’, where H1 is written in the context of the question.
Confidence interval for a population mean when n<30 and population variance is unknown
The confidence interval for a population mean represents the reliability of the population mean being within that interval if the estimation process was repeated multiple times. For example, a 95% confidence interval would have a 95% theoretical long-run expected average, meaning 95% of the random samples taken will have the population mean within the interval.
When the population variance is unknown and n<30, the t-distribution is used.
Confidence interval = x̄ ± (tp, n-1)(s/√n), where x̄ is the sample mean, tp, n-1 is the critical value for a two-tailed test, s is the square root of the unbiased estimator of the variance, and n is the sample size.
s/√n is the standard error of the mean and represents the average distance the sample mean will miss the true population mean due to random sampling fluctuation.
The confidence interval is written in the form (lower bound, upper bound)
Confidence interval + significance level = 100%
Confidence interval for a difference in population means when n≥30
The confidence interval for a difference in population means represents the reliability of the true difference in population means being within that interval if the estimation process was repeated multiple times. For example, a 95% confidence interval would have a 95% theoretical long-run expected average, meaning 95% of the random samples taken will have the true difference in population means within the interval.
When n≥30, the normal distribution is used.
To find the confidence interval, the following formula is used, where x̄ and ȳ are the sample means, the critical value is for a two-tailed test, s2 is the unbiased estimator of the variance, and nx and ny are the sample sizes:

√(s2x / nx + s2y / ny) is the standard error of the difference of means and represents the average distance the difference in means will miss the true difference in means due to random sampling fluctuation.
The confidence interval is written in the form (lower bound, upper bound)
Confidence interval + significance level = 100%
Confidence interval for a difference in population means when n<30
The confidence interval for a difference in population means represents the reliability of the true difference in population means being within that interval if the estimation process was repeated multiple times. For example, a 95% confidence interval would have a 95% theoretical long-run expected average, meaning 95% of the random samples taken will have the true difference in population means within the interval.
When n<30, the t-distribution is used.
To find the confidence interval, the following formula is used, where x̄ and ȳ are the sample means, tp, nx + ny - 2 is the critical value for a two-tailed test, s2p is the pooled estimator of the common variance, and nx and ny are the sample sizes:

√(s2p(1/nx + 1/ny)) is the standard error of the difference of means and represents the average distance the difference in means will miss the true difference in means due to random sampling fluctuation.
The confidence interval is written in the form (lower bound, upper bound)
Confidence interval + significance level = 100%
Poisson distribution
The Poisson distribution is a discrete probability distribution that models the number of times an event occurs in a fixed interval of time, e.g. the number of particles emitted by a radioactive source per second.
For a probability distribution to be a Poisson distribution, the following criteria must be met:
Events are discrete
Events are independent
The average number of events per unit of time (λ) remains constant.
E(x) = Var(X) = λ
A discrete random variable, X, that has a Poisson distribution is denoted by X ~ Po (λ), where λ is the average number events per unit of time.
The probability of observing r events in an interval is found using the following formula, where X is the discrete random variable representing the number of events in an interval, and λ is the average number of events per interval:

Discrete uniform distribution
A discrete probability distribution in which the random variable takes specific values, and each value has an equal probability.
Continuous uniform distribution
A continuous probability distribution in which the random variable takes any real value within an interval, and each interval has the same probability density.
A continuous random variable, X, that has a uniform distribution is denoted by X ~ U(a,b), where a is the lower bound of the interval and b is the upper bound of the interval.
The following is the probability density function for a continuous uniform distribution, where a is the lower bound of the interval and b is the upper bound of the interval:

χ2-distribution curve
The χ2-distribution is a family of curves showing the probability distribution of the test statistic.
The y-axis is the probability density, and the x-axis is the test statistic.
Features of the curves include the following:
Test statistic ≥ 0
It is non-symmetrical and right-skewed.
The total area beneath each curve is equal to 1.
The left tail starts sharply at the origin, and the right tail is asymptotic to the positive x-axis.
The curves in the family vary in structure due to their varying degrees of freedom:
When the sample size and degrees of freedom increase, the curve’s right-skewed peak moves to the right.

χ2 goodness of fit test
A χ2 goodness of fit test is used to determine whether a given probability distribution matches a hypothesised distribution.
Possible hypothesised distributions include a discrete uniform distribution, a binomial distribution, a Poisson distribution, a continuous uniform distribution, and a normal distribution.
Two hypotheses are made:
Null hypothesis (H0): The [distribution] is a good-fit model.
Alternative hypothesis (H1): The [distribution] is not a good-fit model.
For the results of the χ2 goodness of fit test to be valid, the expected frequency of every category must be greater or equal to 5 (E ≥ 5).
If the expected frequency of a category is less than 5, frequencies of adjacent categories must be combined.
The expected frequency (E) of each category is calculated:
Discrete uniform distribution: E = total sample size / number of categories
Binomial distribution: E = ((nCr)(pr)(1-p)n-r)(total sample size)
Poisson distribution: E = ((λxe-λ)/x!)(total sample size)
Continuous uniform distribution: E = (class width)(probability density)(total sample size)
Normal distribution: E = (area under curve)(total sample size)
Ensure that the smallest interval includes all of the values below it in the lower tail and that the largest interval includes all of the values above it in the upper tail.
To find the probability of the final interval, use 1 - sum of previous intervals’ probabilities
The test statistic is calculated, where O is the observed frequency, E is the expected frequency, and Σ means that the result of each category are added together:

The degrees of freedom are calculated and stated: df = number of categories after combination - number of parameters estimated - 1
Discrete uniform distribution: 0 parameters estimated
Binomial distribution: 1 parameter estimated if p is calculated
Poisson distribution: 1 parameter estimated if λ is calculated
Continuous uniform distribution: 0 parameters estimated
Normal distribution: 2 parameters estimated if μ and σ2 are calculated
The critical value is found:

p = 1 - significance level
The critical value is found by using a χ2 distribution table and locating the values of p and the degrees of freedom.
The null hypothesis H0 is then not rejected if the calculated test statistic is less extreme than the critical value and is rejected if the calculated test statistic is more extreme than the critical value.
The conclusion is stated:
If H0 is not rejected: ‘there is insufficient evidence to claim [H1]’
If H0 is rejected: ‘there is sufficient evidence to claim [H1]’
χ2 independence test
A χ2 independence test is used to determine whether there is a statistically significant association between two categorical variables.
A contingency table is used to organise frequency data across the two categorical variables.
Two hypotheses are made:
Null hypothesis (H0): There is no association between [Variable 1] and [Variable 2].
Alternative hypothesis (H1): There is an association between [Variable 1] and [Variable 2].
For the results of the χ2 independence test to be valid, the expected frequency of every cell of the contingency table must be greater or equal to 5 (E ≥ 5).
If the expected frequency of a cell is less than 5, frequencies of adjacent rows or columns must be combined.
The expected frequency (E) of each cell is calculated: (row total)(column total) / total sample size
Probability of a random selection being in a particular row = row total / total sample size
Probability of a random selection being in a particular column = column total / total sample size
If the row variable and column variable are independent, the probability of a random selection being in a particular row and a particular column = (row total / total sample size)(column total / total sample size)
Expected frequency (E) of a cell = (total sample size)(row total / total sample size)(column total / total sample size) = (row total)(column total) / total sample size
The test statistic is calculated, where O is the observed frequency, E is the expected frequency, and Σ means that the result of each cell are added together:

The degrees of freedom are calculated and stated: df = (number of rows - 1)(number of columns - 1)
In any individual row, the last cell is not free to vary.
In any individual column, the last cell is not free to vary.
Since these two restrictions occur simultaneously, the total degrees of freedom is equal to the product of the degrees of freedom of any individual row and any individual column.
The critical value is found:

p = 1 - significance level
The critical value is found by using a χ2 distribution table and locating the values of p and the degrees of freedom.
The null hypothesis H0 is then not rejected if the calculated test statistic is less extreme than the critical value and is rejected if the calculated test statistic is more extreme than the critical value.
The conclusion is stated:
If H0 is not rejected: ‘there is insufficient evidence to claim [H1]’
If H0 is rejected: ‘there is sufficient evidence to claim [H1]’