Probability Statistics

Cover

Data collection L2-1.pptx

Table of contents

  1. Learning goal
  2. Statistics
  3. What is the most popular car in Queensland?
  4. What do you think it means for a car to be popular?
  5. Copy and finish the sentence in your books
  6. Collecting data
  7. Processing data
  8. Analysis

1. Learning goal

1.1 Data collection and display

This section outlines the learning objective: to understand how to collect data through observation and then display it using a dot plot and a histogram in Excel. The practical application involves a car model observation activity.

  • Data collection activity: Students will engage in observing car models to gather data.
  • Data organization: Collected data will be organized into a frequency table.
  • Data visualization: The data will be displayed using a dot plot and a bar graph in Excel.

📝 The learning goal is to master collecting data by watching cars and then creating visual representations like dot plots and histograms in Excel.

2. Statistics

2.1 The role of a census

A census is a crucial statistical tool used to ensure that the perspectives of all groups within a population are represented. This is particularly important when dealing with smaller or minority groups whose views might otherwise be overlooked in broader surveys.

  • Census purpose: To guarantee the inclusion of views from small or specific groups.
  • Application: Essential for comprehensive data collection where diverse opinions matter.

📝 A census is used in statistics to make sure that the opinions of small groups are heard, just like ensuring every student's favorite color is counted in a class survey.

3. What is the most popular car in Queensland?

3.1 Researching car popularity

This section introduces a research question about the most popular car make in Queensland, inspired by an observation about Honda's popularity in Japan. The initial internet search revealed conflicting and untrustworthy information, highlighting the challenges in finding reliable data for such inquiries.

  • Inspiration: An article noted Honda as the most popular car in Japan, prompting a similar question for Queensland.
  • Information challenge: Internet searches for car popularity in Queensland yielded confusing and unreliable results.
  • Need for reliable data: The difficulty in finding a single, trustworthy answer emphasizes the need for a systematic approach to data collection.

📝 The challenge of finding the most popular car in Queensland is like trying to find the best ice cream flavor when everyone has a different favorite and no one agrees on a survey method.

4. What do you think it means for a car to be popular?

4.1 Defining popularity

This section prompts critical thinking about the concept of "popular" in the context of cars. It encourages students to consider various interpretations and criteria that might define a car's popularity beyond simple sales figures.

  • Defining "popular": Students are asked to reflect on what makes a car popular.
  • Multiple interpretations: Popularity can be measured by sales, brand recognition, owner satisfaction, or other factors.

📝 To think about what makes a car popular, consider if it means the car that sells the most, the one people talk about the most, or the one that breaks down the least.

5. Copy and finish the sentence in your books

5.1 Sentence completion task

This section provides a direct instruction for students to complete a sentence within their personal notebooks. This task serves as a brief reinforcement or application of concepts discussed previously, though the specific sentence content is not provided here.

  • Instruction: Students are directed to copy and finish a given sentence.
  • Location: The task is to be completed in their books.

📝 The instruction to "Copy and finish the sentence in your books" is like being asked to complete a thought, such as "The most popular car is popular because..."

6. Collecting data

6.1 Carpark survey activity

This section introduces a practical activity: a carpark survey. This hands-on exercise is designed for students to actively collect data through direct observation, likely focusing on car makes or models as a way to answer the research question posed earlier.

  • Activity: Students will conduct a survey in a carpark.
  • Method: Data collection will be done through observation.
  • Purpose: To gather real-world data on car makes or models.
Cover

data .docx

Table of contents

  1. Task 1: Experimental Design and Statistics
  2. Question 1: Parameter Identification and Hypothesis Formulation
  3. Question 1: Comparing Independent and Paired Samples
  4. Question 2: Diabetes Blood Glucose Levels Comparison

1. Task 1: Experimental Design and Statistics

1.1 Designing an experiment to compare animal speeds

To determine which animal is faster, an echidna or a tuatara, an experiment can be designed by:

  • Collecting a sample of 30 echidnas and 30 tuataras.
  • Ensuring both groups travel the same distance under identical conditions.
  • Recording the time taken for each animal to complete the distance.
  • Repeating the test multiple times for each animal to ensure reliability.

1.2 Statistics and parameters from experimental data

