CD-702-D Advanced Statistics for Data Science

Advanced Statistics for Data Science (CD-702-D) Important Questions

These are the 10 Advanced Statistics for Data Science (CD-702-D) topics we chose from the RGPV syllabus for RGPV B.Tech CSE-DS 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 Advanced Statistics for Data Science 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.

Advanced Statistics for Data Science 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. Probability, conditional probability and Bayes theorem

Short answer. Probability measures the chance of an event, from 0 to 1. Conditional probability P(A | B) is the chance of A once B is known, which Bayes theorem finds from P(B | A).

From the syllabus · Unit 1

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Probability, conditional probability and Bayes theorem.” (Syllabus)

Write these points

Rules

  • Addition: P(A or B) = P(A) + P(B) - P(A and B).
  • Multiplication: P(A and B) = P(A) P(B | A). For independent events, P(A) P(B).
  • Conditional: P(A | B) = P(A and B) / P(B).

Bayes theorem

  • P(A | B) = P(B | A) P(A) / P(B).
  • P(B) = P(B | A) P(A) + P(B | not A) P(not A).
  • Prior P(A) is updated by evidence B into the posterior P(A | B).

Uses in data science

  • Spam filters (naive Bayes), medical tests, fraud alerts, A/B tests with prior knowledge.

A screening test (from calc.py).

1 percent have the disease. The test catches 95 percent of cases. 5 percent of healthy people test positive.

P(positive) = 0.01 x 0.95 + 0.99 x 0.05 = 0.059.

P(disease | positive) = 0.0095 / 0.059 = 0.161. Only about 1 in 6 positives has the disease.

Real-life example

A spam filter sees the word lottery in an email. Lottery appears in many spam mails and few real ones. Bayes theorem combines that with how common spam is to give a chance that this mail is spam. The filter moves it if the chance is high.

Diagram: Probability, conditional probability and Bayes theorem

Difference between independent and dependent events

PointIndependentDependentSame or opposite
P(A given B)Equals P(A)Differs from P(A)Opposite
Follow probability rulesYesYesSame
P(A and B)P(A) P(B)P(A) P(B given A)Opposite
ExampleTwo coin tossesTwo cards without replacementOpposite
Used in Bayes theoremYesYesSame

Exam tip. Write the addition, multiplication and conditional rules. State Bayes theorem with its parts. Work the screening example.

Back to the topic list

Q2. Central limit theorem and law of large numbers

Short answer. The law of large numbers (LLN) says a sample average gets closer to the true mean as the sample grows. The central limit theorem (CLT) says the sample mean is close to normal for large n, with standard error sigma / sqrt(n), whatever the population's shape.

From the syllabus · Unit 1

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Central limit theorem and law of large numbers.” (Syllabus)

Write these points

Law of large numbers

  • The share of heads in many fair tosses settles near 0.5.
  • It justifies using sample averages to estimate population means.

Central limit theorem

  • Sample mean is close to N(mu, sigma^2 / n) for large n.
  • A common rule: n of 30 or more.
  • Works for skewed populations too, though more skew needs larger n.

Why they matter

  • Confidence intervals and z tests rest on the CLT.
  • Bigger samples give smaller standard errors, so tighter estimates.
  • A/B tests compare means or proportions using the CLT.

Both laws with numbers (from calc.py).

Population mean 50, sd 12. Samples of 36: SE = 12 / 6 = 2.

P(sample mean > 52) = P(Z > 1) = 0.1587.

Simulated coin, share of heads after 10, 100, 1,000, 10,000 tosses: 0.4, 0.52, 0.509, 0.494.

Real-life example

One cricket match tells little about a batsman, because one score can be 0 or 120. His average over 100 innings is steady and fair. That steadiness is the law of large numbers. The bell shape of such averages is the central limit theorem.

How the CLT is used
How the CLT is used

Difference between law of large numbers and central limit theorem

