Artificial Intelligence, Machine Learning, and Data Visualization

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

1/34

flashcard set

Earn XP

Description and Tags

Comprehensive practice flashcards covering fundamental concepts, algorithms, workflows, cloud architectures, and data visualization techniques from Weeks 1, 2, and 3 lecture notes.

35 Terms

1
New cards

How is Artificial Intelligence (AI) formally defined in the lecture notes, and what do its two root words signify?

Artificial Intelligence is defined as "a branch of computer science by which we can create intelligent machines which can behave like a human, think like humans, and able to make decisions." It is composed of "Artificial," meaning "man-made," and "Intelligence," meaning "thinking power," yielding the composite meaning "a man-made thinking power."

2
New cards

What are the seven steps that outline how an AI system typically operates?

The seven steps are: 1. Data Collection, 2. Data Preprocessing, 3. Algorithms, 4. Training, 5. Testing and Validation, 6. Deployment, and 7. Feedback Loop.

3
New cards

What are the three classifications of AI based on capabilities (Type-1 AI)?

  1. Weak AI or Narrow AI: Dedicated to a single specific task within predefined limits (e.g., Apple Siri).It cannot think or work like a human in every situation. It works only within the area for which it is trained or programmed.

  2. General AI: Generative AI is a branch of Artificial Intelligence that uses machine learning models to generate new content such as text, images, audio, videos and code.Capable of performing any intellectual task with human-like efficiency (currently under research; no system exists yet).

  3. Super AI: Super AI is a level of Intelligence of Systems at which machines could surpass human intelligence, and can perform any task better than human with cognitive properties. It is an outcome of general AI.


4
New cards

What are the four categories of AI based on functionality (Type-2 AI)?

  1. Reactive Machines: Do not store past experiences; react only to current scenarios (e.g., IBM's Deep Blue, Google's AlphaGo).
  2. Limited Memory: Store past experiences or data temporarily to make decisions (e.g., self-driving cars).
  3. Theory of Mind: Understand human emotions, beliefs, and social interactions (under development).
  4. Self-Awareness: Possess consciousness, sentiments, and self-awareness beyond the human mind (hypothetical).
5
New cards

What are the four initial stages in the AI Software Development Life Cycle (AI SDLC)?

  1. Identify: Pinpoint core business functions instead of jumping into every technology movement.
  2. Find what you will automate: Differentiate AI solutions from rule-based automation.
  3. Plan the data sets for your proposed AI solution: Select appropriate training datasets to derive optimal value.
  4. Identify the AI capabilities you need: Choose required capabilities such as Machine Learning, Natural Language Processing, Vision, or Speech.
6
New cards

How do traditional software development and AI software development differ in terms of approach, core input, and programming logic?

Traditional software development is rule-based and deterministic, takes human-defined logic and algorithms as core input, and requires developers to explicitly write rules. AI software development is data-driven and probabilistic, takes large volumes of data plus machine learning algorithms as core input, and allows the model to "learn" rules from training data.

7
New cards

How does Tom Mitchell define Machine Learning in terms of tasks (TT), performance (PP), and experience (EE)?

A computer program is said to learn from experience EE with respect to some class of tasks TT and performance measure PP, if its performance at tasks in TT, as measured by PP, improves with experience EE.

8
New cards

What is the primary difference between classification and regression in Supervised Learning?

Classification algorithms predict categorical or discrete output variables (e.g., "Yes" or "No", spam or not spam), whereas regression algorithms predict continuous numerical variables based on a linear or mathematical relationship (e.g., weather prediction, price prediction).

9
New cards
<p>What machine learning interaction cycle is illustrated in this diagram, and what are its key components?</p>

What machine learning interaction cycle is illustrated in this diagram, and what are its key components?

Reinforcement Learning: An AI Agent interacts with an Environment by executing Actions, in response to which the Environment transitions to a new State and provides feedback in the form of a Reward or punishment.

10
New cards

What is Data Drift in a machine learning system?

Data Drift occurs when a machine learning model operates under an outdated context because customer requirements or data interpretations change over time, resulting in bad recommendations despite input data being processed correctly.

11
New cards

What are the seven steps involved in building a machine learning model?

  1. Collect Data
  2. Prepare the data
  3. Choose the model
  4. Train your machine model
  5. Evaluation
  6. Parameter Tuning
  7. Prediction or Inference
12
New cards

