0% found this document useful (0 votes)
30 views

Assignment

Uploaded by

Roshini Tv
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Assignment

Uploaded by

Roshini Tv
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Activity Data Type

Number of beatings from Wife Discrete


Results of rolling a dice Ordinal
Weight of a person Ratio
Weight of Gold Ratio
Distance between two places Ratio
Length of a leaf Ratio
Dog's weight Ratio
Blue Color Nominal
Number of kids Discrete
Number of tickets in Indian railways Ordinal
Number of times married Discrete
Gender (Male or Female) Nominal
Q1) Identify the Data type for the Following:

Q2) Identify the Data types, which were among the following
Nominal, Ordinal, Interval, Ratio.
Data Data Type
Gender Nominal
High School Class Ranking Ordinal
Celsius Temperature Interval
Weight Ratio
Hair Color Nominal
Socioeconomic Status Ordinal
Fahrenheit Temperature Interval
Height Ratio
Type of living accommodation Ordinal
Level of Agreement Ordinal
IQ(Intelligence Scale) Ratio
Sales Figures Interval
Blood Group Nominal
Time Of Day Ratio
Time on a Clock with Hands Ratio
Number of Children Ordinal
Religious Preference Nominal
Barometer Pressure Ratio
SAT Scores Ratio
Years of Education Interval

Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
When three coins are tossed the total numbers of possible combinations are
2³ = 8.
These combinations are HHT,HHH,THH HTH,TTH,TTT,HTT,THT.
The Number of Combinations which have two heads and one tail are,
HHT,THH,HTH .
three time obtained the probability of getting two heads and one tails in the toss of
three coins simultaneously is defined as
3/8 = 0.375

Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1 → 0
b) Less than or equal to 4 → 1/6
c) Sum is divisible by 2 and 3 → 1/6

Q5) A bag contains 2 red, 3 green and 2 blue balls. Two balls are drawn at
random. What is the probability that none of the balls drawn is blue?

→10/12

Q6) Calculate the Expected number of candies for a randomly selected child
Below are the probabilities of count of candies for children (ignoring the nature of
the child-Generalized view)
CHILD Candies count Probability
A 1 0.015
B 4 0.20
C 3 0.65
D 5 0.005
E 6 0.01
F 2 0.120
Child A – probability of having 1 candy = 0.015.
Child B – probability of having 4 candies = 0.20
→1*0.015+4*0.20+3*0.65+5*0.005+6*0.01+2*0.12
0.015+0.8+1.95+0.025+0.06+0.24
3.090
Expected number of candies for a randomly selected child = 3.090

Q7) Calculate Mean, Median, Mode, Variance, Standard Deviation, Range &
comment about the values / draw inferences, for the given dataset
- For Points,Score,Weigh>
Find Mean, Median, Mode, Variance, Standard Deviation, and Range
and also Comment about the values/ Draw some inferences.
Points Score Weigh
Mean 3.596563 3.217250 17.84875

Median 3.695 3.325 17.710


Mode 3.92 3.07to 3.44 17.02to18.90
Variance 0.283881 0.957379 3.193166
Standard 0.534679 0.978457 1.786943
Deviation
Range 2.17 3.911 8.39999

Q8) Calculate Expected Value for the problem below


a) The weights (X) of patients at a clinic (in pounds), are
108, 110, 123, 134, 135, 145, 167, 187, 199
Assume one of the patients is chosen at random. What is the Expected
Value of the Weight of that patient?
→ 145.333 the Expected Value of the Weight of that patient

Q9) Calculate Skewness, Kurtosis & draw inferences on the following data
Cars speed and distance
Cars speed distance

Skewness -0.117510 0.806895

Kurtosis -0.508994 0.405053

SP and Weight(WT)
SP Weight

Skewness 1.611450 -0.614753

Kurtosis 2.977329 0.950291

Q10) Draw inferences about the following boxplot & histogram


Q11) Suppose we want to estimate the average weight of an adult male in
Mexico. We draw a random sample of 2,000 men from a population of
3,000,000 men and weigh them. We find that the average person in our
sample weighs 200 pounds, and the standard deviation of the sample is 30
pounds. Calculate 94%,98%,96% confidence interval?

Confidence Interval Z value Range

94% 1.8808 198.738 – 201.262

98% 2.3263 198.439 – 201.561

96% 2.0537 198.622 – 201.378

Q12) Below are the scores obtained by a student in tests

34,36,36,38,38,39,39,40,40,41,41,41,41,42,42,45,49,56
1) Find mean, median, variance, standard deviation.
Mean 41.0
Median 40.5

Variance 25.529411764705884

Standard Deviation 5.05266382


2) What can we say about the student marks?

→ No. of student marks between 38 to 42 is positive no. of marks in left side of


plot.
Q13) What is the nature of skewness when mean, median of data are equal?
→ Data is normalized and there No skewness
Q14) What is the nature of skewness when mean > median ?
→ Negative Skewness implies mass of the Distribution concentrated on right side
Q15) What is the nature of skewness when median > mean?
→ Positive Skewness implies mass of the Distribution concentrated on left side
Q16) What does positive kurtosis value indicates for a data ?
→Positive Kurtosis values indicates that thinner peak and wider tails
Q17) What does negative kurtosis value indicates for a data?
→ Negative Kurtosis values indicates that wider peak and thinner tails
Q18) Answer the below questions using the below boxplot visualization.

What can we say about the distribution of the data?


→ Not Normally distributed
What is nature of skewness of the data?
→ Negative Skewness
What will be the IQR of the data (approximately)?

→ approximately IQR O 10 -18 of the data

Q19) Comment on the below Boxplot visualizations?


Draw an Inference from the distribution of data for Boxplot 1 with respect
Boxplot 2.
Q 20) Calculate probability from the given dataset for the below cases

Data _set: Cars.csv


Calculate the probability of MPG of Cars for the below cases.
MPG <- Cars$MPG
a. P(MPG>38) → 0.3475939251582705
b. P(MPG<40) → 0.72934987621516
c. P (20<MPG<50) → 0.0131164696105

Q 21) Check whether the data follows normal distribution

a) Check whether the MPG of Cars follows Normal Distribution


Dataset: Cars.csv
From above plot and values we can say that data is fairly symmetrical, i.e
fairly normally distributed.

b) Check Whether the Adipose Tissue (AT) and Waist


Circumference(Waist) from wc-at data set follows Normal Distribution
Dataset: wc-at.csv

From above plot and values we can say that data is fairly symmetrical, i.e
fairly normally distributed.

Q 22) Calculate the Z scores of 90% confidence interval,94% confidence


interval, 60% confidence interval
confidence interval Z scores
90% 1.645
94% 1.8807
60% 0.841621

Q 23) Calculate the t scores of 95% confidence interval, 96% confidence interval,
99% confidence interval for sample size of 25
confidence interval t scores
95% 2.060
96% 2.1715

99% 2.788

Q 24) A Government company claims that an average light bulb lasts 270
days. A researcher randomly selects 18 bulbs for testing. The sampled bulbs
last an average of 260 days, with a standard deviation of 90 days. If the
CEO's claim were true, what is the probability that 18 randomly selected
bulbs would have an average life of no more than 260 day s

T = (S. Mean - P.mean)/(s- sd/√n)

T= (260 - 270)/(90/ √18 )

T= -0.47

P_value= 1-states.t.cdf(abs(-0.4714),df=18-1)

P_value=0.3216741

P_value= states.t.cdf(abs(-0.4714),df=18-1)

P_value=0.3216741

You might also like