CD-802-C Computational Statistics

Computational Statistics (CD-802-C) Important Questions

RGPV · B.Tech · CSE-DS · Semester 8 · Current scheme · 0 papers

  1. Read the answers

    Start with the topics that come every year.

  2. Revise unit notes

    Go through each unit once to score more.

Paperwala Imp Topics - Computational Statistics important questions

Download Paperwala Imp Question & Answer (PDF)

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

Computational Statistics important questions with answers

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

Q1. Probability and sampling concepts

From the syllabus · Unit 1

From the papers

  • “Unit 1: Probability concepts, sampling concepts.” (Syllabus)

The short answer

Probability measures how likely an event is on a scale from 0 to 1. Sampling chooses a part of a population so that we can learn about the whole.

Write these points

Probability concepts

  • Sample space is the set of all outcomes. An event is a part of it.
  • Conditional probability: P(A | B) = P(A and B) / P(B).
  • Bayes rule: P(A | B) = P(B | A) x P(A) / P(B).
  • A random variable maps outcomes to numbers. Its mean and variance describe the centre and spread.
  • Law of large numbers: the sample mean moves close to the true mean as n grows.

Sampling concepts

  • Simple random sample: every unit has the same chance.
  • Stratified sample: split into groups and sample each group in proportion.
  • Systematic and cluster samples: every k-th unit, or whole groups at random.
  • Standard error of the mean = sigma / square root of n.

Bayes rule for a medical test.

Disease rate 2 percent. The test is positive for 90 percent of sick people and false positive for 5 percent of healthy people.

P(sick | positive) = (0.9 x 0.02) / (0.9 x 0.02 + 0.05 x 0.98) = 0.018 / 0.067 = 0.269.

Only about 27 percent of positives are really sick, because the disease is rare.

Stratified sample and standard error.

A college has 600 urban and 400 rural students. A sample of 100 takes 60 urban and 40 rural.

With sigma = 10: n = 25 gives standard error 2. n = 100 gives 1. Four times the data halves the error.

Real-life example

A pollster who asks only 100 people in one Bhopal market gets a biased sample. A fair sample takes people from every area in proportion. The standard error then tells how far the result can be from the truth.

Diagram: Probability and sampling concepts

Same or opposite: simple random and stratified sampling

PointSimple randomStratifiedSame or opposite
Groups usedNoneYes, in proportionOpposite
Every unit has an equal chanceYesYes, inside each groupSame
Error when groups differHigherLowerOpposite
Needs group informationNoYesOpposite

Exam tip. State Bayes rule and solve the test example, because a number answer shows skill. Then name the sampling types in one line each. Show the standard error formula.

Back to the topic list

Q2. Generating random variables

From the syllabus · Unit 1

From the papers

  • “Unit 1: Generating random variables.” (Syllabus)

The short answer

Generating random variables means turning uniform random numbers on (0, 1) into draws from a wanted distribution. The main methods are the inverse transform and acceptance-rejection.

Write these points

Inverse transform method

  1. Find the cumulative distribution function F(x).
  2. Draw u from the uniform distribution.
  3. Solve u = F(x) for x, that is x = F inverse of u.
  • For the exponential with rate l: F(x) = 1 minus exp(minus l x), so x = minus ln(1 minus u) / l.

Acceptance-rejection method

  • Choose an easy density g and a constant c so that f(x) is at most c x g(x).
  • Draw x from g and u from the uniform. Accept x if u is at most f(x) / (c x g(x)). Otherwise try again.
  • The acceptance rate is 1 / c. A small c wastes less work.

Exponential with l = 0.5.

u = 0.2 gives x = minus ln(0.8) / 0.5 = 0.446. u = 0.5 gives 1.386. u = 0.9 gives 4.605.

Acceptance-rejection for f(x) = 6x(1 minus x) on (0, 1).

Take g uniform and c = 1.5, since the maximum of f is 1.5 at x = 0.5.

Draw x = 0.5, u = 0.9. Ratio f/(c g) = 1.0. Since 0.9 is at most 1.0, accept.

Draw x = 0.2, u = 0.8. Ratio = 0.64. Since 0.8 is above 0.64, reject. The acceptance rate is 1/1.5 = 0.667.

Real-life example

A game developer who wants random waiting times for customers at a counter uses the inverse transform on a uniform random number. Each uniform number becomes one waiting time. The set of times then follows the exponential curve.

Diagram: Generating random variables

Same or opposite: inverse transform and acceptance-rejection

PointInverse transformAcceptance-rejectionSame or opposite
Needs the inverse of FYesNoOpposite
Draws wastedNoneSomeOpposite
Starts from uniform numbersYesYesSame
Works when F has no closed inverseNoYesOpposite