After conducting the experiment, statistical calculations can be made to infer population characteristics.

  • Statistic: The mean time taken for the sample of echidnas and tuataras.
  • Parameter: The true mean time for all echidnas and all tuataras in their respective populations.

1.3 Appropriate graphs for presenting data

When presenting data from an experiment involving one numerical variable (like time) and one categorical variable (like animal type), appropriate graphs include:

  • Parallel boxplots: These visually compare the distribution of a numerical variable across different categories.
  • Dot plots: Similar to boxplots, dot plots can show individual data points for each category, aiding in visualizing spread and potential outliers.

A histogram showing the frequency distribution of body masses of female penguins.

This bar chart displays the frequency distribution of body masses for male penguins.

This box plot displays the body masses of male and female penguins.

1.4 Investigating research questions with data

When working with data, a research question or hypothesis can be formulated. For example, with data on heights and gender:

  • Research question: Are males taller than females?
  • Variable types:
  • Height is a continuous (numerical) variable.
  • Gender is a categorical variable.

1.5 Histograms and bar charts for data visualization

Different types of graphs are used to visualize different data characteristics:

  • Histograms are used to show the frequency distribution of a single numerical variable. For example, a histogram can display the distribution of student heights or penguin body masses.
  • Bar charts are used to show the frequency or count of a categorical variable. For instance, a bar chart can depict the breakdown of gender in a tutorial group.

This bar chart displays the distribution of student heights across three different ranges.

1.6 Comparing distributions using histograms

When comparing distributions of a numerical variable across different categories (e.g., male vs. female heights), histograms can be produced for each category separately.

  • Comparing histograms allows for observation of similarities and differences in the shape, center, and spread of the distributions.
  • For example, one might observe that the majority of males are taller than females, and that the range of female heights might show more drastic changes compared to male heights.

A histogram displays the distribution of temperature readings, with the x-axis representing temperature in Celsius and the y-axis representing the amount of readings within each temperature range.

1.7 Calculating descriptive statistics

Descriptive statistics summarize the main features of a dataset. For a numerical variable like body mass, these include:

  • Mean: The average value.
  • Median: The middle value when data is ordered.
  • Standard deviation: A measure of the spread or dispersion of data around t
Cover

data science copy.pdf

Table of contents

  1. Install and run packages, vectors, and data frames
  2. R vs. RStudio, code structure, and packages
  3. Data structures and objects
  4. Statistical concepts and vocabulary
  5. Mathematical operations and functions in R
  6. Data visualization and repetition
  7. Importing data into R
  8. Exploratory Data Analysis (EDA) and data manipulation
  9. Summary of R topics

1. Install and run packages, vectors, and data frames

1.1 R vs. RStudio

R is the programming language and environment for statistical computing and graphics, while RStudio is an integrated development environment (IDE) that provides a user-friendly interface for R 8.

1.2 Executable and unexecutable code

Executable lines of code are commands that R can process and execute, such as functions or assignments. Unexecutable lines include headings, visual separators, comments, and function arguments, which R ignores during execution 8.

  • Comments: Lines starting with # are comments, used for explanations and are not executed by R.
  • Functions: Predefined commands that perform specific tasks.
  • Arguments: Parameters passed to functions to modify their behavior 8.

📝 Comments, which start with #, are ignored by R, like # This is a comment 8.

1.3 Packages

Packages are collections of R functions, data, and compiled code that extend R's capabilities 8.

1.4 Installing packages

Packages can be installed using a point-and-click interface within RStudio or via the command line.

  • install.packages("package_name"): This command installs a specified package from a repository 2 8.

📝 To install the dplyr package, you would use the command install.packages("dplyr") 2.

1.5 Loading packages

Once installed, packages must be loaded into the current R session to be used.

  • library(package_name): Loads a package, making its functions available 2.
  • require(package_name): Similar to library(), but returns a boolean indicating success or failure 8.

1.6 Data structures

R supports various data structures, each with specific characteristics regarding dimensions, class, and attributes 8.

Data StructureDimensionsKey Characteristics
Vectors1DHomogeneous class, stores elements of the same type
Lists1DCan store elements of different types
Matrices2DHomogeneous class, rectangular shape
Data Frames2DHeterogeneous columns, tabular format
Tibbles2DModern data frames with stricter rules
ArraysnDHomogeneous class, multi-dimensional

1.7 Classes and attributes

