AI-702-A Predictive Analytics

Predictive Analytics (AI-702-A) Important Questions

These are the 10 Predictive Analytics (AI-702-A) topics we chose from the RGPV syllabus for RGPV B.Tech CSE-AI semester 7. No past paper of this subject is on this site yet, so we could not count repeats.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • All papers on this site: 0
  • Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these

10 Predictive Analytics topics from the syllabus

Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.

Predictive Analytics important questions with answers

Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.

Q1. Analytics: what and why, tools and the need for business modelling

Short answer. Analytics is the use of data, statistics and models to answer business questions and support decisions. Predictive analytics uses past data to estimate what will happen next, so a firm can act before it happens.

From the syllabus · Unit 1

From the papers

  • “Unit 1: What and Why Analytics, Introduction to Tools and Environment, Application of Modelling in Business, Need for Business Modelling.” (Syllabus)

Write these points

What analytics is

  • Descriptive: what happened? Reports and dashboards.
  • Predictive: what will happen? Regression, trees, forecasting.
  • Prescriptive: what should we do? Optimisation and decision rules.

Why analytics

  • Decisions based on evidence instead of guesswork.
  • Risks such as default or fraud are found early.
  • Need for business modelling: a model turns many records into one score a manager can use, again every month.

Tools and environment

  • Excel for small data, SQL to pull data.
  • R, Python (pandas, scikit-learn), SAS, SPSS for models.
  • Tableau or Power BI dashboards to share results.
Diagram: Analytics: what and why, tools and the need for business modelling

Value of a churn model (from calc.py).

A telecom firm scores 1,00,000 customers and picks the top 5,000. Here 30 percent would leave, against 5 percent overall: lift 6.

Churners reached = 1,500. Offers save 40 percent, 600 customers worth Rs 2,000 each = Rs 12,00,000. Cost 5,000 x Rs 100 = Rs 5,00,000. Net gain Rs 7,00,000.

Remember. This set follows the AI-702(A) syllabus of CSE (Artificial Intelligence). AD-702(D), AL-702(C) and CSIT-702(D) have the same subject name but a different syllabus, so they are not covered here.

Real-life example

A kirana shop owner notices that bread and milk sell out every Sunday morning. He keeps extra stock on Saturday night. That is analytics done by eye. A supermarket chain does the same with lakhs of bills, so it needs data tools and a model.

Difference between descriptive and predictive analytics

PointDescriptivePredictiveSame or opposite
Uses historical dataYesYesSame
QuestionWhat happened?What will happen?Opposite
Typical outputReport, chartScore, forecastOpposite
MethodsSums, averages, chartsRegression, trees, time seriesOpposite
Supports business decisionsYesYesSame

Exam tip. Start with a one line definition, then the three kinds of analytics with one question each. Name tools in groups. Close with why a business needs a model, with one number example.

Back to the topic list

Q2. Linear regression, assumptions, BLUE and least squares estimation

Short answer. Linear regression models a numeric target as a straight line function of inputs, y = b0 + b1 x + e. Least squares estimation picks b0 and b1 that make the sum of squared errors smallest, which under the classical assumptions gives BLUE estimates.

From the syllabus · Unit 1

From the papers

  • “Unit 1: Regression - Concepts, Blue property-assumptions-Least Square Estimation.” (Syllabus)

Write these points

Concepts

  • b0 is the intercept, b1 the change in y for one unit change in x.
  • The residual e = y - ŷ is the part the line does not explain.
  • Multiple regression uses many inputs: y = b0 + b1 x1 + ... + bk xk + e.

Assumptions

  1. Linear relation between inputs and target.
  2. Errors have mean zero.
  3. Constant error variance (homoscedasticity).
  4. Errors are not correlated with each other.
  5. No exact linear relation among inputs (no perfect multicollinearity).
  6. For tests and intervals, errors are normal.

BLUE property