Exam tip. Write the three steps of the inverse method with the exponential result. Then work one accept and one reject draw. State the acceptance rate.

Back to the topic list

Q3. Exploratory data analysis

From the syllabus · Unit 1

From the papers

  • “Unit 1: Exploratory data analysis.” (Syllabus)

The short answer

Exploratory data analysis (EDA) looks at data with summaries and plots before any model, to see its shape, spread, outliers and patterns.

Write these points

Tools

  • Summary numbers: mean, median, variance, standard deviation, quartiles.
  • Histogram: shape of one variable. Box plot: median, quartiles and outliers.
  • Scatter plot and correlation: link between two variables.
  • Q-Q plot: checks if data follow a normal curve.
  • Outlier rule: a value below Q1 minus 1.5 x IQR or above Q3 plus 1.5 x IQR is flagged.

Marks of ten students: 12 15 14 10 18 20 11 13 15 60.

Mean = 18.8. Median = 14.5. Q1 = 12.25. Q3 = 17.25. IQR = 5.0.

Fences: 12.25 minus 7.5 = 4.75 and 17.25 plus 7.5 = 24.75. So 60 is an outlier.

The mean is pulled up by the outlier. The median stays near the middle, so it is more stable.

Real-life example

A teacher who sees a class average of 18.8 may think the class did well. A look at the box plot shows one very high score of 60 and most marks near 14. EDA saves her from a wrong view.

Diagram: Exploratory data analysis

Same or opposite: mean and median

PointMeanMedianSame or opposite
Affected by outliersStronglyLittleOpposite
Uses every valueYesNo, only the middleOpposite
Measures the centreYesYesSame
Value for 12 15 14 10 18 20 11 13 15 6018.814.5Opposite

Exam tip. Give the outlier rule and compute it on a ten value list. Show how mean and median differ. Mention one plot for each task.

Back to the topic list

Q4. Monte Carlo methods and the bootstrap

From the syllabus · Unit 1

From the papers

  • “Unit 1: Monte Carlo methods for inferential statistics.” (Syllabus)

The short answer

Monte Carlo methods use repeated random sampling to estimate a quantity or the spread of a statistic. The bootstrap resamples the data itself to give standard errors and confidence intervals.

Write these points

Monte Carlo

  • Simulate many random trials. The average result estimates the answer.
  • Error falls as 1 / square root of the number of trials.
  • Used for p-values, power, integrals and risk.

Bootstrap

  1. Draw n values from the data with replacement. This is one resample.
  2. Compute the statistic, such as the mean, on the resample.
  3. Repeat B times, for example 2000.
  4. The standard deviation of the B values is the bootstrap standard error. The 2.5th and 97.5th percentiles give a 95 percent interval.

Bootstrap of a sample mean.

Data: 12 15 14 10 18 20 11 13 15 16. Sample mean = 14.4.

With 2000 resamples (seed 1): standard error = 0.91 and 95 percent interval = 12.7 to 16.2.

Monte Carlo estimate of pi: draw 100,000 random points in the unit square. The share inside the quarter circle is 0.786. Times 4 gives 3.145.

Remember. The bootstrap numbers come from one seeded run. A different seed gives slightly different values.

Real-life example

A cricket analyst has the scores of only 10 innings of a batter. Resampling those scores thousands of times shows how much the average could change. This gives a range for the true average without a formula.

Diagram: Monte Carlo methods and the bootstrap

Same or opposite: bootstrap and Monte Carlo simulation

PointBootstrapMonte Carlo simulationSame or opposite
Samples drawn fromThe observed dataA model or distributionOpposite
Needs a modelNoYesOpposite
Repeats random drawsYesYesSame
Gives standard errorsYesYesSame

Exam tip. List the four bootstrap steps, then give the example numbers. State that sampling is with replacement. Add the pi example if space remains.

Back to the topic list

Q5. Data partitioning and cross-validation

From the syllabus · Unit 2

From the papers

  • “Unit 2: Data partitioning.” (Syllabus)

The short answer

Data partitioning splits data into parts for training, tuning and testing so that a model is judged on data it has not seen. Cross-validation repeats this over several splits.

Write these points

Common splits

  • Hold-out: for example 70 percent train, 15 percent validation, 15 percent test.
  • k-fold cross-validation: split into k parts. Train on k minus 1 and test on the rest. Repeat k times and average.
  • Leave-one-out: k equals n. Good for small data, costly for large data.
  • Stratified split: keep the class shares the same in every part.
  • Bootstrap split: train on a resample and test on the unused rows.

5-fold split of 20 rows.

Each fold holds 4 rows. Fold 1 is rows 0, 5, 10, 15. Fold 2 is rows 1, 6, 11, 16.

Every row is tested once and trained on four times. The five test scores are averaged.