Data structures have a class, which defines the type of data they hold (e.g., numeric, character, logical). They can also have attributes, such as names, dimensions, and class itself, which provide metadata 8 9.

  • Numeric: Includes doubles (default floating-point numbers) and integers (whole numbers, often denoted with L, e.g., 1L).
  • Character: Stores text strings.
  • Logical: Stores boolean values (TRUE, FALSE, or T, F) 2.
  • Complex: Stores complex numbers.
  • Factor: Used for categorical data, storing labels and their underlying integer representation 8.

1.8 Creating and manipulating vectors

Vectors are fundamental 1-dimensional data structures in R that store elements of the same class 8.

1.9 Vector creation

Vectors can be created using the c() function, which concatenates its arguments9.

  • c(element1, element2,...): Combines elements into a vector 2.

1.10 Vector classes

Vectors can be of numeric, character, or logical class8.

  • Numeric: 1, 2.5.
  • Integer: 1L, 2L.
  • Logical: TRUE, FALSE, T, F 2.

1.11 Combining vectors

Vectors of the same class can be combined into a single vector.

  • new_vector <- c(vector1, vector2): Creates a new vector by combining existing ones 2.

1.12 Checking vector class

The is.TYPE() functions check if a vector belongs to a specific class 9.

  • is.numeric(vector_name): Returns TRUE if the vector is numeric, FALSE otherwise.
  • is.character(vector_name): Returns TRUE if the vector is character, FALSE otherwise.
  • is.logical(vector_name): Returns TRUE if the vector is logical, FALSE otherwise 2.

1.13 Vector length

The length() function returns the number of elements in a vector9.

  • length(vector_name): Outputs the number of elements 3.

1.14 Assignment and object inspection

Assignment operators are used to store values or results in named objects 7 9.

OperatorDescription
<-Assigns the value on the right to the object on the left
Cover

data science.pdf

Table of contents

  1. Stat 1601
  2. FUNCTIONS
  3. NAMING
  4. FLASHCARDS
  5. unit 1
  6. 8/25 lecture
  7. 8/27 lecture 1.1
  8. 8/28 lab
  9. 9/1 lecture 1.1-.2
  10. 9/3 lecture 1.2
  11. 9/8 lecture 1.2

1. Stat 1601

1.1 R and RStudio Basics

This section introduces fundamental concepts for using R and RStudio, focusing on package management, data structures, and basic operations. Understanding these building blocks is crucial for subsequent data analysis tasks 1 4.

1.2 Installing and Running Packages

Packages in R extend its functionality. They can be installed from online repositories and then loaded into the current session to make their functions available.

  • Install package: Use the install.packages() function to download and install a package.
  • Run package: Use the library() function to load an installed package into your R session, making its functions accessible 4 9.

📝 To install a package named "dplyr", you would use the command install.packages("dplyr") 4.

1.3 Creating and Manipulating Vectors

Vectors are fundamental one-dimensional data structures in R. They can hold elements of a single class, such as numbers, characters, or logical values.

  • Vector creation: The c() function combines elements into a vector.
  • Vector classes:
  • Numeric: Includes integers (1L, 2L) and general numbers (doubles).
  • Logical: Represents TRUE or FALSE values (T, F, TRUE, FALSE, 1, 0).
  • Character: Stores text strings.
  • Checking class: Functions like is.numeric(), is.character(), and is.logical() check the class of a vector9.
  • Defining class: The class() function returns the data type of an object 4 10.

📝 To create a vector named my_vector containing the numbers 1, 2, and 3, you would use my_vector <- c(1, 2, 3) 4.

1.4 Combining and Inspecting Vectors

Vectors can be combined to form larger vectors, and functions exist to view the beginning or end of a vector's contents.

  • Combining vectors: Assign the result of c(vector1, vector2) to a new or existing vector name. Elements must be of a compatible class.
  • Viewing first elements: head(vector_name, n = _) displays the first n elements.
  • Viewing last elements: tail(vector_name, n = _) displays the last n elements 4 10.

1.5 Data Frames

Data frames are two-dimensional data structures that can hold columns of different data types, making them suitable for tabular data.

  • Data frame creation: The data.frame() function creates a data frame from named objects (like vectors) 4 10.

1.6 Accessing Object Names