BLUE means Best Linear Unbiased Estimator. By the Gauss-Markov theorem, when assumptions 1 to 5 hold, the least squares estimates have the smallest variance among all linear unbiased estimates. Normality is not needed for BLUE.

Least squares formulas

  • b1 = Σ(x - x̄)(y - ȳ) / Σ(x - x̄)^2.
  • b0 = ȳ - b1 x̄.
  • R squared = 1 - SSE / SST.
Diagram: Linear regression, assumptions, BLUE and least squares estimation

Least squares on five points (from calc.py).

x = 1, 2, 3, 4, 5 and y = 2, 4, 5, 4, 5. Means 3 and 4.

Σ(x - x̄)(y - ȳ) = 6 and Σ(x - x̄)^2 = 10, so b1 = 0.6 and b0 = 4 - 1.8 = 2.2.

Predictions 2.8, 3.4, 4.0, 4.6, 5.2. Residuals -0.8, 0.6, 1.0, -0.6, -0.2 add up to 0.

SSE = 2.4, SST = 6, R squared = 0.6. Error variance s^2 = 2.4 / 3 = 0.8, SE(b1) = 0.283, t = 2.12.

Real-life example

A coaching centre sees that students who study more hours score higher. The owner draws the best straight line through past students' hours and marks. He uses it to tell a new student roughly what an extra hour a day may add. That line is a least squares regression.

Difference between simple and multiple linear regression

PointSimpleMultipleSame or opposite
Fitted by least squaresYesYesSame
Number of inputsOneTwo or moreOpposite
ShapeLinePlane or hyperplaneOpposite
Risk of multicollinearityNoneYesOpposite
Estimates are BLUE under the assumptionsYesYesSame

Exam tip. Write the model, the assumptions and the full form of BLUE. Then solve a five point example to b0, b1 and R squared. Draw the line with residuals.

Back to the topic list

Q3. Logistic regression: model theory

Short answer. Logistic regression predicts the chance of a yes or no outcome. It models the log of the odds as a straight line, so p = 1 / (1 + e^-z) with z = b0 + b1 x.

From the syllabus · Unit 2

From the papers

  • “Unit 2: Logistic Regression: Model Theory.” (Syllabus)

Write these points

Model theory

  • The target is binary: default or not, buy or not.
  • z = b0 + b1 x1 + ... is the linear score, also called the logit.
  • The sigmoid turns z into p between 0 and 1.
  • Coefficients are found by maximum likelihood, not least squares.
  • e^b1 is the odds ratio: the odds multiply by this for one unit rise in x1.

Why not linear regression

  • A straight line can give p below 0 or above 1.
  • Errors of a 0 or 1 target are not normal and their variance is not constant.
Diagram: Logistic regression: model theory

Scoring one customer (from calc.py).

Fitted model z = -4 + 0.8x. For x = 5, z = 0 and p = 0.5, the boundary.

For x = 6, z = 0.8 and p = 1 / (1 + e^-0.8) = 0.69. Odds = 0.69 / 0.31 = 2.226.

Odds ratio e^0.8 = 2.226. Each extra unit of x multiplies the odds of yes by about 2.2.

At a cut-off of 0.5 this customer is classed as yes.

Real-life example

A bank officer looks at salary, existing loans and past repayment. He turns them into one score, then into a chance of default. If the chance is above the bank's limit the loan is refused. That is logistic regression used every day in Indian banking.

Difference between linear and logistic regression

PointLinearLogisticSame or opposite
A linear score of inputs insideYesYesSame
TargetNumberYes or noOpposite
Output rangeAny value0 to 1Opposite
Fitting methodLeast squaresMaximum likelihoodOpposite
Coefficients can be read for each inputYesYes, as odds ratiosSame

Exam tip. Write the logit and sigmoid formulas. Draw the S curve with the cut-off. Compute p and the odds ratio for one input to show you can use the model.

Back to the topic list

Q4. Logistic regression: model fit statistics and model conclusion

