DS Sol
DS Sol
ANS)
Q-8) Define with example Nominal Scale, Ordinal Scale and Interval
Scale.
ANS)
Nominal Scale: A nominal scale assigns categories or labels to data without
implying any inherent order or magnitude. It is used to identify unique
categories or groups.
Example: Gender (Male/Female), Political preference
(Independent/Democrat/Republican), or Residential area (Suburbs/City/Town)
Ordinal Scale: An ordinal scale assigns categories or labels to data with a
natural order or ranking. It implies that the differences between categories are
meaningful, but not necessarily equal.
Example: Customer satisfaction survey ratings (Poor, Fair, Good, Excellent),
Ranking of favorite sports teams (1st to 5th place), or Job titles (Entry-level,
Mid-level, Senior-level)
Interval Scale: An interval scale has all the properties of an ordinal scale, plus
equal intervals between categories. It allows for meaningful differences
between categories and calculations such as mean and standard deviation.
Example: Temperature in Celsius (0°C to 100°C), Time (hours, minutes,
seconds), or IQ scores (with a true zero point)
Q-13) What is the need of Skewness and Kurtosis . Explain its types
with example
ANS)
Skewness and Kurtosis are two important statistical measures that help
describe the shape of a probability distribution. They are essential in
understanding the characteristics of a dataset, enabling more accurate data
analysis and decision-making.
Skewness:
Skewness measures the degree of asymmetry of a distribution. It indicates
whether the data is:
1. Symmetric (zero skewness): The distribution looks the same to the left
and right of the center point.
2. Right-skewed (positive skewness): The tail extends to the right, with
more data points above the mean.
3. Left-skewed (negative skewness): The tail extends to the left, with more
data points below the mean.
Example:
Income distribution: Typically positively skewed, with a long tail of high-
income earners.
Stock returns: Often positively skewed, with occasional extreme gains.
Kurtosis:
Kurtosis measures the degree of peakedness (leptokurtic) or flatness
(platykurtic) of a distribution compared to a normal distribution. It indicates:
1. Leptokurtic (positive kurtosis): A distribution with heavier tails and a
more pronounced peak than a normal distribution.
2. Platykurtic (negative kurtosis): A distribution with lighter tails and a
flatter peak than a normal distribution.
3. Mesokurtic (zero kurtosis): A distribution with tails and a peak similar to
a normal distribution.
Example:
IQ scores: Often leptokurtic, with a sharp peak and more extreme
values.
Height and weight distributions: Typically platykurtic, with shorter tails
and a flatter peak.
Q-14) Below is the dataset of Pizza Price in given cities .Find Mean
and Median of both the cities
ANS)
New Delhi Pizza Prices:
1$, 2$, 3$, 3$, 4$, 5$, 6$, 7$, 9$, 11$, 66$
Lucknow Pizza Prices:
1$, 2$, 3$, 4$, 5$, 6$, 7$, 8$, 9$, 10$
Let me now calculate the mean and median for both cities.
Mean and Median of Pizza Prices:
New Delhi:
o Mean: 10.64$
o Median: 5.00$
Lucknow:
o Mean: 5.50$
o Median: 5.00$