Advanced Statistics for Data Science (CD-702-D) Important Questions
By the Paperwala team · · Exam on Fri 18 Dec
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.
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.
Difference between independent and dependent events
Point
Independent
Dependent
Same or opposite
P(A given B)
Equals P(A)
Differs from P(A)
Opposite
Follow probability rules
Yes
Yes
Same
P(A and B)
P(A) P(B)
P(A) P(B given A)
Opposite
Example
Two coin tosses
Two cards without replacement
Opposite
Used in Bayes theorem
Yes
Yes
Same
Exam tip. Write the addition, multiplication and conditional rules. State Bayes theorem with its parts. Work the screening example.
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
Difference between law of large numbers and central limit theorem
Point
LLN
CLT
Same or opposite
Says
Average approaches the true mean
Average is close to normal
Opposite
About sample means
Yes
Yes
Same
Gives a distribution
No
Yes
Opposite
Gives a standard error
No
Yes, sigma / sqrt(n)
Opposite
Needs large samples
Yes
Yes
Same
Exam tip. State both laws. Give the standard error formula. Work one CLT probability and quote the coin simulation.
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.
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.
Difference between mean and median
Point
Mean
Median
Same or opposite
Uses every value
Yes
Only order
Opposite
Measure of centre
Yes
Yes
Same
Affected by outliers
Strongly
Little
Opposite
Best for
Symmetric data
Skewed data
Opposite
Can be computed for ratio data
Yes
Yes
Same
Exam tip. Give formulas for three measures of each kind. Work all of them on one small data set. Say what the skewness shows.
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
Draw a sample of size n from the data with replacement.
Compute the statistic.
Repeat many times, such as 2,000.
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.
Difference between stratified and cluster sampling
Point
Stratified
Cluster
Same or opposite
Groups
Inside each group alike
Each group a mini population
Opposite
Uses groups
Yes
Yes
Same
Sample from
Every stratum
Some clusters only
Opposite
Main benefit
Precision
Lower cost
Opposite
Probability sampling
Yes
Yes
Same
Exam tip. Explain four probability methods with formulas. Write the bootstrap steps. Work an allocation and a bootstrap SE.
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.
Difference between 95 and 99 percent intervals
Point
95 percent
99 percent
Same or opposite
z value
1.96
2.576
Opposite
Centred on the sample mean
Yes
Yes
Same
Width
Narrower
Wider
Opposite
Confidence
Lower
Higher
Opposite
Uses the standard error
Yes
Yes
Same
Exam tip. Write the formula and the z values. State the correct meaning. Work the 95 and 99 percent intervals.
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
State H0 and H1.
Choose the significance level alpha, often 0.05.
Pick the test and compute the test statistic.
Find the p-value or the critical value.
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.
Difference between Type I and Type II error
Point
Type I
Type II
Same or opposite
What happens
Reject a true H0
Keep a false H0
Opposite
A wrong decision
Yes
Yes
Same
Chance
alpha
beta
Opposite
Reduced by
Smaller alpha
Larger sample
Opposite
Linked to power
Indirectly
Power = 1 - beta
Opposite
Exam tip. Write the five steps. Define both errors and power. Work one z test with the p-value and conclusion.
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.
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?
Difference between z test and t test
Point
z test
t test
Same or opposite
Sample size
Large
Small
Opposite
Tests means
Yes
Yes
Same
Distribution
Standard normal
t with n - 1 df
Opposite
Needs sigma
Known or large n
Uses s
Opposite
Gives a p-value
Yes
Yes
Same
Exam tip. Give the use and formula of each test. List assumptions. Work a t test and a chi-square test.
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
Difference between Pearson and Spearman
Point
Pearson
Spearman
Same or opposite
Uses
Actual values
Ranks
Opposite
Range -1 to +1
Yes
Yes
Same
Detects
Linear relation
Monotonic relation
Opposite
Outliers
Sensitive
Little affected
Opposite
Measures association
Yes
Yes
Same
Exam tip. Give formulas for all three. Add when to use each and two cautions. Work all three on one data set.
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.
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
Difference between simple and multiple regression
Point
Simple
Multiple
Same or opposite
Predictors
One
Two or more
Opposite
Fitted by least squares
Yes
Yes
Same
Shape
Line
Plane or hyperplane
Opposite
Multicollinearity issue
No
Possible
Opposite
Gives R-squared
Yes
Yes
Same
Exam tip. Write both models. Explain least squares and R-squared. List the assumptions and give one fitted equation.
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.
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.
Difference between one-way and two-way ANOVA
Point
One-way
Two-way
Same or opposite
Factors
One
Two
Opposite
Compares group means
Yes
Yes
Same
Tests interaction
No
Yes
Opposite
Uses the F statistic
Yes
Yes
Same
Example
Three methods
Methods and schools
Opposite
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.
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.