What are the four main stages of an automated software deployment pipeline?

  1. Version Control: Code is committed to a repository (e.g., GitHub), automatically compiled, unit tested, and packaged into binaries.
  2. Acceptance Tests: Compiled code is validated against custom-written acceptance criteria.
  3. Independent Deployment: Code is deployed to a staging/development environment identical to production to resolve remaining bugs.
  4. Production Deployment: Code is made live for end users (often utilizing Blue/Green Drops or Canary Releases for zero downtime).
13
New cards

What are the five steps in the high-level data science workflow described by Aakash Tandel?

  1. Understand the objective
  2. Import the data
  3. Explore and clean the data
  4. Model the data
  5. Communicate the results
14
New cards

How do the three cloud service models (IaaS, PaaS, and SaaS) differ in what layers they provide to the client?

IaaS provides only Infrastructure (virtual data centers, virtual machines, storage). PaaS provides Infrastructure + Platform (runtime environments and deployment tools for developers). SaaS provides Infrastructure + Platform + Software (hosted web software and applications for end users).

15
New cards

What is the difference between a Hybrid Cloud and a Multi-Cloud deployment model?

A Hybrid Cloud combines private and public clouds connected via proprietary software to share data and apps. A Multi-Cloud deployment employs multiple independent public cloud service providers simultaneously to prevent vendor lock-in, reduce latency, and increase high availability.

16
New cards

What are the 6 Vs of Big Data?

  1. Volume: Massive data scale (Terabytes, Petabytes, transactions).
  2. Velocity: Speed of data flow (data-in-motion, data-at-rest, real-time/offline).
  3. Veracity: Authenticity, availability, accountability, and trustworthiness (noise and inconsistencies).
  4. Variety: Heterogeneous data types (structured, unstructured, semi-structured).
  5. Validity: Accuracy and correctness of data (correct vs. incorrect data).
  6. Value: Statistical insights, correlations, and business modeling.
17
New cards

What is a Cloud SLA (Service-Level Agreement) and what four core areas does it uniformly govern?

A Cloud SLA is an agreement between a cloud service provider and a customer ensuring a minimum level of service, governing interruptions, and outlining penalties. It uniformly covers: 1. Volume and quality of work (including precision and accuracy), 2. Speed, 3. Responsiveness, and 4. Efficiency.

18
New cards

In NumPy, how do axis=0 and axis=1 operate when applying aggregation functions such as np.max() or np.min() on a 2D array?

axis=0 executes operations column-wise along the vertical yy-axis, while axis=1 executes operations row-wise along the horizontal xx-axis.

19
New cards

What is the function of pd.melt() in Pandas?

pd.melt() unpivots a DataFrame from wide format to long format. It keeps specified identifier columns fixed (id_vars), while unpivoting remaining columns (value_vars) into two columns: a variable column (var_name) and a value column (value_name).

20
New cards

Why is a logarithmic scale preferred over a linear scale when visualizing ratios or values spanning multiple orders of magnitude?

On a logarithmic scale, multiplication corresponds to equal linear distance steps, and the value 11 acts as the natural midpoint (ratios >1> 1 and ratios <1< 1 receive equal visual weight). On a linear scale, ratios >1> 1 are overemphasized and ratios <1< 1 are compressed against zero.

21
New cards

What are the two major disadvantages of using a square-root position scale?

  1. A unit step on a square-root scale does not correspond to a consistent additive or multiplicative change; its meaning depends on the starting value.
  2. Placing axis ticks is difficult: placing them at squares results in unintuitive labels, while placing them at linear intervals creates either too few ticks at the low end or too many at the high end.
22
New cards
<p>Which four map projections are illustrated here, and what is the trade-off of the Interrupted Goode homolosine projection?</p>

Which four map projections are illustrated here, and what is the trade-off of the Interrupted Goode homolosine projection?

The four projections are: Cartesian longitude and latitude, Interrupted Goode homolosine, Robinson, and Winkel tripel. The Interrupted Goode homolosine projection represents true surface areas accurately, but at the cost of splitting land masses (notably Greenland and Antarctica) into separate pieces.

23
New cards

When visualizing amounts with long text labels, why is a horizontal bar plot preferred over rotating axis labels on vertical bars?

Rotating axis tick labels produces awkward, hard-to-read text and wastes vertical margin space. Swapping the xx and yy axes to make horizontal bars places all labels horizontally, creating a compact and natural reading flow.

24
New cards