PointLLNCLTSame or opposite
SaysAverage approaches the true meanAverage is close to normalOpposite
About sample meansYesYesSame
Gives a distributionNoYesOpposite
Gives a standard errorNoYes, sigma / sqrt(n)Opposite
Needs large samplesYesYesSame

Exam tip. State both laws. Give the standard error formula. Work one CLT probability and quote the coin simulation.

Back to the topic list

Q3. Descriptive statistics: centre, spread, skewness and kurtosis

Short answer. Descriptive statistics summarise data with measures of central tendency (mean, median, mode), dispersion (range, variance, standard deviation, IQR) and shape (skewness and kurtosis).

From the syllabus · Unit 2

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Descriptive statistics: centre, spread, skewness and kurtosis.” (Syllabus)

Write these points

Central tendency

  • Mean: sum / n. Pulled by extreme values.
  • Median: middle value. Outliers barely move it.
  • Mode: most frequent value.

Dispersion

  • Range: max - min.
  • Variance and SD: average squared distance from the mean, using n - 1 for a sample.
  • IQR: Q3 - Q1. Coefficient of variation: SD / mean x 100.

Shape

  • Skewness: positive when the right tail is longer. Pearson's measure = 3(mean - median) / SD.
  • Kurtosis: heaviness of tails. Excess kurtosis 0 for the normal.

Nine values: 12 15 15 18 20 22 25 30 45 (from calc.py).

Mean 22.44, median 20, mode 15. Range 33, SD 10.11, CV 45.1 percent.

Pearson skewness = 3 x (22.44 - 20) / 10.11 = 0.73. Moment skewness 1.26: right-skewed.

Excess kurtosis 0.77: slightly heavier tails than normal.

Real-life example

A news report says the average salary in a town is Rs 45,000, yet most people earn about Rs 25,000. A few factory owners pull the mean up. The median tells the real story. The skewness shows why.

Diagram: Descriptive statistics: centre, spread, skewness and kurtosis

Difference between mean and median

PointMeanMedianSame or opposite
Uses every valueYesOnly orderOpposite
Measure of centreYesYesSame
Affected by outliersStronglyLittleOpposite
Best forSymmetric dataSkewed dataOpposite
Can be computed for ratio dataYesYesSame

Exam tip. Give formulas for three measures of each kind. Work all of them on one small data set. Say what the skewness shows.

Back to the topic list

Q4. Sampling techniques and the bootstrap

Short answer. Sampling picks a part of a population to study. Probability sampling (simple random, stratified, systematic, cluster) gives every unit a known chance, while the bootstrap resamples one sample to estimate uncertainty.

From the syllabus · Unit 2

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Sampling techniques and the bootstrap.” (Syllabus)

Write these points

Methods

  • Simple random: every unit equal chance.
  • Stratified: split into groups (strata), sample each. Proportional allocation n_h = n N_h / N.
  • Systematic: every k-th unit, k = N / n, from a random start.
  • Cluster: pick whole groups at random, such as cities.
  • Non-probability: convenience, quota. Cheap but biased.

Bootstrap

  1. Draw a sample of size n from the data with replacement.
  2. Compute the statistic.
  3. Repeat many times, such as 2,000.
  4. The spread of the results gives the standard error and an interval.

Allocation and a bootstrap (from calc.py).

1,000 customers: 600 urban, 300 small town, 100 rural. n = 50 gives 30, 15 and 5. Systematic k = 20.

Sample 4 7 5 9 6 8 5 6: mean 6.25. Formula SE 0.59. Bootstrap SE (2,000 resamples) 0.553.

Bootstrap 95 percent interval 5.25 to 7.38.

Real-life example

A cook checks a big pot of dal by tasting one spoon after stirring. Stirring makes the spoon fair, like random sampling. Tasting separately from the top and bottom of an unstirred pot is like stratified sampling.

Diagram: Sampling techniques and the bootstrap

Difference between stratified and cluster sampling

PointStratifiedClusterSame or opposite
GroupsInside each group alikeEach group a mini populationOpposite
Uses groupsYesYesSame
Sample fromEvery stratumSome clusters onlyOpposite
Main benefitPrecisionLower costOpposite
Probability samplingYesYesSame

