Probability Statistics

Cover

02 - Linear Regression and Evaluation (revised).pdf

📚 02 - Linear Regression and Evaluation (revised).pdf

Brief overview

This document introduces the fundamental concepts of linear regression for predictive modeling and details essential methods for evaluating model performance. Understanding these topics is crucial for building accurate and reliable predictive systems.

Key points

  • Understanding the identification of regression tasks and the construction of simple prediction rules.
  • Learning how to build and interpret straight-line linear models, including slope and intercept.
  • Calculating residuals and mean squared error (MSE) to measure prediction errors.
  • Differentiating between training and new-data performance, and understanding underfitting and overfitting.
  • Exploring the roles of training, validation, and test data in honest model evaluation.

1. Understanding linear regression

1.1 Regression tasks and prediction rules

  • Regression task: Predicts a numerical, measurable quantity.
  • Example: Predicting delivery time in minutes.
  • Test: Does a value between two possible targets make sense? (e.g., 27.5 degrees Celsius is meaningful).
  • Classification task: Predicts a category.
  • Example: Predicting if a message is spam.
  • Test: A value halfway between two categories is not meaningful (e.g., halfway between "tuna" and "salmon").
  • Identifiers: Numbers that are labels, not quantities (e.g., phone numbers, postal codes). Averaging them doesn't make sense.

Regression tasks predict measurable quantities.

  • Prediction rule: A simple rule to estimate an output.
  • Example: predicted time = 5 minutes (prep) + 3 minutes * distance (km).
  • Features (x): The input variable used for prediction (e.g., distance).
  • Predicted output (ŷ): The estimated output value. The hat (^) signifies a prediction.
Input (x)Preparation (5 min)Travel allowance (3x)Predicted Time (ŷ)
0 km5 min0 min5 min
1 km5 min3 min8 min
2 km5 min6 min11 min
3 km5 min9 min14 min

1## 1.2 The straight-line model

  • General straight-line model: ŷ = α + βx.
  • x: Input or feature.
  • ŷ: Predicted output.
  • α (alpha): The intercept. It's the predicted value when x = 0.
  • β (beta): The slope. It's the predicted change in ŷ when x increases by 1.
  • Units of slope: output-unit per input-unit (e.g., minutes per kilometer).
  • Parameter interpretation:
  • Slope: Controls how steeply the line rises or falls.
  • Intercept: Slides the entire line up or down.

The slope tells you how much the prediction changes for each unit increase in the input.

1.2.1 Making predictions with the model

  • Prediction example: For ŷ = 5 + 3x, predict time at 6 km.
  • Substitute x = 6: ŷ = 5 + 3 .
  • Calculate: ŷ = 5 + 18 = 23 minutes 2 3.

1.3 Understanding prediction errors

  • Actual value (y): The true observed output.
  • Residual: The difference between the actual value and the predicted value.
  • Formula: r = y - ŷ.
  • Residual interpretation:
  • r > 0: The model predicted too low; actual is higher than predicted.
  • r < 0: The model predicted too high; actual is lower than predicted.
  • r = 0: The prediction was exact for that observation.

A positive residual means your model underestimated the true value.

  • Problem with adding residuals: Positive and negative residuals can cancel each other out, hiding errors.
  • Mean Squared Error (MSE): Combines errors by squaring them to prevent cancellation and then averaging.
  • Formula: MSE = (1/n) * Σ(yi - ŷi)².
  • n: Number of observations.
  • yi: Actual value for observation i.
  • ŷi: Predicted value for observation i.
  • Σ: Summation symbol.
  • MSE unit: Squared units of the target variable (e.g., minutes²).
  • MSE interpretation: A lower MSE indicates a model with closer predictions on the same data.
Cover

02_statLearning.pptx

📚 02_statLearning.pptx

Brief overview

This document introduces the foundational concepts of statistical learning, focusing on predicting a response variable from predictor variables. It explores different model types, accuracy assessment, and the critical bias-variance trade-off, providing essential tools for understanding and building predictive models.

Key points

  • Introduction to statistical learning and its core purpose in predicting responses.
  • Comparison of parametric and nonparametric models and the curse of dimensionality.
  • Assessing model accuracy using test data and the bias-variance trade-off.
  • Classification problems, conditional class probabilities, and performance evaluation.
  • Introduction to the Bayes classifier and support-vector machines.

1. Introduction to statistical learning

1.1 What is statistical learning?

Statistical learning aims to predict a response variable (YY) using one or more predictor variables (XX). For example, we might predict product sales based on advertising spend on TV, radio, and newspapers.

