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

Assignment Excelr

The document contains questions related to identifying data types, calculating probabilities from experiments and datasets, and descriptive statistics such as mean, median, variance, standard deviation, skewness, kurtosis, and confidence intervals. Examples include identifying nominal vs. interval variables, probabilities of dice rolls and coin tosses, descriptive statistics of student test scores and car mileage data, and confidence intervals based on sample means.

Uploaded by

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

Assignment Excelr

The document contains questions related to identifying data types, calculating probabilities from experiments and datasets, and descriptive statistics such as mean, median, variance, standard deviation, skewness, kurtosis, and confidence intervals. Examples include identifying nominal vs. interval variables, probabilities of dice rolls and coin tosses, descriptive statistics of student test scores and car mileage data, and confidence intervals based on sample means.

Uploaded by

Poorvi Gadagi
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Activity Data Type

Number of beatings from Wife int


Results of rolling a dice int
Weight of a person float
Weight of Gold float
Distance between two places float
Length of a leaf float
Dog's weight float
Blue Color char
Number of kids int
Number of tickets in Indian railways int
Number of times married int
Gender (Male or Female) char
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 nominal
Level of Agreement ordinal
IQ(Intelligence Scale) interval
Sales Figures ratio
Blood Group nominal
Time Of Day ordinal
Time on a Clock with Hands interval
Number of Children ratio
Religious Preference nominal
Barometer Pressure ratio
SAT Scores ratio
Years of Education ratio

Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?
Solution: The possible outcomes are
HHH,HHT,HTH,HTT,THH,THT,TTH,TTT=8
The ones with two heads are one tail are HHT,HTH,THH=3
Therefore, the probability is 3/8.

Q4) Two Dice are rolled, find the probability that sum is
a) Equal to 1
b) Less than or equal to 4
c) Sum is divisible by 2 and 3
Solution: The possible outcomes are (1,1),(1,2),(1,3),(1,4),(1,5),(1,6)
(2,1),(2,2),(2,3),(2,4),(2,5),(2,6),(3,1),(3,2),(3,3),(3,4),(3,5),(3,6), (4,1),(4,2),
(4,3),(4,4),(4,5),(4,6), (5,1),(5,2),(5,3),(5,4),(5,5),(5,6), (6,1),(6,2),(6,3),(6,4),
(6,5),(6,6)=36
a)There is no probability where the sum is equal to 0,Therefore,the
probability is 0.
b)The probabilities are(1,1),(1,2),(1,3),(2,1),(2,2),(3,1)=6. Therefore, the
probability is 6/36=1/6.
c) The probabilities are (1,5),(2,4),(3,3),(4,2),(5,1),(6,6)=6. Therefore, the
probability is 6/36=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?
Solution: Total no. of balls in the bag are 2+3+2=7
Two balls can be drawn in 7C2 ways=21 ways.
No. of ways of drawing 2 balls such that none is blue=No. of ways of drawing 2
balls from 2 red and 3 green balls=5C2 ways=10 ways. Therefore, probability of
drawing 2 balls such that none is blue = 10/21.

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
Solution: The expected number of candies for a randomly selected child are
(1*0.015)+(4*0.20)+(3*0.65)+(5*0.005)+(6*0.01)+(2*0.120)
=0.0015+0.8+1.95+0.025+0.06+0.24
Ans=3.0765

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.
Solution: Mean of the Points column=3.596563
Mean of the Score column=3.21725
Mean of the Weigh column=17.84875
Mean of the Points column=3.695
Mean of the Score column=3.325
Mean of the Weigh column=17.71

Mode of the Points column=3.92


Mode of the Score column=3.44
Mode of the Weigh column=17.02

Variance of the Points column=0.276948


Variance of the Score column=0.927461
Variance of the Weigh column=3.09338

Standard Deviation of the Points column=0.526258


Standard Deviation of the Score column=0.963048
Standard Deviation of the Weigh column=1.758801

Range of the Points column=4.93(max)-2.76(min)=2.17


Range of the Score column=5.424(max)-1.513(min)=3.911
Range of the Weigh column=22.9(max)-14.5(min)=8.4

Use Q7.csv file


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?

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

SP and Weight(WT)
Use Q9_b.csv

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?
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.
2) What can we say about the student marks?

Q13) What is the nature of skewness when mean, median of data are equal?
Q14) What is the nature of skewness when mean > median ?
Q15) What is the nature of skewness when median > mean?
Q16) What does positive kurtosis value indicates for a data ?
Q17) What does negative kurtosis value indicates for a data?
Q18) Answer the below questions using the below boxplot visualization.

What can we say about the distribution of the data?


What is nature of skewness of the data?
What will be the IQR of the data (approximately)?

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)
b. P(MPG<40)
c. P (20<MPG<50)

Q 21) Check whether the data follows normal distribution


a) Check whether the MPG of Cars follows Normal Distribution
Dataset: Cars.csv

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


from wc-at data set follows Normal Distribution
Dataset: wc-at.csv

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


interval, 60% confidence interval
Q 23) Calculate the t scores of 95% confidence interval, 96% confidence
interval, 99% confidence interval for sample size of 25
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 days

Hint:
rcode  pt(tscore,df)

df  degrees of freedom

You might also like