Exam tip. Explain four probability methods with formulas. Write the bootstrap steps. Work an allocation and a bootstrap SE.

Back to the topic list

Q5. Confidence interval for a mean

Short answer. A confidence interval gives a range that would contain the true parameter in a set share of repeated samples. For a mean with large n, the 95 percent interval is x-bar +/- 1.96 x s / sqrt(n).

From the syllabus · Unit 2

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Confidence interval for a mean.” (Syllabus)

Write these points

Formula

  • Large sample or known sigma: x-bar +/- z x SE, SE = s / sqrt(n).
  • z = 1.645 for 90 percent, 1.96 for 95 percent, 2.576 for 99 percent.
  • Small sample with unknown sigma: use t with n - 1 degrees of freedom.

Meaning

  • 95 percent of intervals built this way contain the true mean.
  • It does not say the true mean has a 95 percent chance of being in this one interval.
  • Higher confidence gives a wider interval. Larger n gives a narrower one.

400 orders, mean 3.2 days, sd 1.5 days (from calc.py).

SE = 1.5 / sqrt(400) = 0.075.

95 percent: 3.2 +/- 1.96 x 0.075 = 3.053 to 3.347 days.

99 percent: 3.2 +/- 2.576 x 0.075 = 3.007 to 3.393 days. Both lie above 3 days.

Real-life example

An election survey says a party will get 42 percent of votes, plus or minus 3 percent. That plus or minus is a confidence interval. Pollsters do not claim an exact number. They give a range built from the sample size and spread.

Diagram: Confidence interval for a mean

Difference between 95 and 99 percent intervals

Point95 percent99 percentSame or opposite
z value1.962.576Opposite
Centred on the sample meanYesYesSame
WidthNarrowerWiderOpposite
ConfidenceLowerHigherOpposite
Uses the standard errorYesYesSame

Exam tip. Write the formula and the z values. State the correct meaning. Work the 95 and 99 percent intervals.

Back to the topic list

Q6. Hypothesis testing: hypotheses, p-value and errors

Short answer. Hypothesis testing checks a claim about a population using a sample. H0 is the claim of no effect and H1 is what we suspect, while the p-value shows how surprising the data would be if H0 were true.

From the syllabus · Unit 3

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Hypothesis testing: hypotheses, p-value and errors.” (Syllabus)

Write these points

Steps

  1. State H0 and H1.
  2. Choose the significance level alpha, often 0.05.
  3. Pick the test and compute the test statistic.
  4. Find the p-value or the critical value.
  5. Reject H0 if p < alpha. State the result in plain words.

Errors

  • Type I error: reject a true H0. Its chance is alpha.
  • Type II error: keep a false H0. Its chance is beta.
  • Power = 1 - beta. It grows with sample size and effect size.

One and two tailed

  • Two tailed: H1 says different. One tailed: H1 says greater or less.

Is mean delivery time 3 days? (from calc.py).

H0: mu = 3. H1: mu not 3. n = 400, x-bar = 3.2, s = 1.5, SE = 0.075.

z = (3.2 - 3.0) / 0.075 = 2.667. Two tailed p = 0.0077.

p < 0.05, so reject H0. Delivery takes longer than 3 days on average.

Real-life example

A court starts by assuming the accused is innocent, which is H0. Only strong evidence leads to a guilty verdict. Convicting an innocent person is a Type I error. Freeing a guilty one is a Type II error.

Diagram: Hypothesis testing: hypotheses, p-value and errors

Difference between Type I and Type II error

PointType IType IISame or opposite
What happensReject a true H0Keep a false H0Opposite
A wrong decisionYesYesSame
ChancealphabetaOpposite
Reduced bySmaller alphaLarger sampleOpposite
Linked to powerIndirectlyPower = 1 - betaOpposite

Exam tip. Write the five steps. Define both errors and power. Work one z test with the p-value and conclusion.

Back to the topic list