This relationship can be expressed as Y=f(X)+ϵY = f(X) + \epsilon. Here, f(X)f(X) represents the systematic relationship between XX and YY.

The term ϵ\epsilon accounts for random errors and unpredictable variations.

This scatter plot illustrates a linear regression model, showing observed data points, the regression line, and the concept of random error.

The figure above shows how observed sales data points relate to an advertising spend. The red line represents a fitted regression model, indicating the general trend.

The vertical distance from each data point to the line represents the error, ϵ\epsilon.

1.2 The regression function f(X)f(X)

The core goal in statistical learning is to estimate the regression function, f(X)=E(Y∣X=x)f(X) = E(Y | X = x). This function represents the expected value of the response variable YY given specific values of the predictor variables XX.

Estimating f(X)f(X) helps us achieve two main objectives:

  • Prediction: To forecast the response variable (YY) for new observations of predictor variables (XX).
  • Inference: To understand which predictor variables are important for explaining YY and how they affect it. For instance, in predicting income, variables like seniority and education might be significant, while marital status might not be.

A 3D scatter plot showing the relationship between years of education, seniority, and income.

This 3D scatter plot visualizes how income relates to both years of education and seniority. It helps understand which factors have a stronger influence on income levels.

1.3 Estimating f(X)f(X)

Estimating f(X)f(X) involves finding a function f^(X)\hat{f}(X) that closely approximates the true regression function. The accuracy of this estimate is often measured by the mean-squared prediction error, E[(Y−f^(X))2]E[(Y - \hat{f}(X))^2].

This error can be decomposed into two parts:

  • Reducible Error: This is the error resulting from the difference between the true function f(X)f(X) and our estimate f^(X)\hat{f}(X), i.e., (f(X)−f^(X))2(f(X) - \hat{f}(X))^2. This error can be reduced by improving our estimation method.
  • Irreducible Error: This is the error represented by the variance of the random term ϵ\epsilon, denoted as Var(ϵ)\text{Var}(\epsilon). This error is inherent in the data and cannot be reduced by any model.

E[(Y−f^(X))2∣X=x]=(f(x)−f^(x))2+Var(ϵ)E[(Y - \hat{f}(X))^2 | X=x] = (f(x) - \hat{f}(x))^2 + \text{Var}(\epsilon)

A scatter plot shows the relationship between x and y variables, with a regression line and a vertical line at x=4.

This plot illustrates estimating f(x)f(x) at a specific value, x=4x=4. The regression line shows the expected YY value for X=4X=4.

The scatter of points around this line represents the irreducible error.