R provides specific ways to access the names associated with objects, particularly column names in data frames.

  • Dollar sign notation: The USD symbol is used to access elements within objects, especially columns in data frames.
  • names() function: Outputs labels for 1D objects (vectors, matrices) and column names for 2D objects (data frames, tibbles) 4.
  • colnames() function: Specifically outputs column names for 2D objects like data frames or tibbles 5 10.

2. FUNCTIONS

2.1 Core R Functions and Concepts

This section delves into the nature of functions in R, their components, and how they are executed. Functions are the building blocks for performing operations and simplifying complex tasks 3 9 18.

2.2 Understanding Functions and Arguments

Functions are pre-written sets of instructions that perform specific tasks. They often require inputs, known as arguments, to operate correctly.

  • Function definition: A function is a set of instructions designed to simplify tasks in R.
  • Arguments: These are the inputs provided to a function, allowing for customization of its behavior 9 18.
Cover

DEL35_H8_correctiesleutel.DEF.pdf

📚 DEL35_H8_correctiesleutel.DEF.pdf

Brief overview

This document provides a comprehensive introduction to statistical concepts and data analysis. It covers fundamental descriptive statistics, graphical data representation, and advanced topics to enhance understanding of data.

Key points

  • Overview of statistical concepts and data types (numerical, categorical).
  • How to numerically represent and summarize data using statistical measures.
  • Graphical data representation and interpretation of distributions and outliers.
  • Exploration of advanced statistical concepts like percentiles and deciles.
  • Application of statistical principles to solve challenging problems.

1. Introduction to statistics and data types

1.1 What is statistics?

  • Statistics is the study of how to collect, organize, present, and interpret data.
  • It helps us understand patterns and make informed decisions.

1.2 Types of data

Data can be grouped into two main categories: numerical and categorical.

1.2.1 Categorical data

Categorical data describes qualities or characteristics. It can be ordered or not.

Type of Categorical DataDescriptionExamples
Not orderedCategories without a natural sequence.Taste of ice cream, favorite color.
OrderedCategories with a clear order or ranking.T-shirt sizes (S, M, L), education levels.

1.2.2 Numerical data

Numerical data consists of measurable quantities.

  • These are numbers that can be measured or counted.
  • Examples include the number of bedrooms in a house or the distance to a bus stop.

1.3 Presenting and summarizing data

Data needs to be organized and summarized to be understood.

  • Frequency tables show how often each value or category appears. They can be grouped or not grouped.
  • Graphical representations, like bar charts and pie charts, help visualize data.

1.3.1 Graphical representations

Different graphs are used to show data patterns.

  • Bar charts are good for comparing categories.
  • Pie charts show parts of a whole. They are useful for proportions.
  • Line graphs show trends over time. They are great for showing changes.
  • Dot plots use dots to represent data points. They are helpful for small datasets.

Graphs can sometimes be misleading, especially if the scale on an axis doesn't start at zero.

1.4 Numerical summaries of data

We use numbers to describe the center and spread of data.

1.4.1 Measures of central tendency

These describe the typical value in a dataset.

MeasureDescription
ModeThe value that appears most often. It works for all data types.
MedianThe middle value when data is ordered. It is not affected by extreme values (outliers).
MeanThe average value, calculated by summing all values and dividing by the count.

The mean is sensitive to outliers, meaning extreme values can significantly change its value.

1.4.2 Measures of dispersion

These describe how spread out the data is.

MeasureDescription
RangeThe difference between the highest and lowest values. It is sensitive to outliers.
VarianceThe average of the squared differences from the mean. It measures how far data points are from the average.
Standard DeviationThe square root of the variance. It shows the typical amount data varies from the mean.
Interquartile Range (IQR)The difference between the third quartile (Q3) and the first quartile (Q1). It shows the spread of the middle 50% of data.

🔑 Important: The median is the same as the second quartile (Q2).

1.5 Grouped data

When data is organized into intervals, we can estimate these measures.

  • For grouped data
Cover

ders 3-4 Descriptives of Statistics 1.pdf

Table of contents

  1. Arithmetic Mean
  2. Quartile, Decile and Percentile
  3. Histogram

1. Arithmetic Mean

1.1 Central tendency

Central tendency measures, also known as location measures, indicate the midpoint of a distribution or where observations tend to accumulate. These criteria help make large bodies of information understandable by summarizing all data with a single point.

