1/34
Comprehensive practice flashcards covering fundamental concepts, algorithms, workflows, cloud architectures, and data visualization techniques from Weeks 1, 2, and 3 lecture notes.
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."
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.
What are the three classifications of AI based on capabilities (Type-1 AI)?
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.
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).
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.
What are the four categories of AI based on functionality (Type-2 AI)?
What are the four initial stages in the AI Software Development Life Cycle (AI SDLC)?
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.
How does Tom Mitchell define Machine Learning in terms of tasks (T), performance (P), and experience (E)?
A computer program is said to learn from experience E with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as measured by P, improves with experience E.
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).

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.
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.
What are the seven steps involved in building a machine learning model?
What are the four main stages of an automated software deployment pipeline?
What are the five steps in the high-level data science workflow described by Aakash Tandel?
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).
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.
What are the 6 Vs of Big Data?
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.
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 y-axis, while axis=1 executes operations row-wise along the horizontal x-axis.
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).
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 1 acts as the natural midpoint (ratios >1 and ratios <1 receive equal visual weight). On a linear scale, ratios >1 are overemphasized and ratios <1 are compressed against zero.
What are the two major disadvantages of using a square-root position scale?

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.
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 x and y axes to make horizontal bars places all labels horizontally, creating a compact and natural reading flow.
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.
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., 60 to 81years), highlighting differences clearly.
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.
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 (21, 31, 41), 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.
What is a correlogram, and why is encoding correlation magnitude using circle size beneficial?
A correlogram visualizes a matrix of pairwise correlation coefficients (r). Encoding the magnitude of r by circle size in addition to color visually suppresses near-zero correlations and ensures strong correlations stand out immediately.
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 PC1 captures the maximum possible variance in the data, with subsequent components capturing progressively less variance.
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.
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.
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.
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.
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% decline from 1990 to 1998 relative to expected growth.

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 (CO2 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).