Q7. z test, t test, chi-square test and F test

Short answer. The main significance tests are the z test for large samples and the t test for small ones. The chi-square test handles counts, while the F test compares variances and drives ANOVA.

From the syllabus · Unit 3

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: z test, t test, chi-square test and F test.” (Syllabus)

Write these points

When to use each

  • z test: n large or sigma known. z = (x-bar - mu) / (sigma / sqrt(n)).
  • t test: small n, sigma unknown. One sample, two independent samples or paired.
  • Chi-square: goodness of fit or independence in a contingency table. Sum of (O - E)^2 / E.
  • F test: ratio of two sample variances. Also the base of ANOVA.

Assumptions

  • Random samples. Normal data for small-sample t and F tests.
  • Chi-square: expected count of at least 5 in each cell.

Three tests (from calc.py, run with scipy).

t test: group A 72 75 70 78 74 (mean 73.8), group B 68 70 65 72 69 (mean 68.8). t = 2.804, p = 0.0231.

Chi-square: table 30 20 / 20 30, expected 25 each. chi-square = 4.0, p = 0.0455.

F = 9.2 / 6.7 = 1.373. Variances not significantly different for these small groups.

Real-life example

A school tries a new teaching method in one class and the old one in another, with five test scores each. With so few scores, the t test is used. To check whether pass or fail depends on the method, the counts go into a chi-square test.

Which test?
Which test?

Difference between z test and t test

Pointz testt testSame or opposite
Sample sizeLargeSmallOpposite
Tests meansYesYesSame
DistributionStandard normalt with n - 1 dfOpposite
Needs sigmaKnown or large nUses sOpposite
Gives a p-valueYesYesSame

Exam tip. Give the use and formula of each test. List assumptions. Work a t test and a chi-square test.

Back to the topic list

Q8. Correlation: Pearson, Spearman and Kendall

Short answer. Correlation measures how strongly two variables move together, from -1 to +1. Pearson's r measures linear relation in numeric data, while Spearman's rho and Kendall's tau use ranks and suit monotonic or ordinal data.

From the syllabus · Unit 4

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Correlation: Pearson, Spearman and Kendall.” (Syllabus)

Write these points

Pearson

  • r = Sxy / sqrt(Sxx Syy).
  • Assumes a linear link. Sensitive to outliers.

Spearman

  • Pearson r computed on ranks. Without ties: rho = 1 - 6 sum d^2 / (n(n^2 - 1)).
  • Catches any steadily rising or falling relation.

Kendall

  • tau = (concordant - discordant pairs) / total pairs.
  • Works well with small samples and many ties.

Cautions

  • Correlation is not causation. A third variable may drive both.
  • r near 0 does not rule out a curved relation.

x 1 to 6, y 2 4 5 4 8 12 (from calc.py).

Pearson r = 0.905. Spearman rho = 0.899. Kendall tau = 0.828.

All three show a strong positive relation. Kendall is lower because it counts pairs, not distances.

Real-life example

Ice cream sales and drowning cases both rise in summer. They are correlated, yet ice cream does not cause drowning. Hot weather drives both. Data scientists check for such hidden causes before acting on a correlation.

Picking a correlation
Picking a correlation

Difference between Pearson and Spearman

PointPearsonSpearmanSame or opposite
UsesActual valuesRanksOpposite
Range -1 to +1YesYesSame
DetectsLinear relationMonotonic relationOpposite
OutliersSensitiveLittle affectedOpposite
Measures associationYesYesSame

Exam tip. Give formulas for all three. Add when to use each and two cautions. Work all three on one data set.

Back to the topic list

Q9. Simple and multiple linear regression

Short answer. Linear regression models a response y as a straight-line function of one predictor (simple) or several (multiple). Coefficients come from least squares while R-squared gives the share of variation explained.

From the syllabus · Unit 4

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Simple and multiple linear regression.” (Syllabus)

Write these points

Models

  • Simple: y = a + b x + error.
  • Multiple: y = b0 + b1 x1 + b2 x2 + ... + error.