Central tendency measures are useful for defining a group by a characteristic and for comparing groups based on the same characteristics 2 3.

1.2 Arithmetic mean

The arithmetic mean is a measure of central tendency that can be calculated for interval and proportional scaled data, but not for classified or sequential scaled data. It is affected by all values in the dataset, including extreme values.

The arithmetic mean is widely used in daily life and is suitable for mathematical operations. However, its value may not correspond to an actual observation value in the dataset; for instance, while all observations might be integers, the mean can be fractional 5.

The arithmetic mean can represent either a population parameter or a sample statistic 4.

The arithmetic mean is sensitive to extreme values. For example, consider three datasets:

  • Dataset A: 40, 42, 48, 38, 43, 50. Average = 43.5.
  • Dataset B: 1, 42, 48, 38, 43, 50. Average = 37.
  • Dataset C: 40, 42, 48, 38, 43, 101. Average = 52.

In datasets B and C, the presence of an extreme value (1 or 101) significantly alters the mean, weakening its ability to represent the group 6.

1.3 Geometric mean

The geometric mean is appropriate when determining the rate of change between successive observations in a series. Examples include population growth rates over time or average rates of microbe reproduction.

It is less sensitive to extreme values than the arithmetic mean. The geometric mean cannot be calculated if any observation value is zero or negative 7.

📝 Calculate the geometric mean of the spatial size of the Earth with a cell.

  • Skin cell length: 3×10−83 \times 10^{-8} m
  • Diameter of the Earth: 1.3×1071.3 \times 10^7 m

The geometric mean of these two values is approximately 0.6 m, which is comparable to the height of a newborn baby. This suggests that a newborn baby's height is situated between the size of a human cell and the diameter of the Earth 9.

1.4 Harmonic mean

The harmonic mean is used for calculating averages of rates, such as average speed, average price, or average production and yield. It is the least commonly used average in statistics.

If any observation value is zero, the harmonic mean will be zero. It is also meaningless if the dataset contains values with different signs 10.

📝 Calculate the harmonic mean of the following numbers: 4, 15, 17, 5, 22.

HM=514+115+117+15+122=8.05HM = \frac{5}{\frac{1}{4} + \frac{1}{15} + \frac{1}{17} + \frac{1}{5} + \frac{1}{22}} = 8.05 11.

1.5 Relationship between arithmetic mean, geometric mean, and harmonic mean

For any set of positive numbers, the arithmetic mean is always greater than or equal to the geometric mean, which is always greater than or equal to the harmonic mean 12.

📝 Calculate the arithmetic, geometric, and harmonic averages for the numbers 4, 15, 17, 5, 22 and examine the relationship between them.

  • Arithmetic Mean = 12.6
  • Geometric Mean = 10.23
  • Harmonic Mean = 8.05

This example demonstrates that Arithmetic Mean > Geometric Mean > Harmonic Mean 12.

1.6 Weighted arithmetic mean

The weighted arithmetic mean is used when observation values in a dataset have varying degrees of importance. A weight, proportional to its importance, is assigned to each observation value.

This method is applied in practice for calculating the average of averages, average rates, and annual interest rates. In contrast, the standard arithmetic mean assumes all values have equal weight 13.

📝 A certain amount of money received interest at different rates for different durations: 50 percent for 6 months, 40 percent for 4 months, and 30 percent for 2 months. What is the average annual interest rate applied to this money?

  • Simple Average = (50 + 40 + 30) / 3 = 40%
Cover

ders 5-6-7-8 Normal Distribution 2.pptx

Table of contents

  1. Normality, standard deviation, symmetry

1. Normality, standard deviation, symmetry

1.1 The emergence of statistical concepts

The development of statistical concepts, including the normal distribution, is closely tied to the need to understand and control chance events. This began with probability problems posed by gamblers, such as the one Antonie Gombaud presented to Blaise Pascal in the 1660s.

At that time, predictions about the future relied on less mathematical methods like fortune-telling. Pascal, with the help of Pierre de Fermat, developed a solution based on the probabilities of future outcomes, laying groundwork for more rigorous statistical approaches.

1.2 Fair solution in gambling scenarios

