Data Analytics Midterm

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/65

encourage image

There's no tags or description

Looks like no tags are added yet.

66 Terms

1
New cards

5 steps for approaching a new project with Data Analytics/AI

  1. Define the Questions

  2. Collect and Acquire the data

  3. clean the data

  4. analyze the data

  5. interpret and present the results


2
New cards

Define the questions

Identify why the analysis is needed, clearly define the problem/research question (or hypothesis), and determine what data are needed and where they can be obtained

3
New cards

Collect and aquire the data

obtain the data needed to answer the question from appropriate and reliable sources

4
New cards

Clean the data

identify and address anomalies, duplicates, missing values, and other data-quality problems before analysis and interpretation

5
New cards

Analyze the data

select methods that match the question and the data; examples inclue regression, classification, clustering, time-series/statistical analysis, and AI

6
New cards

Interpret and present the results

communicate key values, patterns, trends, and findings clearly with suitable tables/figures, and use the results to answer the original question and draw appropriate conclusions

7
New cards

A system approach of problem-solving (SAPS)-Data Analytics

  1. Define user needs and requirements

  2. problem formulation and task definition

  3. model

  4. data

  5. performance measurement

  6. error analysis

  7. refine with feedback

  8. complete solution

  9. feasibility and benefits analysis

  10. future direction


8
New cards

Define user needs and requirements

represents the end-user problem and decision, current practices/gaps, and the critical information or outputs the solution must deliver

9
New cards

Problem formulation and task definition

represents translating the user need into a precise DA/AI task (regression, classification, segmentation, optimization, RL) and defining the required model output

10
New cards

Model

Represents the model/architecture, loss or objective/reward/penalty, training/validation/tuning strategy, and the complexity-interpretability-performance trade-off

11
New cards

Data

Represents data sources/types and characteristics (quality, diversity, quantity), cleaning/noise handling, ground-truth labeling/annotation and QA/QC, and data splitting

12
New cards

Performance measurement

Represents selecting task-aligned performance metrics, evaluating/comparing models on separate data, and interpreting the result in the engineering context

13
New cards

error analysis

Represents going beyond summary metrics to inspect FN/FP or other errors, identify reasons, characterize/categorize factors, and prioritize the important causes

14
New cards

Refine with feedback

Represents using prioritized error-analysis findings to change the model/data/training, retrain, and re-evaluate the improved system

15
New cards

Complete Solution

Represents integrating the DA/AI component with the other components required for a deployable engineering solution, such as interfaces, infrastructure, operations, policy, or legal elements

16
New cards

Feasibility and benefits analysis

Represents economic and risk analysis, scalability, limitations/failure scenarios, and expected benefits, cheicking whether the complete solution actually meets the original user needs

17
New cards

Future Direction

Represents remaining gaps and next needs arising from error analysis, complete-solution implementation, feasibility/benefits, technology development, and evolution of the problem definition

18
New cards

Prediction

Care primarily about how accurately the model predicts new observations

19
New cards

Inferenced

Interested in the coefficients themselves:

  • holding rainfall and lane width constant, a one-unit increase in AADT is associated with a 0.003-unit increase in predicted IRI


20
New cards

Reducible error

Error caused by an imperfect model, we could reduce the error by using a better model

21
New cards

Irreducible error

Randomness/information that cannot realistically be eliminated

22
New cards

Why nearest neighbor averaging fails in high dimensions

  • in high-dimensional space, observations become surprisingly far apart: curse of dimensionality

  • trading some flexibility for the ability to learn from data in high-dimensional settings


23
New cards

Training MSE vs. test MSE

  • training MSE generally decreases as flexibility increases

  • test MSE: at first, increasing flexibility helps: model goes from too simple to approx. complex and test error decreases. but then model starts fitting noise and test error increases: so U-shaped


24
New cards

Bias and variance

low flexibility

  • high bias, low variance, underfitting

high flexibility

  • low bias, high variance, potential overfitting

bias-variance trade-off


25
New cards

Underfitting vs overfitting

Underfitting: model is too simple, high training error, high test error, high bias

Overfitting: model is too flexible, extremely low training error, high test error, high variance

  • learns signal + noise


26
New cards

Parsimony