Remember. Never tune the model on the test set. Use the validation set or cross-validation for tuning.

Real-life example

A student who solves only last year paper and then takes a mock test on the same paper learns little. A mock test on new questions shows the real level. The test split is that new paper.

Diagram: Data partitioning and cross-validation

Same or opposite: hold-out and k-fold

PointHold-outk-foldSame or opposite
Number of train and test runsOnekOpposite
CostLowHigherOpposite
Estimate is stableLessMoreOpposite
Keeps test data unseenYesYesSame

Exam tip. Draw the fold picture with one fold shaded. Give the k fold steps and the average. State that the test set is used once.

Back to the topic list

Q6. Probability density estimation

From the syllabus · Unit 2

From the papers

  • “Unit 2: Probability density estimation.” (Syllabus)

The short answer

Probability density estimation finds the density of a variable from sample data. The main nonparametric methods are the histogram and the kernel density estimate.

Write these points

Methods

  • Parametric: assume a form such as a normal curve. Then fit its parameters.
  • Histogram: count points in bins. Density = count / (n x bin width). It depends on the bin width and the starting point.
  • Kernel density estimate (KDE): put a small bump (kernel) on each point and add them. f(x) = (1 / nh) x sum of K((x minus xi) / h).
  • Bandwidth h controls smoothness. A small h gives a spiky curve and a large h hides detail.

Histogram density.

Data: 1 2 2 3 3 3 4 4 5 7. Bins of width 2: [0,2) has 1, [2,4) has 5, [4,6) has 3, [6,8) has 1.

Density of [2,4) = 5 / (10 x 2) = 0.25. Of [0,2) = 0.05. The densities times widths add to 1.

Gaussian KDE with h = 1.

Data: 1, 2, 4. At x = 2: f = (1/3) x (K(1) + K(0) + K(2)) = 0.2316.

At x = 3: f = (1/3) x (K(2) + K(1) + K(1)) = 0.1793.

Real-life example

A traffic office wants a smooth picture of arrival times at a toll booth. A histogram with wide bins hides the rush hour peak. A KDE with a fair bandwidth shows the peak clearly.

Diagram: Probability density estimation

Same or opposite: histogram and kernel density estimate

PointHistogramKDESame or opposite
ShapeStepsSmooth curveOpposite
Depends on bin originYesNoOpposite
Needs a smoothing choiceBin widthBandwidthSame
Needs a fixed form of distributionNoNoSame

Exam tip. State the formula of each method, then work the histogram density from the counts. Mention bandwidth as the main choice. Draw one curve.

Back to the topic list

Q7. Statistical pattern recognition

From the syllabus · Unit 2

From the papers

  • “Unit 2: Statistical pattern recognition.” (Syllabus)

The short answer

Statistical pattern recognition assigns an object to a class from its measured features. The Bayes classifier picks the class with the highest posterior probability.

Write these points

Parts of the system

  1. Sensing: measure the features.
  2. Feature extraction: keep the useful measures.
  3. Classifier: apply a decision rule.
  4. Evaluation: error rate, confusion matrix.

Bayes decision rule

  • Choose the class c that maximises P(c | x), which is proportional to P(x | c) x P(c).
  • It gives the least possible error when the probabilities are right.
  • Naive Bayes assumes the features are independent within a class.
  • Decision boundary: the line where two posteriors are equal.

Spam or not for the word free.

Spam share 0.4 and ham 0.6. The word free appears in 80 percent of spam and 10 percent of ham.

P(spam | free) = (0.8 x 0.4) / (0.8 x 0.4 + 0.1 x 0.6) = 0.32 / 0.38 = 0.842.

Decision: spam.

Real-life example

A postal sorting machine reads a digit image. It measures the strokes, finds which digit makes those strokes most likely and sorts the letter. Each digit class competes by its posterior score.

Diagram: Statistical pattern recognition

Same or opposite: Bayes classifier and k-nearest neighbour

PointBayes classifierk-NNSame or opposite
Needs a probability modelYesNoOpposite
TrainingEstimate probabilitiesStore the dataOpposite
Decision byHighest posteriorVote of neighboursOpposite
Assigns a class to a new objectYesYesSame

Exam tip. Write the rule and the formula with priors. Work the spam number. Name the four parts of a recognition system.

Back to the topic list

Q8. Nonparametric regression

From the syllabus · Unit 2

From the papers

  • “Unit 2: Nonparametric regression.” (Syllabus)

The short answer

Nonparametric regression fits a curve to data without assuming a fixed formula. It estimates the value at a point from nearby data.

Write these points

Methods

  • Kernel regression (Nadaraya-Watson): a weighted average of y, with weights from a kernel that is large near the point.
  • k-nearest neighbour regression: the average of the k closest y values.
  • Local regression (LOESS): fit a small line around each point.
  • Splines: join pieces of polynomials smoothly.
  • The bandwidth or k sets the smoothness. Choose it by cross-validation.