Short answer. Model fit statistics tell how well a logistic model fits the data and whether its inputs matter. Model conclusion is the final judgement: keep, change or reject the model, written with its numbers.

From the syllabus · Unit 2

From the papers

  • “Unit 2: Logistic Regression: Model fit Statistics, Model Conclusion.” (Syllabus)

Write these points

Fit statistics

  • -2 log likelihood (deviance): smaller is better.
  • Likelihood ratio test: null deviance minus model deviance, a chi-square with df = number of inputs.
  • AIC = -2LL + 2(k + 1). Lower is better when comparing models.
  • Pseudo R squared (McFadden) = 1 - model deviance / null deviance.
  • Hosmer-Lemeshow test: compares observed and expected counts in groups. A large p-value means no sign of poor fit.
  • Wald test for each coefficient.

Classification measures

  • Confusion matrix, accuracy, precision, recall, F1.
  • ROC curve and AUC, Gini = 2 AUC - 1.
  • KS statistic and concordance are used in credit scoring.
Diagram: Logistic regression: model fit statistics and model conclusion

Fit statistics (from calc.py).

Null deviance 250, model deviance 180, k = 3 inputs. LR chi-square = 70 with df 3. The 5 percent critical value is 7.815, so the inputs matter.

AIC = 180 + 2 x 4 = 188. McFadden R squared = 1 - 180 / 250 = 0.28.

Test set: TP 40, FP 10, FN 20, TN 130. Accuracy 0.85, precision 0.80, recall 0.667, F1 0.727, specificity 0.929.

Model conclusion

State the measures, check signs of coefficients against business sense, compare with a simpler model and confirm on a hold-out sample. Then say whether the model is accepted.

Real-life example

A cricket selector does not pick a player on one innings. He checks average, strike rate and form against strong teams before he decides. Model fit statistics are those checks for a model. The model conclusion is the selector's final yes or no.

Difference between AIC and the likelihood ratio test

PointAICLR testSame or opposite
Built from the log likelihoodYesYesSame
PurposeCompare any modelsTest if inputs add valueOpposite
OutputOne score, lower is betterChi-square and p-valueOpposite
Needs nested modelsNoYesOpposite
Used for logistic modelsYesYesSame

Exam tip. List four fit statistics with formulas. Work the LR test and AIC from given deviances. End with a clear conclusion sentence, as examiners give marks for it.

Back to the topic list

Q5. Tree building: regression and classification trees

Short answer. Tree building splits the data again and again on the input that best separates the target. A classification tree predicts a class and splits on entropy or Gini, while a regression tree predicts a number and splits on the fall in squared error.

From the syllabus · Unit 2

From the papers

  • “Unit 2: Tree Building - Regression, Classification, Over fitting, Pruning and complexity, Multiple Decision Trees.” (Syllabus)

Write these points

Steps

  1. Start with all records at the root.
  2. Try every input and cut point. Measure the purity of the children.
  3. Pick the best split and divide the data.
  4. Repeat on each child.
  5. Stop at a depth limit, a minimum leaf size or no gain. Then prune.

Split measures

  • Entropy H = - Σ p log2 p. Information gain = parent H - weighted child H (ID3, C4.5).
  • Gini = 1 - Σ p^2 (CART).
  • Regression trees: choose the split with the lowest total SSE. Each leaf predicts its mean.
Diagram: Tree building: regression and classification trees

Classification and regression splits (from calc.py).

Play-tennis data: 9 yes and 5 no. Entropy = 0.940, Gini = 0.459.

Outlook splits it into Sunny (2, 3), Overcast (4, 0), Rain (3, 2). Weighted entropy = 0.694, gain = 0.247, the largest, so Outlook is the root.

Regression targets 10, 12, 11, 30, 32, 31. Parent SSE = 604. Split into the first three and the last three: SSE = 2 + 2 = 4. Leaves predict 11 and 31.

Real-life example