Preferring a simpler explanation/model when it performs adequately

27
New cards

K-nearest neighbors classification

KNN can be used for classification

  • small K: very flexible, the prediction depends heavily on one observation

    • Low K →high flexibility → high variance

  • large K: more averaging

    • Large K → lower flexibility → higher bias


28
New cards

Supervised vs. unsupervised learning

supervised learning

  • Inputs + known outcome (regression, classification)

Unsupervised learning

  • don’t have and out come label, discover structure without labeled outcomes


29
New cards

AI terminology

Deep learning: multi-layer neural networks

Large language models: LLMs are models trained to work with language. Learn from statistical patterns in language and can generate text

Generative AI: creates new content, predicts a category for an existing observation

30
New cards

Association vs. causation

even if you adjust for several variables, observational regression does not automatically establish causality (statistical significance doesn’t equal causation)

31
New cards

TSS

measures total variation in Y before considering our model

32
New cards

R²

Tells us how much of the variation in Y is explained by the model

R² = 1 - (RSS) / (TSS)

  • explains __% of observed variation in the response, relative to using the mean alone


33
New cards

MSE:

mean squared error (RSS / n)

34
New cards

F-statistic

tests whether the model provides evidence that at least one predictor has a nonzero relationship with the response

35
New cards

Lower Threshold Effects

Usually higher sensitivity, lower specificity

36
New cards

Raising Threshold Effects

Usually lower sensitivity, higher specificity

37
New cards

ROC curve

Receiver Operating Characterisitic, shows trade-off between TPR=sensitivity and FPR as the classification threshold changes

38
New cards

AUC

Area under the ROC curve, about ranking/discrimination, not simply whether one particular threshold gives good accuracy

39
New cards

Supervised learning

learns from: labeled input-output pairs, objective to minimize prediction error, need labeled data

40
New cards

Unsupervised learning

learns from unlabeled data and model looks for structure, ex: Traffic-pattern clustering

41
New cards

Reinforcement learning

There is agent interacting w environment and agent takes an action and receives reward or penalty

42
New cards

Deep learning

uses multi-layer neural networks, and each lauer can learn increasingly complicated representations; powerful for complex patterns and high-dimensional inputs

43
New cards

Gnerative AI

creates new ocntent, generation doesn’t equal classification

44
New cards

Large language models

Language-focused generative AI, and use neural-network architectures, and transformers, to model language

45
New cards

Training error

measures how well the model fits data it has already seen

46
New cards

Test error

estimates how well it generalizes to unseen data

47
New cards
48
New cards

Increasing flexibility →

decreases training error but can eventually increase test error because of overfitting

49
New cards

High bias →

means the model is systematically too simple

50
New cards

High variance →

the model is sensitive to changes in the training data

51
New cards

Small vs large K

small K → KNN more flexible

large K → KNN less flexible

52
New cards

Regression vs classification

regression: predicts continuous outcomes

classification predicts categorical outcomes

53
New cards

Supervised vs unsupervised learning

Supervised learning: uses labeled outcomes

Unsupervised learning: finds structure without outcome labels

54
New cards

Statistical associated

does not by itself establish causation

55
New cards

Small p-value

indicates evidence against a zero coefficient, but it does not tell us that the effect is large or practically important

56
New cards

K-level categorical variable

represented by K-1 dummy variables, with the omitted category serving as the baseline

57
New cards

An interaction

means the effect of one predictor depends on another predictor

58
New cards

lower classification threshold

generally increases sensitivity and decreases specificity

59
New cards

Accuracy can be misleading

when one class is much more common than the other

60
New cards

Cross-validation (CV)

holds out different portions of the data to estimate out-of-sample performance

61
New cards

Leakage

prevented by any outcome-based predictor selection or preprocessing occuring inside each training fold

62
New cards

Bootstrap samples

drawn with replacement, have same size as og sample, repeatedly used to estimate sampling variability of a statistic

63
New cards

Reinforcement learning

learns through rewards and penalties, so reward design directly influences behavior

64
New cards

Deep learning

uses multi-layer neural networks

65
New cards

Generative AI

creates new content rather than merely predicting or classifying existing observations

66
New cards

LLMs

generate and analyze language, but fluent technical output must still be verified.