When a game is interrupted, a fair solution involves determining the probabilities of each player winning based on the remaining possible outcomes. The total bet is then distributed proportionally to these probabilities.

For instance, if a game with a 1,000 Lira bet is stopped with one player leading 2 tails to 1 head in a series of 5 tosses, and 2 more tosses remain, Pascal's method would analyze the remaining possibilities.

  • Scenario analysis: There are 4 possible outcomes for the remaining two tosses.
  • Distribution of winnings: In 3 of these outcomes, the leading player wins, and in 1, the other player wins.
  • Pascal's decision: The first player receives 3/4 of the bet (750 Liras), and the second player receives 1/4 (250 Liras).

This approach highlights how probability can be used to resolve disputes in uncertain situations.

1.3 Binomial coefficients and distribution patterns

Pascal's work on gambling problems led him to observe patterns in the distribution of possible outcomes. He noticed that these patterns corresponded to the coefficients found in the binomial triangle, a concept previously described by the Turkish-Muslim mathematician Ömer Hayyam.

This observation suggested that the histograms of possible outcomes followed a predictable mathematical structure.

  • Pascal's observation: The distribution of outcomes in probability problems resembles the coefficients in the binomial triangle.
  • Histogram patterns: The visual representation of these outcomes (histograms) exhibits a consistent shape.

This connection between probability, binomial coefficients, and visual distribution patterns was a significant step towards understanding more complex statistical distributions.

1.4 Abraham de Moivre and the "modulus"

Approximately 70 years after Pascal's death, Abraham de Moivre, a French mathematician, built upon Pascal's work. De Moivre proposed that the decrease in histogram heights on either side of the peak could be mathematically described by a parameter he termed the "modulus."

This parameter aimed to quantify the spread or dispersion of the distribution.

1.5 Johann Carl Friedrich Gauss and the normal distribution function

In 1810, Johann Carl Friedrich Gauss, a highly influential mathematician, further developed de Moivre's ideas. Gauss defined a differential equation that could parameterize Pascal's histograms, effectively formalizing the mathematical description of the distribution.

This work is foundational to what is now known as the normal distribution.

1.6 Normal distribution function

The normal distribution is a cornerstone of modern statistics, particularly for analyzing continuous data. It operates on the assumption that the median, mode, and mean of the data are identical.

  • Integral property: The total area under the normal distribution curve equals 1, representing the sum of all possible probabilities.
  • Continuity: The function is continuous, allowing for probability calculations for any value, regardless of its distance from the mean.
  • Infinity: The distribution extends infinitely in both directions, implying a non-zero, albeit potentially tiny, probability for any observed value, no matter how extreme.

The normal distribution function is essential for understanding the likelihood of various outcomes in a given dataset.

1.7 📝 Example

The average height of adult American males is 178 cm and is considered normally distributed. The normal distribution function can calculate the probability of observing individuals who are 240 cm or 110 cm tall, even if such heights are rare.

1.8 Symmetry in the normal distribution

A key characteristic of the normal distribution is its symmetry. When the distribution graph is viewed from the peak (vertex), the heights (probabilities) are equal at equal distances to the left and right.

  • Equal probabilities: For any distance from the mean, the probability of observing a value on one side is the same as the probability of observing a value at the same distance on the other side.
  • Example: If the average height of adult American males is 178 cm, the number of males who are 177 cm tall is equ
Cover

Descriptive_Statistics-1.pdf

📚 Descriptive_Statistics-1.pdf

Brief overview

This document introduces the fundamental concepts of descriptive statistics, essential for summarizing and understanding data. It covers how to organize, describe, and visualize data to reveal patterns and characteristics within datasets.

Key points

  • Overview of data analysis fundamentals, including populations versus samples and data organization.
  • How to measure central tendency, variability, and the shape of data distributions.
  • Techniques for analyzing trends over time and identifying patterns in data.
  • Strategies for handling outliers and missing data in datasets.
  • Practical applications of descriptive statistics using tools like Excel.

1. Introduction to data analysis fundamentals

1.1 Making sense of data

  • Goal: To summarize data so it is understandable to people.
  • Real-world use: A retail company uses charts and averages to analyze sales data by region, identifying patterns before concluding why sales are declining.

1.2 Populations and samples

  • Population: The entire group being studied.
  • Example: All U.S. voters.
  • Sample: A smaller part taken from the population.
  • Example: 1,500 voters surveyed by Gallup 3.