A doctor checking a fever case asks: is the temperature above 102? If yes, is there a rash? Each question splits the patients into smaller groups. The doctor asks the question that sorts them fastest first. A tree chooses its splits the same way.

Difference between classification tree and regression tree

PointClassification treeRegression treeSame or opposite
Built by recursive splittingYesYesSame
TargetClassNumberOpposite
Split measureEntropy or GiniSSE or varianceOpposite
Leaf outputMajority classMean valueOpposite
Needs pruning to avoid overfittingYesYesSame

Exam tip. Write the entropy, Gini and gain formulas. Work one gain value. Draw the tree with counts at each node. Then show one SSE split for a regression tree.

Back to the topic list

Q6. Overfitting, pruning and complexity of trees

Short answer. Overfitting happens when a tree learns noise in the training data, so it scores well on training data and poorly on new data. Pruning removes weak branches to control tree complexity and improve accuracy on new data.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Tree Building - Regression, Classification, Over fitting, Pruning and complexity.” (Syllabus)

Write these points

Signs of overfitting

  • Very deep tree with tiny leaves.
  • Training error keeps falling while test error rises.
  • Rules that make no business sense.

Pre-pruning (early stopping)

  • Maximum depth.
  • Minimum records in a node or leaf.
  • Minimum gain or a chi-square test (CHAID) before a split.

Post-pruning

  • Grow a full tree, then cut back.
  • Cost complexity pruning (CART): R_α(T) = R(T) + α |T|, where R(T) is the error and |T| the number of leaves.
  • Choose α by cross-validation.
  • Reduced error pruning: remove a branch if the validation error does not rise.
Diagram: Overfitting, pruning and complexity of trees

Cost complexity (from calc.py).

Tree A: 8 leaves, error 0.10. Tree B: 3 leaves, error 0.14.

With α = 0.005: A = 0.10 + 0.04 = 0.14, B = 0.14 + 0.015 = 0.155. A wins.

With α = 0.01: A = 0.18, B = 0.17. The smaller tree B wins.

The break-even α = (0.14 - 0.10) / (8 - 3) = 0.008.

Real-life example

A student who learns past answers word by word does well on questions seen before and fails on new ones. That is overfitting. A student who learns the method does well on both. Pruning cuts the word by word branches so the tree keeps only the method.

Difference between pre-pruning and post-pruning

PointPre-pruningPost-pruningSame or opposite
AimControl overfittingControl overfittingSame
When appliedWhile growingAfter full growthOpposite
Cost to computeLowHigherOpposite
RiskStops too earlyLess risk of thatOpposite
Uses validation data to tuneYesYesSame

Exam tip. Define overfitting with the training and test error curve. Write the cost complexity formula. Work one example with two α values to show which tree is kept.

Back to the topic list

Q7. Multiple decision trees: bagging, random forest and boosting

Short answer. Multiple decision trees combine many trees into one ensemble that is more accurate and stable than a single tree. The main types are bagging, random forest and boosting.

From the syllabus · Unit 3

From the papers

  • “Unit 3: Multiple Decision Trees.” (Syllabus)

Write these points

Bagging

  • Draw many bootstrap samples (with replacement) of the training rows.
  • Grow one deep tree on each.
  • Average (regression) or vote (classification).

Random forest

  • Bagging plus a random subset of m inputs at every split.
  • A common default for classification is m = square root of the number of inputs.
  • Out-of-bag rows give a free test error.
  • Variable importance shows which inputs matter most.

Boosting

  • Trees are grown one after another.
  • Each new tree focuses on the errors of the earlier ones.
  • AdaBoost and gradient boosting are common forms.
Diagram: Multiple decision trees: bagging, random forest and boosting

Why many trees help (from calc.py).

With n = 1,000 rows, the chance that a row is left out of a bootstrap sample is (1 - 1/1000)^1000 = 0.368, close to 1/e.

Five independent trees, each right 70 percent of the time, vote. The majority is right with chance 0.837.

