## Sampling and Data Collection
Population and Samples
In statistics, the population refers to the entire group of individuals or items that a researcher is interested in studying. It's often impractical, too costly, or too time-consuming to collect data from every member of a population. Therefore, a sample – a smaller, representative subset of the population – is often studied instead. A sampling frame is a list of all members of the population from which a sample can be drawn (e.g., a school register, a customer database).
## Sampling Methods
Random Sampling (Probability Sampling): Each member of the population has a known, non-zero chance of being selected, aiming for an unbiased and representative sample.
Non-Random Sampling (Non-Probability Sampling): Selection is not based on chance, meaning some members have no chance of selection, potentially leading to bias.
## Types of Data
## Data Collection Considerations
When collecting data, especially through questionnaires, it's crucial to avoid bias. Questions should be clear, unambiguous, and not leading (suggesting a preferred answer). A pilot study can help identify issues before full data collection.
## Tables, Charts and Diagrams
Visualising data is crucial in statistics to identify patterns, trends, and anomalies more easily than looking at raw numbers. Choosing the correct chart depends on the type of data you have.
All charts should have a clear title, properly labelled axes with units, and an appropriate scale. A key or legend may be needed.
Charts can be manipulated to misrepresent data. Be aware of:
## Measures of Central Tendency
Measures of central tendency describe the centre or average of a dataset.
Choosing a Measure of Central Tendency:
## Measures of Spread
Measures of spread (or dispersion) describe how spread out or variable the data is.
Choosing a Measure of Spread:
## Understanding Probability
Probability is a measure of the likelihood that an event will occur. It is expressed as a value between 0 and 1, inclusive.
## Types of Probability
P(Event) = (Number of favourable outcomes) / (Total number of possible outcomes).
P(Event) = (Number of times the event occurred) / (Total number of trials).
As the number of trials increases, experimental probability tends to get closer to theoretical probability.
## Combining Events
If A and B are mutually exclusive, P(A or B) = P(A) + P(B).
If A and B are independent, P(A and B) = P(A) × P(B).
## Conditional Probability
Conditional probability is the probability of an event occurring given that another event has already occurred. It is denoted as P(A|B), which means "the probability of A given B".
## Tools for Probability
## Correlation and Scatter Diagrams
Correlation describes the relationship between two variables. When you plot paired data on a scatter diagram, each point represents a pair of values. The pattern of these points helps visualise the correlation.
## Types and Strength of Correlation
The strength of correlation indicates how closely the points cluster around a straight line.
## The Correlation Coefficient (r)
The correlation coefficient (r) is a numerical measure of the strength and direction of a linear relationship.
## Correlation vs. Causation
It is vital to remember that correlation does not imply causation. Just because two variables are correlated, it doesn't mean one causes the other. There might be a confounding variable or it could be a complete coincidence.
## Line of Best Fit (Regression Line)
For data showing a linear correlation, you can draw a line of best fit (also called a regression line) on a scatter diagram. This line should pass through the general trend of the points, with roughly an equal number of points above and below it.
## Outliers
Outliers are data points that lie far away from the general trend of the other points. They can significantly affect the correlation coefficient and the position of the line of best fit.
## Index Numbers
Index numbers are used to measure the percentage change in a variable over time, relative to a specific base period. The base period is always assigned an index of 100. They simplify comparisons and highlight trends.
Calculation:
Index Number = (Value in current period / Value in base period) * 100
For example, if the price of an item was £10 in the base year and £12 in the current year, the index number would be (12/10) * 100 = 120. This indicates a 20% increase.
Common examples include the Retail Price Index (RPI) and Consumer Price Index (CPI), which measure inflation by tracking changes in the prices of a 'basket' of goods and services. A key advantage is ease of comparison; a limitation is that the choice of base period or basket of goods might not be representative for everyone.
## Time Series
A time series is a sequence of data points measured at successive points in time. Analysing time series helps to identify patterns and make forecasts.
Components of a Time Series:
Moving Averages:
Moving averages are used to smooth out short-term fluctuations (seasonal and random variations) in a time series, revealing the underlying trend more clearly. A 3-point moving average, for instance, is the average of three consecutive data points.
For an even number of points (e.g., a 4-point moving average), the average is initially placed between data points. To align it with an actual time point, you must centre the moving average by taking the average of two consecutive moving averages.
Forecasting:
Forecasting involves using past data patterns to predict future values. This typically involves:
1. Calculating moving averages to determine the trend.
2. Calculating seasonal variations by subtracting the trend from the actual values (Actual - Trend).
3. Averaging the seasonal variations for each specific period (e.g., Quarter 1, Quarter 2).
4. Projecting the future trend line.
5. Adding the average seasonal variation to the projected trend for each future period.
The additive model for a time series is often expressed as: Time Series = Trend + Seasonal Variation + Random Variation. Limitations of forecasting include the assumption that past patterns will continue and the impact of unforeseen events.