This visual contrasts the concepts of 'Population' and 'Sample' in statistics.

1.3 Understanding data structure

  • Data can be organized like a spreadsheet.
  • Columns in the spreadsheet represent variables.
  • Each row represents a single observation.

This table illustrates an example dataset with columns representing variables (Age, Gender, Salary) and rows representing observations (individual people).

1.4 Types of data

Data TypeDescriptionExamples
NumericalQuantitative valuesSalary (50,000 dollars)
CategoricalGroups or labelsGender (Male/Female)
OrdinalCategories that can be rankedOpinion (Strongly Agree)
SubtypeDescriptionExample
DiscreteCountable2 children
ContinuousMeasurable5.8 feet

5

1.5 Data structures

StructureDescriptionExample
Cross-sectionalA snapshot at a single point in timeSurvey of 500 households in 2025
Time seriesData collected and tracked over timeMonthly sales from January to December

A line graph representing time series data, showing an upward trend. 6.

🔑 Important: Organizing data into a structured format is the first step to finding meaningful insights and making informed decisions 2 4.

2. Measures of central tendency and variability

2.1 Measures of central tendency

Measures of central tendency describe the center or typical value of a dataset. They help understand where the data is concentrated.

  • Mean: The average of all values. Calculated by summing all values and dividing by the number of values.
  • Median: The middle value in a dataset when ordered. It is less affected by extreme values than the mean, making it useful for skewed data.
  • Mode: The value that appears most frequently in a dataset. Useful for categorical data and identifying common occurrences.

Percentiles and quartiles divide data into equal parts. The 25th percentile is the first quartile (Q1), and the 75th percentile is the third quartile (Q3).

Cover

DESCRIPTIVE STATISTICS - FV.pdf

📚 DESCRIPTIVE STATISTICS - FV.pdf

Brief overview

This document introduces descriptive statistics, a fundamental tool for summarizing and understanding data. It covers essential concepts from data organization and visualization to measures of central tendency, variation, and relationships between variables. Mastering these principles is crucial for interpreting data effectively in various fields.

Key points

  • Overview of fundamental statistical concepts, variables, and data organization methods.
  • Techniques for presenting data visually using charts and graphs.
  • Calculation and interpretation of measures of central tendency and variation.
  • Application of concentration indices and analysis of bivariate statistical relationships.
  • Methods for studying linear relationships using covariance and correlation.

1. Introduction to descriptive statistics

1.1 Statistics and its importance

  • Statistics: The science of collecting, organizing, presenting, summarizing, and analyzing data.
  • Importance: Statistics helps us evaluate information intelligently, avoiding manipulation and making better decisions. It provides tools to react wisely to daily claims.

1.2 Types of statistics

  • Descriptive statistics: Techniques used to summarize and describe the key characteristics of a dataset. Examples include charts and numerical tables.
  • Inferential statistics: Procedures used to draw conclusions about a whole population based on a sample.

1.3 Course overview

  • Course aim: To present basic descriptive statistics for decision-making in economics and management. It covers analysis of data for one and two variables, along with statistical indexes.
  • Software used: Excel and SPSS.

1.4 Key vocabulary

  • Population: The entire group of individuals or units being studied.
  • Sample: A randomly selected subset of the population for measurement.
  • Census: A study that includes every element of the population.
  • Survey: A study of a representative sample of the population.

A sample is representative if it accurately reflects the population's characteristics.

1.5 Statistical variables

  • Statistical variable: The characteristic of interest that can be measured or counted.
  • Variables can be:
    • Qualitative: Non-numerical categories (e.g., colors, majors). These can be nominal (no order) or ordinal (ordered).
    • Quantitative: Numerical data (e.g., interest rate, number of cars). These can be discrete (countable values) or continuous (infinitely many values).
Variable TypeExamplesSubtypes
QualitativeReheating, defrosting, warming (microwave use); Door A, B, CNominal, Ordinal
QuantitativeNumber of consumers refusing survey; Winning time for a horseDiscrete, Continuous

1.6 Presenting raw data

  • Raw dataset: Unorganized and unanalyzed data.
  • Organizing data into a statistical table helps display it clearly.
  • A frequency distribution table shows:
    • The values or categories measured.
    • How often each value occurred.