With 16 inputs, a random forest tries m = 4 inputs at each split.

Remember. Real trees are not fully independent, so the gain is smaller than 0.837 in practice. The example shows the idea only.

Real-life example

A TV quiz lets a contestant poll the audience. Each person may be unsure, but the most common answer is usually right. A random forest polls many trees that each saw slightly different data. The vote is steadier than any one tree.

Difference between bagging and boosting

PointBaggingBoostingSame or opposite
Combines many treesYesYesSame
Order of treesParallel, independentOne after anotherOpposite
Main effectCuts varianceCuts biasOpposite
Weights on rowsEqualHigher on errorsOpposite
Loses some interpretabilityYesYesSame

Exam tip. Draw the bagging diagram first. Explain bagging, random forest and boosting in three short parts. The 0.368 out-of-bag figure is a good number to quote.

Back to the topic list

Q8. ARIMA models for forecasting

Short answer. ARIMA(p, d, q) is a time series model that combines AutoRegression on p past values, Integration by d differences and a Moving Average of q past errors. It forecasts a series after differencing has made it stationary.

From the syllabus · Unit 4

From the papers

  • “Unit 4: Time Series Methods / Forecasting: Arima.” (Syllabus)

Write these points

Parts

  • AR(p): y_t = c + φ1 y_t-1 + ... + φp y_t-p + e_t.
  • I(d): difference the series d times to remove trend.
  • MA(q): y_t = c + e_t + θ1 e_t-1 + ... + θq e_t-q.
  • Seasonal ARIMA adds seasonal terms (P, D, Q) with period s.

Stationarity

  • Mean and variance do not change with time.
  • Checked by plots, the ACF and unit root tests such as ADF.

Identification

ModelACFPACF
AR(p)Dies away slowlyCuts off after lag p
MA(q)Cuts off after lag qDies away slowly
ARMA(p, q)Dies awayDies away
Diagram: ARIMA models for forecasting

Differencing and an AR(1) forecast (from calc.py).

Series 100, 104, 109, 115, 122. First difference 4, 5, 6, 7 still rises. Second difference 1, 1, 1 is flat, so d = 2.

AR(1) with mean 50, φ = 0.6 and last value 60: forecast = 50 + 0.6 (60 - 50) = 56.

Next steps 53.6 and 52.16. Forecasts move back toward the mean.

Real-life example

A railway zone forecasts monthly ticket sales. Sales rise every year, so the planner first takes differences to remove the trend. Then this month's change is predicted from the last few changes and errors. That is ARIMA in use.

Difference between AR and MA models

PointARMASame or opposite
Models a stationary seriesYesYesSame
UsesPast valuesPast errorsOpposite
ACF patternDies awayCuts off at qOpposite
PACF patternCuts off at pDies awayOpposite
Part of ARIMAYesYesSame

Exam tip. Expand ARIMA and write the AR and MA equations. Give the ACF and PACF table. Show a differencing example and the Box-Jenkins steps.

Back to the topic list

Q9. Measures of forecast accuracy

Short answer. Measures of forecast accuracy compare forecasts with actual values to judge a model. The common ones are ME, MAE, MSE, RMSE and MAPE, each built from the error e = actual - forecast.

From the syllabus · Unit 4

From the papers

  • “Unit 4: Measures of Forecast Accuracy.” (Syllabus)

Write these points

Measures

  • ME (mean error) = mean of e. Shows bias: over or under forecasting.
  • MAE = mean of |e|. Easy to read in the data's units.
  • MSE = mean of e^2. Punishes large errors more.
  • RMSE = square root of MSE, back in the data's units.
  • MAPE = mean of |e| / actual x 100. Unit free, but fails when actual is zero.

Good practice

  • Measure on a hold-out period, not on the data used to fit.
  • Compare with a simple benchmark such as the naive forecast.
  • Use the same measure for every model compared.