Why should bar plots of unordered categorical variables be sorted by value, whereas ordered variables should not?

Unordered categories should be sorted in ascending or descending order of bar height to make comparisons intuitive and avoid arbitrary alphabetical arrangements. Ordered categories (such as age groups or education levels) must maintain their natural inherent sequence to prevent confusion.

25
New cards

Why are dot plots preferred over bar plots when visualizing data such as life expectancy across countries?

Bars must start at zero to maintain proportional lengths, which causes tall, nearly identical bars where the eye is drawn to the bar centers rather than the endpoints. Dot plots allow zooming in on a non-zero range (e.g., 6060 to 81 years81\,\text{years}), highlighting differences clearly.

26
New cards

What are the primary pitfalls of using stacked histograms or overlapping histograms to compare two distributions?

In stacked histograms, it is ambiguous whether upper bars start at zero or sit on top of the lower bars, and upper group heights cannot be compared because their baselines vary. In overlapping semi-transparent histograms, overlapping regions blend into a third visual color, confusing the boundaries of each group.

27
New cards

According to Table 10.1, what are the primary strengths and weaknesses of a pie chart compared to side-by-side bars for visualizing proportions?

Pie charts clearly visualize proportions of a whole, visually emphasize simple fractions (12\frac{1}{2}, 13\frac{1}{3}, 14\frac{1}{4}), and look appealing for very small datasets, but fail at easy visual comparison of relative proportions and do not work well when broken into many pieces. Side-by-side bars allow easy comparison of proportions across many pieces, but do not visually emphasize proportions of a whole or simple fractions.

28
New cards

What is a correlogram, and why is encoding correlation magnitude using circle size beneficial?

A correlogram visualizes a matrix of pairwise correlation coefficients (rr). Encoding the magnitude of rr by circle size in addition to color visually suppresses near-zero correlations and ensures strong correlations stand out immediately.

29
New cards

In Principal Components Analysis (PCA), how are the principal components (PCs) constructed and ordered?

PCs are linear combinations of the original variables after standardization to zero mean and unit variance. They are mutually uncorrelated (orthogonal) and ordered such that PC 1PC\,1 captures the maximum possible variance in the data, with subsequent components capturing progressively less variance.

30
New cards

When analyzing paired quantitative measurements across two time points for a small set of entities, why is a slopegraph often preferred over a scatter plot?

A slopegraph arranges measurements into vertical columns connected by line segments, where the slope directly highlights the magnitude and direction of change for individual labeled entities, and can readily extend to three or more time points.

31
New cards

In moving average smoothing, how does plotting the average at the end of the time window differ from plotting it at the center?

Plotting moving averages at the end of the time window (common in finance) causes the smoothed line to lag behind the original data. Plotting at the center of the window (standard statistical practice) aligns the smoothed curve with the underlying data.

32
New cards

What is LOESS smoothing, and why does it produce smoother curves than a simple moving average?

LOESS (locally estimated scatterplot smoothing) fits low-degree polynomials to local subsets of data using a weighting function where data points near the center of the window are weighted more heavily than boundary points, preventing the abrupt wiggles caused by points entering/leaving a moving average window.

33
New cards

Why is it generally recommended to fit a linear regression line to log-transformed data rather than fitting an exponential curve directly to untransformed data?

In direct non-linear exponential fitting, squared deviations for the largest data values are disproportionately larger than those for small values, causing the fit to minimize large errors while systematically missing or overshooting smaller data points. Transforming to a log-linear scale balances squared errors across all magnitudes.

34
New cards

What is detrending in time-series analysis, and what did it reveal when applied to the Freddie Mac House Price Index?

Detrending divides (or on a log scale, subtracts) actual time-series values by the long-term expected growth trend. In the Freddie Mac Index, it clearly highlighted boom-and-bust cycles, showing that California experienced two major housing bubbles (around 1990 and mid-2000s) and a 25%25\% decline from 1990 to 1998 relative to expected growth.

35
New cards
<p>What time-series decomposition method is depicted here, and what do its four individual panels represent?</p>

What time-series decomposition method is depicted here, and what do its four individual panels represent?

The STL (Seasonal decomposition of Time series by LOESS) decomposition of the Keeling curve (CO2CO_2 concentration). The four panels represent: 1. Monthly average observed data, 2. Long-term trend, 3. Seasonal fluctuations (driven by Northern Hemisphere plant growth cycles), and 4. Remainder (random noise and unique events).