![A scatter plot shows the relationship between two variables, with a fitted curve and a vertical line highlighting a specific point.](https://ixscdoswnqhohheqmami.supabase.co/storage/v1/object/public/documents/5646de5a-d085-4c36-882f-122d7b283089/courses/e7f52cc8-7526-41ac-9763-2b69dda5770a/figures/a995c10c-8be0-46

Cover

10.1. Probability Applications.pdf

📚 10.1. Probability Applications.pdf

Brief overview

This document provides a comprehensive review of fundamental probability concepts and their practical application. Understanding these principles is crucial for analyzing and predicting outcomes in various scenarios.

Key points

  • Recap of core probability definitions, including outcomes, events, and probability calculations.

  • How to estimate probability using relative frequency from experimental data.

  • Calculations for single events, mutually exclusive events, and independent events.

  • Application of probability concepts to problems involving rooms and coins.

  • Practice with past examination questions from May/June 2022.


1. Probability concepts recap en Understanding probability

1.1 What is probability?

  • Probability: the chance or likelihood of an event happening.

  • We use probability daily for decision-making.

1.2 Expressing probability

Probability can be shown as a fraction, decimal, or percentage 3.

  • Impossible event: probability is 0.

  • Certain event: probability is 1.

  • All probabilities fall between 0 and 1.

📝 Example: The probability of getting heads when tossing a coin is 0.5. The probability of rolling a 6 twice in a row on a die is frac136\\frac{1}{36} 4.

1.3 Key probability concepts

Concept

Description

Outcome

A single possible result of an experiment.

Event

A set of one or more outcomes.

Theoretical Probability

Calculated as: $\frac{\text{Number of favorable outcomes}}{\text{Total number of possible outcomes}}$

🔑 Important: Probability quantifies uncertainty. Understanding these basic terms is crucial for calculating and interpreting probabilities.

1.4 Event relationships

  • Independent events: The occurrence of one event does not affect the probability of another event.

  • Mutually exclusive events: Two events cannot happen at the same time.

🔑 Important: Differentiating between independent and mutually exclusive events is key for calculating combined probabilities accurately.

🔑 Important: Probabilities range from 0 (impossible) to 1 (certain), providing a clear scale for likelihood 5.

2. Estimating probability with relative frequency

2.1 Relative frequency and probability

  • Relative frequency: This is the count of how many times an event happens, divided by the total number of events in a situation. It helps estimate probability from experiments.

  • Estimating probability: For experiments with categories, you can estimate the probability of an event. You do this by counting how often the event occurred and dividing by the total number of trials.

🔑 Important: Relative frequency is a practical way to estimate the likelihood of an event based on observed data.

2.2 Calculating probability from experiments

Imagine you spin a spinner 50 times. The results of each spin are recorded.

You can use this data to calculate the estimated probability of the spinner landing on a specific color.

Here is how you would calculate the probability of spinning blue:

  • Number of times blue occurred: Count how many times the spinner landed on blue.

  • Total number of spins: This is the total number of trials, which is 50 in this case.

The formula for estimated probability is: P(textevent)=fractextNumberoftimestheeventoccurredtextTotalnumberoftrialsP(\\text{event}) = \\frac{\\text{Number of times the event occurred}}{\\text{Total number of trials}}

2.3 Probability of single events

  • Probability of an event: This is the chance that a specific event will happen. It is often written as P(textevent)P(\\text{event}).

Example: A fair die is thrown once. Find the probability of obtaining specific outcomes.

Cover

(12) Markov Chain

Table of contents

  1. Learning Outcomes
  2. Outline
  3. Hidden Markov Model
  4. Forward algorithm
  5. Exercise

1. Learning Outcomes

1.1 Learning outcomes

This section outlines the specific competencies students must achieve by the end of the session.

  • Core competency: students must learn to apply various techniques to an agent when it is acting under certainty.

📝 An agent follows a fixed, predictable path where every outcome is known with 100% probability.

2. Outline

2.1 Outline

The session covers three primary mathematical frameworks for modeling sequential data and transitions.

  • Markov Chain: a model for systems that transition between states over time.
  • Hidden Markov Chain: an extension of the Markov model where states are not directly visible.
  • Forward Algorithm: a method used to calculate probabilities within these models.

2.2 Introduction

Sequential data requires specific modeling techniques to be useful for analysis.

  • Sequential patterns: data points often show correlation between observations that are close to each other in a sequence.
  • i.i.d. approach: treating observations as independent and identically distributed ignores these patterns and fails to exploit the relationship between consecutive data points.

2.3 Markov chain definition

A Markov chain is a mathematical system used to model situations where a population or state fluctuates over time.

  • Modeling purpose: it helps determine the probability of a system being in a specific state at a given time.
  • Fluctuation: the model accounts for how elements move from one state to another, such as birds moving between levels in an aviary.

📝 A zoo aviary has three levels where birds fly between perches; a Markov chain models the probability of a bird being on a specific level at any time.

2.4 Markov chain formulation

The mathematical structure of a Markov chain relies on specific types of matrices to represent distributions and transitions.

TermDefinition
Probability vectorA matrix pp where the sum of all elements equals 1, representing the distribution of states.
Stochastic matrixA square matrix TT whose columns are probability vectors, used to transition the system from one distribution to another.
  • State distribution: the current state of the system is represented by a probability vector pp.
  • Transition process: the stochastic matrix TT moves the system from one distribution to a new distribution after a set time interval.
  • Mathematical constraint: for a probability vector pp, the sum of its components must satisfy ∑pi=1\sum p_i = 1.

📝 If a 3x1 matrix pp represents bird percentages on three levels, p1+p2+p3=1p_1 + p_2 + p_3 = 1.

2.5 Markov chain example

A Markov model can represent transitions between discrete states, such as weather conditions, using a transition matrix.

Current StateNext StateProbability
Sunny (S)Sunny (S)0.9
Sunny (S)Rainy (R)0.1
Rainy (R)Sunny (S)0.5
Rainy (R)Rainy (R)0.5
  • Transition probabilities: these values represent the likelihood of moving from one state to another.
  • Transition matrix: the probabilities are organized into a square matrix to simplify calculations.

📝 In a weather model, if it is Sunny today, there is a 0.9 probability it will be Sunny tomorrow and a 0.1 probability it will be Rainy.

2.6 Markov chain example: Tree diagram and Markov chain

There are two primary methods to calculate the probability of future states, such as determining the weather in two days.

  • Tree diagram: a visual method that branches out to show every possible sequence of events and their associated probabilities.
  • Markov chain: a matrix-based method used to calculate state probabilities directly.
MethodApproach
Tree diagramMapping out individual paths and multiplying probabilities for each branch.
Markov chainUsing the transition matrix to calculate the state after multiple steps.
Cover

1.5 Sampling Frameworks and Data Integrity.pdf

Table of contents

  1. Data and Probability
  2. Sampling Techniques
  3. Population Parameter vs. Sample Statistic
  4. The Importance of Sampling
  5. Probability Sampling Techniques
  6. Non-Probability Sampling Techniques

1. Data and Probability

This section introduces fundamental concepts in data analysis, focusing on the distinction between populations and samples, and the purpose of sampling. It sets the stage for understanding how data is collected and used to draw conclusions 2.

1.1 Learning objectives

  • Illustrate and sort random sampling techniques into probability and non-probability categories using diagrams, models, or interactive sorting tools.
  • Exhibit responsibility and care by advocating for unbiased, ethical sampling methods that fairly represent all populations.
  • Differentiate population parameter from sample statistic and evaluate field scenarios to select the appropriate sampling design 2.

2. Sampling Techniques

Sampling is the method used to select individuals from a larger group, known as the population, to form a smaller, representative subset called a sample. The primary goal of sampling is to ensure that the chosen sample accurately reflects the characteristics of the entire population being studied 3.

2.1 Population

A population is the complete set of individuals, items, or data points that are of interest in a study 4.

2.2 Sample

A sample is a smaller, manageable group that is selected from the population. This sample is used to make inferences or draw conclusions about the larger population 4.

2.3 Examples of population and sample

  • Scenario: A survey will be given to 100 Grade 11 students randomly selected from all Senior High School students at CIT-U 5.

  • Population: All Senior High School students at CIT-U.

  • Sample: The 100 Grade 11 students who took the survey at CIT-U 6.

  • Scenario: A canvasser gathers opinions from all the youth voters in a city on who their favorable SK Chairman aspirant is. From a group of 60 youth voters, the majority are undecided 7.

  • Population: All the youth voters in a city.

  • Sample: The group of 60 youth voters in a city 8.

📝 A survey will be given to 100 Grade 11 students randomly selected from all Senior High School students at CIT-U. The population is all Senior High School students at CIT-U, and the sample is the 100 Grade 11 students who took the survey 5, 6.

3. Population Parameter vs. Sample Statistic

Understanding the difference between a population parameter and a sample statistic is crucial for interpreting data. A parameter describes a characteristic of the entire population, while a statistic describes a characteristic of a sample drawn from that population.

Statistics are used to estimate parameters 9.

3.1 Population parameter

A parameter is a numerical value that describes a characteristic of an entire population. It is a fixed value, though often unknown, because it is based on every member of the population 9.

3.2 Sample statistic

A statistic is a numerical value that describes a sample taken from a population. It is calculated from the sample data and is used to estimate the corresponding population parameter 10.

3.3 Examples of parameter and statistic 11 12 13 14 15 16

ScenarioPopulationSamplePopulation ParameterSample Statistic
A school staff wants to know the average amount of money students spend on lunch each day. The school has 2,000 students. The staff randomly selects 150 students and finds that they spend an average of ₱85 per day on lunch.All 2,000 students in the school.The 150 randomly selected students in the school.The true average amount spent on lunch per day.₱85 spent.
A principal wants to determine what percentage of SHS students in Cebu graduates within 2 years. There are roughly 140,000 students. The principal collects data from 1,000 students across various schools and finds that 90% of them graduated within 2 years.All 140,000 SHS students in Cebu.The 1,000 students across various schools in Cebu.The actual percentage of SHS students who graduate within 2 years.90% of 1,000 (or 900) SHS students.
Cover

1767518568258-a3azga0o8-Kopie-van-Samenvatting-Advanced-Econometrics.pdf

1. Constructen en meetmodellen: reflectief versus formatief

Dit onderwerp introduceert hoe abstracte constructen gemeten worden via indicatoren en onderscheidt de reflectieve en formatieve meetmodellen, waarbij de analytische implicaties voor EFA en PLS-SEM worden benoemd, evenals de basisprincipes van PCA en EFA.

1.1 Constructen en meetmodellen

Een construct is een ontwikkeld idee dat een abstract fenomeen voorstelt. Hoewel abstract en vaak onzichtbaar, kunnen constructen gemeten worden, meestal indirect via een set vragen, opdrachten of taken. In een analytische context wordt het construct vaak een latente variabele genoemd, en de gebruikte meetinstrumenten indicatoren of manifeste variabelen.

Cruciale eigenschappen van indicatoren zijn:

  • Ze moeten het construct adequaat weergeven (validiteit)
  • Ze moeten hoog gecorreleerd zijn (voor reflectieve modellen).
  • Een variabele moet een duidelijke relatie hebben met één specifiek construct en niet met meerdere (crossloadings)

Het meetmodel beschrijft de relatie tussen indicatoren en het construct. Dit model is een keuze van de ontwerper en heeft consequenties voor het itemontwerp en de analyse. Abstracte eigenschappen vereisen vaak meerdere items omdat het domein van het construct complex is.

1.2 Reflectief meetmodel

In een reflectief meetmodel wordt aangenomen dat het onderliggende construct de indicatoren veroorzaakt of bepaalt. De indicatoren zijn conceptueel vergelijkbaar en moeten sterk gecorreleerd zijn.

  • Kenmerk: Het construct veroorzaakt de indicatoren.
  • Correlatie tussen indicatoren: Vereist dat indicatoren onderling correleren.
  • Analyse: Dit model is analytisch congruent met Exploratory Factor Analysis (EFA) 21.

Tip: Voor reflectieve constructen ligt de nadruk op interne consistentie (betrouwbaarheid) van de items 1.

1.3 Formatief meetmodel

In een formatief meetmodel bepalen de indicatoren het construct. De indicatoren hoeven niet onderling gecorreleerd te zijn.

  • Kenmerk: De indicatoren bepalen het construct.
  • Correlatie tussen indicatoren: Geen vereisten qua correlaties tussen indicatoren.
  • Analyse: Dit model wordt geanalyseerd met Partial Least Squares Structural Equation Modeling (PLS-SEM) 2.

1.4 PCA en de relatie met EFA

Zowel Principal Component Analysis (PCA) als Exploratory Factor Analysis (EFA) zijn interdependentietechnieken waarbij datareductie een sleutelrol speelt. PCA wordt gebruikt om de essentie van EFA beter te begrijpen, aangezien de eigenvalue-decompositie de kern van PCA vormt.

1.4.1 Doelstellingen en basis van PCA

PCA creëert nieuwe, orthogonale variabelen ("principale componenten") die lineaire combinaties van de originele variabelen zijn. Doelstellingen van PCA:

  1. Datareductie: kk PC's in plaats van pp variabelen, met k<pk < p.
  2. Creatie van nieuwe (orthogonale) variabelen.

PCA richt zich op het verklaren van de totale variantie. De analyse decomprimeert de correlatie- of covariantiematrix in eigenwaarden en eigenvectoren (eigenvalue decompositie)4.

De winst van PCA zit in:

  • Eigenvalue > 1 criterium.
  • Variance explained (hoeveelheid verklaarde variantie) 6.

Contrast PCA vs EFA: PCA richt zich op het verklaren van de totale variantie, terwijl EFA zich richt op de common variance (communality) 3.

1.5 Exploratory Factor Analysis (EFA)

EFA is een techniek om een onderliggende structuur (factoren) in data te zoeken, wat congruent is met het idee van reflectieve constructen. 'Exploratory' betekent dat vooraf geen structuur wordt opgelegd; deze wordt door de data bepaald.

Het algemene EFA-model is: x=Λf+ex = \Lambda f + e Waarbij:

  • xx: manifeste variabelen.
  • ff: factoren (onderliggende dimensies).
  • λ\lambda: ladingen (loadings).
  • ee: errors 7.

1.5.1 Assumpties en geschiktheid van de data

EFA vereist metrisch geschaalde variabelen (bijv. een itemized rating scale met 5+ datapunten) en een conceptueel zinvolle dataset. Er moet voldoende correlatie tussen (groepen van) variabelen zijn. De geschiktheid wordt onderzocht via:

  1. Correlatiematrix: Veel significante correlaties zijn een goed teken (nadelen zijn de bivariate aard).
  2. Anti-image correlatie matrix: Geeft de partiële correlatiecoëfficiënt weer. Een lage absolute waarde duidt op onderlinge samenhang (goed).
    • Absolute waarde anti-image correlatie <0,70< 0,70 is goed voor EFA 8.
  3. Bartlett’s test of sphericity: Test of de correlatiematrix significant afwijkt van een identiteitsmatrix (II).
    • HH : Correlatie matrix = II. Verwerping van HH duidt op voldoende correlatie voor EFA .
  4. Measure of Sample Adequacy (MSA): Berekend per variabele, combineert de correlatie- en partiële correlatiecoëfficiënt. Waarde tussen 0 en 1; $>
Cover

1-Basic Statistical Concepts.pdf

Introduction to biostatistics and data variables

This section provides a foundational understanding of statistics and biostatistics, outlining their purpose and the critical importance of classifying data variables for effective analysis 2 3.

1.1 Statistics and biostatistics

1.1.1 What is statistics?

Statistics is the scientific discipline focused on developing and utilizing methods for collecting, analyzing, interpreting, and presenting data 2.

1.1.2 What is biostatistics?

Biostatistics applies statistical principles specifically within the domains of medicine, public health, and biology 2.

1.1.3 Utility of studying biostatistics

Studying biostatistics is valuable for several reasons:

  • Designing and analyzing research studies 2.
  • Describing and summarizing collected data 2.
  • Analyzing data to generate scientific evidence supporting a hypothesis 2.
  • Determining if an observation is statistically significant or merely due to chance 2.
  • Understanding and critically evaluating published scientific research 2.
  • It forms a fundamental component of fields like clinical trials and epidemiological studies 2.

1.1.4 The statistical analysis journey

The process of statistical analysis typically involves the following steps:

  • Formulating a research question from an initial research idea 2.
  • Selecting an appropriate study design and a suitable sample 2.
  • Conducting the study and gathering data 2.
  • Analyzing the data using the correct statistical method 2.
  • Obtaining and interpreting the p-value 2.
  • Drawing a conclusion or answering the research question 2.

1.2 Data variables

A data variable is defined as "something that varies" or differs among individuals or groups. These are the elements about which data is collected. Examples include sex, age, weight, marital status, and satisfaction rate 3.

1.2.1 Importance of variable classification

Recognizing the type of each data variable is crucial for several reasons:

  • Data summarization: The method used for summarization (e.g., mean with standard deviation versus frequency with percentage) depends on the variable type 3.
  • Graphical presentation: The choice of appropriate graph for data visualization is dictated by the variable type 3.
  • Data analysis: Selecting suitable statistical tests is contingent upon the type of data variables involved 3.

1.2.2 General classification of data variables

Data variables are generally classified into two main types 3:

  • A. Categorical variables: These are further classified as nominal or ordinal 3.
  • B. Numerical variables: These are further classified as discrete or continuous 3.

1.3 Categorical variables

Categorical variables, also known as qualitative or nominal data, do not possess a unit of measurement. They consist of distinct categories, and individuals are assigned to one of these categories 4.

Examples of categorical variables:

  • Satisfaction status (e.g., satisfied, neutral, not satisfied) 4.
  • Sex (e.g., male, female) 4.
  • Nationality (e.g., listing all countries) 4.
  • Agreement level (e.g., strongly disagree, disagree, undecided, agree, strongly agree) 4.

Tip: Categorical variables can sometimes be coded with numbers (e.g., 1 for female, 2 for male). Even when represented by numbers, they remain categories, and the numbers function solely as codes, not as actual numerical values 4.

1.3.1 Types of categorical variables

Categorical variables are sub-classified into nominal and ordinal types 5.

1.3.1.1 Nominal variables

Nominal variables are categorical variables that have no intrinsic order or ranking. The order in which these categories are presented is arbitrary 5.

Examples of nominal variables:

  • Sex (male, female) can be listed in any order 5.
  • Blood groups (A, B, AB, O) can be ordered in various ways 5.
  • Nationality cannot be inherently ordered 5.
Cover

1 - Descriptive Statistics Analysis.pdf

Table of contents

  1. Salient Points of Descriptive Statistics
  2. FOUR levels of measurement
  3. Handling Outliers
  4. Sharing of Professional Experience
  5. Measures of Shape: Skewness and Kurtosis
  6. Kurtosis
  7. Scoring Procedures
  8. Using MS Excel for Statistical Analysis

1. Salient Points of Descriptive Statistics

1.1 Descriptive statistics

Descriptive statistics involves methods for organizing, summarizing, and presenting data in a meaningful way. It aims to describe the main features of a dataset without drawing conclusions about a larger population.

This approach helps in understanding the characteristics of the data at hand 3.

A combination of a bar chart, line graph, and pie chart illustrates various statistical data representations.

  • Purpose: To describe and summarize the main features of a dataset.
  • Focus: Understanding the characteristics of the observed data 3.

1.2 Inferential statistics

Inferential statistics uses data from a sample to make generalizations, predictions, or conclusions about a larger population. It involves techniques like hypothesis testing and estimation to infer properties of the population based on sample data 3.

  • Purpose: To make generalizations or predictions about a population based on sample data.
  • Focus: Drawing conclusions and making inferences about a population 3.

📝 A university president wants to know the average monthly salary of faculty members, and a fast-food franchiser may wish to compare the weekly sales levels over the past year at two particular outlets 3.

1.3 Some specific applications

Descriptive statistics can be applied in various scenarios to understand data. For instance, a university president might want to know the average monthly salary of faculty members to understand the financial landscape of the institution.

Similarly, a fast-food franchiser could use descriptive statistics to compare the weekly sales of two different outlets over the past year, aiding in performance evaluation and strategic decisions 3.

Inferential statistics, on the other hand, is used for projections and conclusions. A company might project future growth by analyzing past revenue trends, or a school administrator might conclude that a new learning method improves academic performance based on pilot study data 3.

1.4 Data representation

Statistical data can be represented in various formats to facilitate understanding and analysis. Common methods include bar charts, line graphs, and pie charts, each suited for different types of data and insights 1.

  • Bar chart: Typically used to compare discrete categories or show changes over time.
  • Line graph: Effective for displaying trends and changes in data over a continuous period.
  • Pie chart: Useful for illustrating proportions or percentages of a whole 1.

📝 A pie chart is useful for illustrating proportions or percentages of a whole 1.

1.5 Distribution of respondents

Data analysis often involves examining the distribution of respondents across different categories. This can include demographic factors such as sex, academic strand, and the specific social media platforms used.

Understanding these distributions is crucial for interpreting survey results and drawing meaningful conclusions 5.

Table 8 shows the frequency and percentage distribution of respondents by sex, academic strand, and social media platform.

1.6 Distribution by sex

The distribution of respondents by sex provides insight into the gender composition of the sample. This information can be important for identifying potential biases or understanding differences in responses between genders 5.

1.7 Distribution by academic strand

Analyzing the distribution of respondents by their academic strand (e.g., Science, Technology, Engineering, and Mathematics; Humanities and Social Sciences) helps in understanding the academic background of the participants. This can reveal if certain academic groups are more represented or have different patterns of engagement 5.

1.8 Distribution by social media platform

Examining the distribution of respondents by social media platform highlights which platforms are most popular or frequently used by the surveyed group. This data is valuable for targeted communication or understanding media consumption habits [5](#p

Cover

1. IntroducciónST (2).pdf

Table of contents

  1. Univariate Time Series
  2. Work Plan
  3. Course Characteristics
  4. Course Objectives
  5. Instructor Information and Office Hours
  6. Evaluation
  7. Evaluation (II)
  8. Content
  9. Content (II)
  10. Bibliography
  11. Important Dates and Academic Policies

1. Univariate Time Series

This section introduces the course on univariate time series, providing context for the subject matter 1.

2. Work Plan

This section outlines the structure and components of the course 2.

2.1 Course Structure Overview

The work plan details the progression and key elements of the course.

  • Course characteristics: Information regarding the course's nature and requirements.
  • Instructor details and office hours: Information about the course instructor and availability for student queries.
  • Student introductions: An opportunity for students to introduce themselves.
  • Evaluation and content: Details on how the course will be assessed and the topics covered.
  • Introduction to the course topic: An initial overview of univariate time series analysis 2.

3. Course Characteristics

This section provides specific details about the course, including its administrative and technical requirements 3.

3.1 Course Identification and Credits

  • Code: 2016370.
  • Group: 1.
  • Grouping: Disciplinar optativa (validable).
  • Credits: 4 academic credits.
  • Academic Credit: An academic credit signifies the workload and learning commitment required for a course 3.

📝 The course code is 2016370, it belongs to group 1, and is classified as a "Disciplinar optativa (validable)" with 4 academic credits.

3.2 Course Type and Prerequisites

  • Typology: Theoretical.
  • Prerequisites: Probability, Statistical Inference, Regression Analysis. Knowledge of differential/difference equations is desirable 3.

3.3 Schedule and Software

  • Schedule and modality: Mondays and Wednesdays from 9 am to 11 am, primarily in-person with occasional remote virtual sessions.
  • Teaching methods: Includes lectures and exercises/activities conducted by students.
  • Software: Use of R (Rstudio) or Python is required 3.

4. Course Objectives

The course aims to equip students with the foundational knowledge and skills for analyzing and modeling univariate time series 4.

4.1 General Objective

The overarching goal is to enable students to adjust statistical models for time series analysis, allowing for inference, prediction, and a deeper understanding of time series components.

  • Statistical model adjustment: Students will learn to identify, estimate, and diagnose statistical models.
  • Prediction calculation: The course will cover calculating forecasts, estimating missing data, and other predictive tasks using fitted models.
  • Understanding time series components: Students will grasp concepts such as trend, seasonality, and cycles within a variable of interest.
  • Outlier analysis: The course will address the analysis of atypical data points in univariate time series 4.

4.2 Specific Objectives

The specific objectives focus on practical applications and detailed understanding of time series modeling techniques 4.

5. Instructor Information and Office Hours

This section provides details about the course instructor and their availability for student support 5.

5.1 Instructor Profile

  • Name: Mario Enrique Arrieta Prieto.
  • Academic Background:
  • Industrial and Statistical Engineer, UNAL.
  • MS in Statistics, UNAL.
  • MS in Applied Mathematics, RPI, NY, USA.
  • Ph.D. in DSES, RPI, NY, USA.
  • Department: Professor in the Department of Statistics.
  • Email: mearrietap@unal.edu.co 5.

5.2 Office Hours and Communication

  • Office Hours: Mondays and Wednesdays from 11:15 am to 12:30 pm in Office 325 (FEM).
  • Email Response Time: Inquiries via email will be answered within 1-2 business days during office hours 5.

6. Evaluation

The course evaluation is structured to assess student learning through various components, including exams, projects, and participation 6.

6.1 Assessment Components 6

ItemPercentage
First midterm (week 8)20%
Second midterm (week 16)20%
Project 1 (weeks 4-15)20%
Project 2 (weeks 13-17)20%
Quizzes (4 or 5)20%

6.2 Participation Bonus

  • Bonus: Up to an additional 0.2 can be earned for participation.
  • Participation Criteria: Voluntary contributions or positive responses to professor's questions will be considered.
  • Bonus Calculation: The percentage of the bonus will be determined by the quartile in which the student's participation is ranked.
  • Participation Bonus: This bonus incentivizes active engagement in class discussions and activities, rewarding stud
Cover

1Introduction_to_Statistics_260527_182239.pdf

📚 1Introduction_to_Statistics_260527_182239.pdf

Brief overview

This document provides an introduction to the fundamental concepts of statistics. It covers the definition, scope, types, and methods of data collection and organization, laying the groundwork for statistical analysis. Understanding these basics is essential for interpreting data and drawing valid conclusions.

Key points

  • Overview of statistics, its branches, functions, and limitations.
  • Introduction to variables, data types, and measurement scales.
  • Methods and sources for primary and secondary data collection.
  • Classification of data, including time series and panel data.
  • Construction and interpretation of frequency distributions and class intervals.

1. Introduction to statistics

1.1 What is statistics?

  • Statistics is a science. It combines numerical facts that can be analyzed and interpreted. It studies the principles of numerical data in any investigation.
  • Statistics involves collecting, presenting, analyzing, and interpreting numerical data 2.

1.2 Branches of statistics

  • Descriptive statistics summarizes and describes the main features of a data set. It uses measures and techniques to organize and present data to understand patterns.
  • Inferential statistics draws conclusions about a population from a sample. It uses probability to make predictions, generalize findings, and test hypotheses about a larger group 3.

The core difference: Descriptive stats describe what you have; inferential stats let you guess about more.

1.3 Functions and limitations of statistics

Functions

  • Represents facts numerically.
  • Condenses large amounts of data.
  • Aids in data classification.
  • Provides methods for decision-making.
  • Helps formulate policies.
  • Determines relationships between phenomena.
  • Assists in predicting future trends.
  • Helps formulate and test hypotheses.
  • Gives an idea about event occurrences.
  • Allows drawing valid conclusions 4.

Limitations

  • Statistics does not deal with individual cases.
  • It does not directly handle qualitative characteristics.
  • Statistical laws are not exact.
  • Statistics can be misused 5.

Statistics offers powerful tools but isn't perfect; understanding its limits is crucial.

1.4 Statistics and Information Technology

  • Computers help with data storage and processing, turning data into information.
  • The internet eases data communication.
  • Computers cannot solve all data problems like collection, analysis, and interpretation. These remain the domain of statisticians.
  • Knowledge of statistics and computer skills are vital for information technology's growth.

Statistics provides the "why" and "how" of data insight; computers provide the "speed" and "scale."

StatisticsComputerInformation Technology
Data Analysis ToolsData Storage & ProcessingCommunication & Systems
Interpretation SkillsSpeed & EfficiencyIntegration
Hypothesis TestingAutomationData Management
6

1.5 Variables and their types

  • A variable is a characteristic of individuals or objects being studied. These are the data points collected and analyzed in studies.
  • Variables are the basis for statistical analysis and inference.

Variables are the building blocks of data; they change from one observation to the next.

Types of variables

  • Quantitative variables represent numerical values.
  • Qualitative variables represent categories or attributes.
Variable TypeDescriptionExamples
QuantitativeMeasurable numerical valuesHeight, weight, age, temperature
QualitativeNon-numerical categories or attributesKnowledge, beauty, intelligence, skin color, gender

Quantitative variable subtypes

  • Discrete quantitative variables can only take specific, separate numerical values. These often result from counting.
  • Continuous quantitative variables can take any value within a given range. These often result from measuring 8.