Diagram: Measures of forecast accuracy
MeasureUnitsEffect of one large error
MAEData unitsMedium
RMSEData unitsLarge
MAPEPercentMedium

Four months of forecasts (from calc.py).

Actual 120, 130, 125, 140. Forecast 118, 135, 120, 138. Errors 2, -5, 5, 2.

ME = 4 / 4 = 1, a small under forecast. MAE = 14 / 4 = 3.5.

MSE = 58 / 4 = 14.5 and RMSE = 3.808.

MAPE = (1.67 + 3.85 + 4.00 + 1.43) / 4 = 2.74 percent.

Real-life example

A dairy forecasts how many litres of milk each booth will need. If the forecast is too low, customers go home empty. If it is too high, milk is wasted. The manager checks MAPE every week to see whether the forecast is getting better.

Difference between MAE and RMSE

PointMAERMSESame or opposite
Built from forecast errorsYesYesSame
Treats errorsEquallySquares them firstOpposite
Effect of one big errorMediumLargeOpposite
Value in the example3.53.808Opposite
Lower is betterYesYesSame

Exam tip. Write each formula with its full form. Work all measures on one small table. Say which to use when large errors are costly.

Back to the topic list

Q10. SOP for documentation: purpose and scope

Short answer. A Standard Operating Procedure (SOP) for documentation is a written set of steps that tells everyone how to create, review, store and share documents the same way. Its purpose and scope section says why the SOP exists, who must follow it and which documents it covers.

From the syllabus · Unit 5

From the papers

  • “Unit 5: Working with Documents (NOS 0703): Standard Operating Procedures for documentation and knowledge sharing, defining purpose and scope documents.” (Syllabus)

Write these points

Parts of an SOP

  1. Title, number, version and date.
  2. Purpose: the goal of the procedure.
  3. Scope: teams, document types and systems covered.
  4. Roles and responsibilities: author, reviewer, approver.
  5. Procedure: numbered steps.
  6. Templates, references and the change history.

Defining purpose and scope

  • Purpose answers why: for example, keep project reports consistent and easy to find.
  • Scope answers what and who: for example, all analytics reports of the data team.
  • Out of scope items are listed too, so there is no confusion.
  • Both are short, clear and approved.

Knowledge sharing

  • Store approved documents in one knowledge base with clear names.
  • Tag documents by project and topic.
  • Hold short reviews so lessons are written down, not lost when people leave.
Diagram: SOP for documentation: purpose and scope

Purpose and scope (sample input and output).

Input: the team says reports are hard to find and every analyst uses a different format.

Purpose: to make every model report follow one template and be stored in one place.

Scope: all model reports of the analytics team. Out of scope: emails and personal notes.

Real-life example

A hospital has an SOP for giving medicine. Every nurse follows the same steps, so a patient is safe whichever nurse is on duty. An SOP for documents works the same way. Any analyst can find, read and update a report because it follows the agreed steps.

Difference between purpose and scope of an SOP

PointPurposeScopeSame or opposite
Part of every SOPYesYesSame
AnswersWhyWhat and whoOpposite
LengthOne or two sentencesShort listOpposite
Lists exclusionsNoYesOpposite
Approved with the SOPYesYesSame

Exam tip. List the parts of an SOP in order. Write a sample purpose and scope. Draw the SOP life cycle and mention knowledge sharing.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

Predictive Analytics (AI-702-A) FAQs

What are the most important topics in Predictive Analytics?

No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Analytics: what and why, tools and the need for business modelling; Linear regression, assumptions, BLUE and least squares estimation; Logistic regression: model theory; Logistic regression: model fit statistics and model conclusion; Tree building: regression and classification trees.

How were these Predictive Analytics important questions chosen?

Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.

Is there a PDF of Predictive Analytics important questions with answers?

Yes. The Paperwala Imp Question & Answer PDF for Predictive Analytics is free to download from this page.

The 10 topics of Predictive Analytics (AI-702-A) for RGPV B.Tech CSE-AI semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.