Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

JJ1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

Activity Data Type

Number of beatings from Wife discrete


Results of rolling a dice discrete
Weight of a person continuous
Weight of Gold continuous
Distance between two places continuous
Length of a leaf continuous
Dog's weight continuous
Blue Color discrete
Number of kids discrete
Number of tickets in Indian railways discrete
Number of times married discrete
Gender (Male or Female) discrete
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 interval
SAT Scores interval
Years of Education ordinal

Q3) Three Coins are tossed, find the probability that two heads and one tail are
obtained?

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

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?

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
Answer for 7 questions:
POINTS SCORE WEIGH
Mean=3.5965563 mean=3.21725 mean=17.84875
Median=3.695 median=3.325 median=17.71
Mode=3.07,3.92 mode=3.44 mode=17.02,18.90
Var=0.2858814 var=0.957379 var=3.193166
Std= 0.5346789 std=0.9784574 std=1.786943
Range=2.76 4.73 range=1.513 5.424 range=14.5 22.9

COMMENTS AND INFERENCES FOR QUESTION NO 7:


MEAN: average of data set
MEDIAN: middle value of data set
MODE: most frequent value of data set
Mean median mode gives information about Centre of the data
Variance: dispersion of data set
Standard deviation talks about risk of data set
Range gives maximum and minimum values of data set
Variance standard deviation range tells about information present in data set and
variability of data

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.
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


Answer for question no 10
Inferences about histogram of chickenweight$weight
It is right skewed
Mean>median
Skewness is positive
INFERENCES ABOUT BOXPLOT
Upper limit(UL) there is 25 pecentile between UL AND Q3
Upper quartile(Q3)
MEDIAN (Q2) there is 50 percentile Q1 AND Q3
Lower quartile(Q1)
Lower limit (LL) there is 25 percentile between LL AND Q1
UL=Q3+1.5(Q3-Q1)
LL=Q1-1.5(Q3-Q1)
BOXPLOT helps in visualization to spotify and identify outliers
Outliers are distinctely different observations
Given boxplot has 7 outliers
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?
SKEWNESS IS ZERO AND IT IS PERFECTLY SYMMETRICAL DATA
Q14) What is the nature of skewness when mean > median ? RIGHT SKEWED
Q15) What is the nature of skewness when median > mean? LEFT SKEWED
Q16) What does positive kurtosis value indicates for a data ? SHARP PEAK AND
FLAT TAILS
Q17) What does negative kurtosis value indicates for a data? 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? SKEWNESS IS NEGATIVE AND
THE TYPE OF DISTRIBUTION IN WHICH MORE VALUES ARE CONCENTRATED ON
RIGHT SIDE(TAIL) OF DISTRIBUTION GRAPH WHILE THE LEFT TAIL OF
DISTRIBUTION GRAPH IS LONGER
What is nature of skewness of the data? LEFT SKEWED
What will be the IQR of the data (approximately)? IQR= Q3-Q1=18-10=8

Q19) Comment on the below Boxplot visualizations?


ALL ARE APPROXIMATE VALUES
BOXPLOT 1 BOXPLOT 2
UL=287.5 UL=337.5
Q3=275 Q3=300
MEDIAN Q2=262.5 MEDIAN Q2=262.5
Q1=250 Q1=225
LL=237.5 LL=200
Inferences of boxplot 1 with respect to boxplot 2
UL=287.5 AND Q3=275 OF BOXPLOT 1 which ARE present in between Q2 AND Q3
OF BOXPLOT 2
MEDIAN OF BOXPLOT 1 Q2=267.5 IS EQUAL TO MEDIAN OF BOXPLOT 2 Q2=267.5
Q1=250 AND LL=237.5 OF BOXPLOT 1 which are present in between Q2 AND Q1

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