Nadaraya-Watson on five points.

x = 1 2 3 4 5, y = 2 4 5 4 6. Gaussian kernel with h = 1.

At x = 2.5 the estimate is 4.13. At x = 3 the estimate is 4.40.

k-NN with k = 3 at x = 2.5: the nearest points are x = 2, 3 and 4 with y = 4, 5, 4. The average is 4.33.

Real-life example

A farmer plots the yield of wheat against rainfall over many seasons. The curve does not follow a straight line. A kernel smoother draws a smooth curve through the cloud without choosing a formula first.

Diagram: Nonparametric regression

Same or opposite: parametric and nonparametric regression

PointParametric (linear)NonparametricSame or opposite
Form of the curveFixedLearned from dataOpposite
Data neededLessMoreOpposite
Gives a prediction at a new xYesYesSame
RiskWrong formToo wiggly or too smoothOpposite

Exam tip. Name three methods with one line each. Work the k-NN number because it is short. State that the bandwidth is chosen by cross-validation.

Back to the topic list

Q9. Instances, features and types of features

From the syllabus · Unit 3

From the papers

  • “Unit 3: Data mining algorithms, instance and features, types of features.” (Syllabus)

The short answer

In data mining the data are instances (rows) described by features (columns, also called attributes). The type of each feature decides which method can be used.

Write these points

Types of features

TypeMeaningExampleAllowed operations
NominalNames onlyCity, colourEqual or not
OrdinalOrdered namesGrade A, B, COrder
IntervalEqual steps, no true zeroTemperature in CAdd, subtract
RatioTrue zeroMarks, incomeAll, including ratios
  • Discrete features take separate values. Continuous features take any value in a range.
  • A binary feature has two values.
  • An instance with a class label is used for supervised learning.
  • Data mining finds patterns in large data: classification, clustering, association and regression.

A student record.

Roll number 101, branch CSE, grade B, marks 68, hostel yes.

Branch is nominal. Grade is ordinal. Marks is ratio. Hostel is binary.

Real-life example

A bank keeps a table of customers. Each row is one customer and each column such as city, age or loan amount is a feature. The type of the column tells the bank which calculation makes sense. Averaging city names has no meaning.

Diagram: Instances, features and types of features

Same or opposite: nominal and ordinal features

PointNominalOrdinalSame or opposite
Has an orderNoYesOpposite
ExampleColourGradeOpposite
Values are categoriesYesYesSame
Mean is meaningfulNoNoSame

Exam tip. Draw the four type table with an example for each. Add one record and name the type of each field. This is the question where tables score best.

Back to the topic list

Q10. Concept learning and knowledge representation

From the syllabus · Unit 3

From the papers

  • “Unit 3: Concept learning and concept description, output of data mining, knowledge representation.” (Syllabus)

The short answer

Concept learning finds a general description of a class from examples. The output of data mining is a knowledge representation such as rules, trees, tables or clusters.

Write these points

Concept description

  • A concept is a set of instances, for example the class of customers who buy a laptop.
  • Characterisation summarises the common features of a class. Discrimination compares it with other classes.
  • Learning can search from specific to general, or from general to specific.

Knowledge representation (outputs)

  • Tables and decision tables: lookup of the result by feature values.
  • Decision trees: a tree of tests.
  • Rules: IF conditions THEN class.
  • Association rules: if items A occur, items B occur.
  • Clusters and instance based: groups, or the stored examples themselves.

A concept written as a rule.

Data: students who passed all subjects attended at least 75 percent classes and solved the practice sets.

Rule: IF attendance >= 75 AND practice sets done = yes THEN result = pass.

Real-life example

A college wants to know what kind of student gets a placement. A mining run returns rules such as IF CGPA above 7 and projects at least 2 THEN placed. The staff can read the rules and act on them.

Diagram: Concept learning and knowledge representation

Same or opposite: decision tree and rule set

PointDecision treeRule setSame or opposite
ShapeTreeList of IF THEN rulesOpposite
Rules overlapNoPossibleOpposite
Readable by peopleYesYesSame
One tree gives all the rulesYesYesSame

Exam tip. Name four kinds of knowledge output with one line each. Give one rule example. Explain concept as a set of instances.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

Computational Statistics (CD-802-C) FAQs

What are the most important topics in Computational Statistics?

No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Probability and sampling concepts; Generating random variables; Exploratory data analysis; Monte Carlo methods and the bootstrap; Data partitioning and cross-validation.

How were these Computational Statistics 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 Computational Statistics important questions with answers?

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

The 10 topics of Computational Statistics (CD-802-C) for RGPV B.Tech CSE-DS semester 8, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.