Least squares

  • Choose coefficients that minimise the sum of squared residuals.
  • Simple case: b = Sxy / Sxx, a = y-bar - b x-bar.

Fit and checks

  • R-squared = 1 - SSE / SST. Adjusted R-squared penalises extra predictors.
  • Assumptions: linear link, independent errors, constant variance, normal errors.
  • Watch for multicollinearity: predictors highly correlated with each other.

A multiple regression (from calc.py, numpy least squares).

Data (x1, x2, y): (1, 2, 6), (2, 1, 7), (3, 4, 13), (4, 3, 13), (5, 5, 17).

Fitted y = 2.033 + 1.778 x1 + 1.278 x2.

Each extra unit of x1 adds 1.778 to y with x2 held fixed.

Real-life example

A used car website predicts price from age, kilometres driven and engine size. Each coefficient shows how much one factor moves the price with the others fixed. R-squared tells the team how much of the price difference the model explains.

Building a regression
Building a regression

Difference between simple and multiple regression

PointSimpleMultipleSame or opposite
PredictorsOneTwo or moreOpposite
Fitted by least squaresYesYesSame
ShapeLinePlane or hyperplaneOpposite
Multicollinearity issueNoPossibleOpposite
Gives R-squaredYesYesSame

Exam tip. Write both models. Explain least squares and R-squared. List the assumptions and give one fitted equation.

Back to the topic list

Q10. Analysis of variance: one-way and two-way

Short answer. Analysis of variance (ANOVA) tests whether three or more group means are equal by comparing variation between groups with variation within groups. One-way ANOVA has one factor, while two-way ANOVA has two factors and their interaction.

From the syllabus · Unit 4

From the papers

  • “Syllabus not seen. Standard topic of Advanced Statistics for Data Science: Analysis of variance: one-way and two-way.” (Syllabus)

Write these points

One-way ANOVA

  • H0: all group means equal. H1: at least one differs.
  • SST = SSB (between) + SSW (within).
  • MSB = SSB / (k - 1), MSW = SSW / (N - k). F = MSB / MSW.
  • Large F, small p: reject H0.

Two-way ANOVA

  • Two factors, such as teaching method and school.
  • Tests each factor and their interaction.

Assumptions

  • Independent samples, normal data in each group, equal variances.
  • After a significant F, a post-hoc test (such as Tukey) finds which groups differ.

Three teaching methods, four students each (from calc.py, run with scipy).

Scores: 20 22 19 21 (mean 20.5), 25 27 26 24 (25.5), 22 23 21 22 (22.0).

SSB = 52.667, SSW = 12.0. MSB = 26.333, MSW = 1.333.

F = 19.75, p = 0.0005. The methods do not give the same mean score.

Real-life example

A fertiliser company tests three products on wheat plots. Yields vary from plot to plot anyway. ANOVA asks whether the gap between products is larger than that natural plot-to-plot gap. Only then does it claim one product is better.

Diagram: Analysis of variance: one-way and two-way

Difference between one-way and two-way ANOVA

PointOne-wayTwo-waySame or opposite
FactorsOneTwoOpposite
Compares group meansYesYesSame
Tests interactionNoYesOpposite
Uses the F statisticYesYesSame
ExampleThree methodsMethods and schoolsOpposite

Exam tip. Write the hypotheses and the sums of squares split. Fill the ANOVA table for a small example. Add the assumptions and two-way ANOVA.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

Advanced Statistics for Data Science (CD-702-D) FAQs

What are the most important topics in Advanced Statistics for Data Science?

No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Probability, conditional probability and Bayes theorem; Central limit theorem and law of large numbers; Descriptive statistics: centre, spread, skewness and kurtosis; Sampling techniques and the bootstrap; Confidence interval for a mean.

How were these Advanced Statistics for Data Science 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 Advanced Statistics for Data Science important questions with answers?

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

The 10 topics of Advanced Statistics for Data Science (CD-702-D) for RGPV B.Tech CSE-DS semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.