1.7 Frequency distribution tables

  • Frequency (nin_i): The number of measurements falling into a specific category or class.
  • Relative frequency (fif_i): The proportion of measurements in a category (fi=ni/Nf_i = n_i / N).
  • Percentage
Cover

DESCRIPTIVE STATISTICS.pptx (1).pdf

Table of contents

  1. Descriptive statistics
  2. The arithmetic mean
  3. The median
  4. The mode
  5. The weighted mean
  6. Laboratory exercise

1. Descriptive statistics

1.1 Introduction to descriptive statistics

Descriptive statistics is the branch of statistics concerned with the collection, organization, summarization, and presentation of data. It focuses on describing the characteristics of a dataset without making inferences or generalizations about a larger population.

This contrasts with inferential statistics, which involves interpreting data to draw conclusions and make predictions 2 4.

1.2 Measures of central tendency

Measures of central tendency are fundamental statistical concepts used to describe the center or typical value of a dataset. Three common types of averages are the arithmetic mean, the median, and the mode 4.

1.3 The mean

The mean, also known as the average, is calculated by summing all the values in a dataset and then dividing by the total number of values 3.

📝 For the data set (2, 3, 4, 5, 6), the sum is 20. The mean is 4, calculated as 20 divided by 5 3.

1.4 The mode

The mode of a dataset is the value that appears most frequently 3.

1.5 The median

The median is the middle value in a dataset when the data is arranged in ascending or descending order. It separates the higher half of the data from the lower half 3.

2. The arithmetic mean

2.1 Summation notation

In statistics, it is often necessary to find the sum of a set of numbers. The traditional symbol used to indicate a summation is the Greek letter sigma, Σ\Sigma.

Thus, the notation Σx\Sigma x, called summation notation, denotes the sum of all the numbers in a given set 5.

2.2 Calculating the arithmetic mean

The arithmetic mean is a measure of central tendency calculated by summing all values in a dataset and dividing by the number of values. It is represented by xˉ\bar{x} 6.

DIRECTION: Find the mean of these test scores. Six friends in a biology class of 20 students received test grades of 92, 84, 65, 76, 88, and 90 6.

Solution: The 6 friends are a sample of the population of 20 students. Use xˉ\bar{x} to represent the mean 6.

The mean of these test scores is 82.5 7.

3. The median

3.1 Definition of the median

The median is a measure of central tendency representing the middle value in a dataset. It is determined by first arranging the data in numerical order, either from smallest to largest or largest to smallest.

This ordered arrangement is referred to as a ranked list 8.

3.2 Finding the median in a ranked list

To find the median, identify the middle number in the ranked list. If the list contains an odd number of data points, the median is the single middle value.

If the list contains an even number of data points, the median is the mean (average) of the two middle numbers 8.

3.3 Example: Finding the median

DIRECTION: Find the median of the data in the following lists.

a. 4, 8, 1, 14, 9, 21, 12 b. 46, 23, 92, 89, 77, 108

a. First, rank the data: 1, 4, 8, 9, 12, 14, 21. The middle number is 9. Therefore, 9 is the median 9.

b. First, rank the data: 23, 46, 77, 89, 92, 108. The two middle numbers are 77 and 89. The mean of 77 and 89 is calculated as (77+89)/2=83(77 + 89) / 2 = 83. Therefore, 83 is the median of this dataset 9.

📝 For the dataset 1, 4, 8, 9, 12, 14, 21, the median is the middle value, which is 9. For the dataset 23, 46, 77, 89, 92, 108, the median is the average of the two middle values, 77 and 89, resulting in a median of 83 9.

4. The mode

4.1 Definition of the mode

The mode is the value that appears most frequently in a dataset. For a discrete random variable X, the mode is the value at which the probability mass function reaches its maximum, indicating the most likely value to be observed 10.

4.2 Finding the mode in a dataset

To find the mode, identify the value that occurs more often than any other value in the list 11.

4.3 Example: Identifying the mode

📝 Consider the dataset: 18, 15, 21, 16, 15, 14, 15, 21. The number 15 appears three times, which is more than any other number in the list. Therefore, 15 is the mode of this dataset 11.

4.4 Case: No mode exists

If every number in a dataset occurs only once, then there is no mode 11.

4.5 Example: No mode