0% found this document useful (0 votes)
145 views3 pages

Predictive Analytics Question Answers

Uploaded by

Hruthik
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views3 pages

Predictive Analytics Question Answers

Uploaded by

Hruthik
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Predictive Analytics: Answer Key

UNIT I

Question 1:
Supervised learning is a type of machine learning where the model is trained on labeled
data. Example: Predicting house prices using historical data.

Question 2:
Linear regression predicts a continuous outcome based on input features. The least squares
method minimizes the sum of squared errors.

Question 3:
Ridge regression adds an L2 penalty term to reduce overfitting, while Lasso regression adds
an L1 penalty, which helps with feature selection.

Question 4:
Logistic regression predicts binary outcomes (0 or 1) using a logistic function: P(Y=1) = 1 /
(1 + e^(-z)), where z is a linear combination of inputs.

Question 5:
The Perceptron Learning Algorithm is an iterative process for binary classification that
updates weights to find a linear decision boundary.

UNIT II

Question 1:
The bias-variance tradeoff is a balance between model complexity and accuracy. High bias
leads to underfitting, and high variance leads to overfitting.

Question 2:
Cross-validation splits the dataset into multiple subsets to evaluate model performance and
prevent overfitting.

Question 3:
The Bayesian approach incorporates prior information to assess models and calculates
posterior probabilities for model selection.

Question 4:
Effective number of parameters refers to the number of parameters in a model that
significantly influence predictions.
Question 5:
Conditional test error is the error for a fixed training set, while expected test error averages
errors over all possible training datasets.

UNIT III

Question 1:
Generalized Additive Models (GAMs) extend linear models to include non-linear
relationships using smooth functions like splines.

Question 2:
Regression trees predict continuous outcomes by splitting data into subsets, whereas
classification trees predict categorical outcomes.

Question 3:
AdaBoost combines multiple weak learners (e.g., decision trees) to form a strong classifier
by focusing on misclassified samples.

Question 4:
Gradient Boosting minimizes loss iteratively using numerical optimization techniques to
improve predictions.

Question 5:
Decision trees split data based on feature values to form a tree structure for classifying or
predicting outcomes.

UNIT IV

Question 1:
Neural networks consist of input, hidden, and output layers that simulate the human brain
to learn from data.

Question 2:
Backpropagation is an algorithm that trains neural networks by adjusting weights to
minimize the error between predicted and actual outputs.

Question 3:
Support Vector Machines (SVM) find the optimal hyperplane that separates classes with
maximum margin.

Question 4:
The k-Nearest Neighbor (k-NN) method classifies data points based on the majority class of
their closest neighbors.
Question 5:
Kernels in SVMs transform data into higher-dimensional spaces, allowing non-linear
decision boundaries to be identified.

UNIT V

Question 1:
Clustering groups similar data points together. Types include K-Means clustering (partition-
based) and hierarchical clustering.

Question 2:
Principal Component Analysis (PCA) reduces dimensionality by transforming features into a
smaller set of uncorrelated components.

Question 3:
Association rules identify patterns and relationships in data. Example: 'Customers who buy
bread also buy milk.'

Question 4:
Random forests combine multiple decision trees to improve accuracy and reduce overfitting
using bagging techniques.

Question 5:
Unsupervised learning identifies patterns in unlabeled data. Examples include clustering
and dimensionality reduction.

Common questions

Powered by AI

Supervised learning utilizes labeled data where each training instance is paired with an output label, enabling the model to learn the mapping from inputs to outputs. It is well-suited for tasks like regression and classification where the goal is to predict or categorize known outcomes . Unsupervised learning, by contrast, deals with unlabeled data, aiming to discover inherent patterns or structures, such as clusters or associations, without predefined labels. It is suitable for tasks like clustering and dimensionality reduction when the underlying structure of the data is unknown and needs to be explored . These differences determine the learning strategy and the applicability to real-world problems based on data availability and task goals.

AdaBoost enhances predictive performance by combining multiple weak classifiers, such as decision trees, into a strong classifier . It achieves this by iteratively focusing on the instances that previous classifiers misclassified, adjusting their weights, so that subsequent classifiers pay more attention to these difficult cases. By aggregating the results of these classifiers, AdaBoost improves accuracy and robustness, particularly in scenarios where individual weak classifiers perform only marginally better than random guessing .

Regression trees are used to predict continuous outcomes by recursively partitioning the data space and fitting a simple model within each partition . In contrast, classification trees predict categorical outcomes and determine class membership by identifying the most commonly occurring class in each partition . The primary impact of these differences is on the type of data each model can handle: regression trees are best suited for numerical predictions, while classification trees are optimized for categorical data, influencing their usage in fields like economics and biology where different types of predictions are required.

Cross-validation techniques, such as k-fold cross-validation, provide more accurate and reliable model evaluation by dividing the dataset into multiple subsets and iteratively training and testing the model on these splits . Unlike traditional train-test splits which may introduce bias due to random variations in a single partition, cross-validation uses multiple data partitions to ensure that every data point has a chance to be in both training and validation sets. This leads to a more comprehensive evaluation of the model's generalizability and reduces the likelihood of overfitting .

The bias-variance tradeoff influences model selection by necessitating a balance between underfitting due to high bias and overfitting due to high variance . Models with high complexity typically exhibit low bias but high variance, whereas simpler models may suffer from high bias and low variance. Strategies to mitigate its effects include using cross-validation to assess model performance across various datasets, regularization techniques like Ridge and Lasso regression to control complexity, and ensemble methods such as random forests and boosting to improve robustness .

Ridge regression introduces an L2 penalty term, which adds a quadratic regularization component, discouraging overly complex models by penalizing large coefficients and thus reducing overfitting . Lasso regression, on the other hand, incorporates an L1 penalty, promoting sparsity by driving some coefficients to zero, which also contributes to feature selection . Ridge regression is advantageous when multicollinearity exists as it stabilizes the estimate of linear relationships, while Lasso regression excels in providing interpretable models by selecting a subset of features, making it useful in high-dimensional datasets .

Logistic regression is used to predict binary outcomes (0 or 1) and uses a logistic function to output probabilities for class membership. It is particularly suited for classification tasks . Linear regression, conversely, predicts continuous numerical outcomes based on various input features and minimizes the sum of squared differences between the actual and predicted values, making it ideal for regression tasks like predicting house prices .

A neural network consists of an input layer, several hidden layers, and an output layer . The input layer receives raw data inputs, passing them to the network. Hidden layers perform complex computations through a series of nodes (neurons) which apply weights, biases, and activation functions to capture non-linear relationships. Each neuron in a hidden layer is connected to every neuron in the subsequent layer, enabling the network to learn intricate patterns. The output layer then produces the final prediction or classification based on the processed information . The architecture allows the network to simulate human learning, making it suitable for tasks like image and speech recognition.

Principal Component Analysis (PCA) transforms features by projecting them onto a smaller set of orthogonal components, which capture the maximum variance in the data with minimal redundancy . This transformation reduces the dimensionality of the dataset while retaining the most informative aspects, enhancing computational efficiency and reducing noise. The benefits of PCA include reducing the risk of overfitting in models due to a lower number of input variables and improving visualization and interpretation of complex datasets . It is particularly beneficial in fields such as genomics and finance where high-dimensional data is common.

Kernels in SVMs enable the transformation of input data into higher-dimensional spaces where linear separations are possible even if the data is not linearly separable in its original space . This transformation allows SVMs to create decision boundaries that can handle complex, non-linear relationships by fitting to the increased dimensional representation of the data, crucial for applications such as image classification and bioinformatics .

You might also like