KEMBAR78
Stats Assignment | PDF | Statistical Inference | Scientific Method
0% found this document useful (0 votes)
40 views15 pages

Stats Assignment

Uploaded by

tanwarvaishu9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views15 pages

Stats Assignment

Uploaded by

tanwarvaishu9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

MAJOR ASSIGNMENT

STATISTICS

Vaishnavi

Skill
academy
by testbook
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 1

QUESTION 1) According to a study, the daily average time spent by a user on a social media
website is 50 minutes. To test the claim of this study, Ramesh, a researcher, takes a sample of
25 website users and finds out that the mean time spent by the sample users is 60 minutes
and the sample standard deviation is 30 minutes. Based on this information, the null and the
alternative hypotheses will be:
a. Ho = The average time spent by the users is 50 minutes
b. H1 = The average time spent by the users is not 50 minutes
Use a 5% significance level to test this hypothesis.

Input-

Output-

1
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 2

QUESTION 2) Height of 7 students (in cm) is given below. What is the median?
168 170 169 160 162 164 162.
INPUT:

OUTPUT:

2
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 3

QUESTION 3) Below are the observations of the marks of a student. Find the
value of mode. 84 85 89 92 93 89 87 89 92.
INPUT:

OUTPUT:

QUESTION 4) From the table given below, what is the mean of marks obtained
by 20 students?
Marks xi No of students fi

3 1

4 2

5 2

6 4

7 5

8 3

3
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 4

9 2

10 1

total 20

INPUT:

OUTPUT:

QUESTION 5) For a certain type of computer, the length of time between


charges of the battery is normally distributed with a mean of 50 hours and a
standard deviation of 15 hours. John owns one of these computers and wants to
know the probability that the length of time will be between 50 and 70 hours.

4
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 5

Input -

Output -

QUESTION 6) Find the range of the following. g = [10, 23, 12, 21, 14, 17, 16, 11,
15, 19].
INPUT:

OUTPUT:

5
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 6

QUESTION 7) It is estimated that 50% of emails are spam emails. Some software
has been applied to filter these spam emails before they reach your inbox. A
certain brand of software claims that it can detect 99% of spam emails, and the
probability of a false positive (a non-spam email detected as spam) is 5%. Now if
an email is detected as spam, then what is the probability that it is in fact a non-
spam email?
Answer:

QUESTION 8) Given the following distribution of returns, determine the lower


quartile: {10 25 12 21 19 17 16 11 15 19}
INPUT:

6
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 7

OUTPUT:

QUESTION 9) For a Binomial distribution, the number of trials(n) is 25, and the
probability of success is 0.3. What’s the variability of the distribution?
INPUT:

OUTPUT:

QUESTION 10) Download the Cell Phone Survey Dataset and perform the below-
mentioned operations on the dataset: -

7
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 8

ANSWER:
PART (A) ● Checking datatypes of each column in the dataset.

PART(B) ● Find the Mean of the Signal strength column using the Pandas and Statistics
library.

8
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 9

PART(C) ● Find the Median of Customer Service column using Pandas and Statistics library.

9
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 10

PART(D) ● Find the Mode of Signal strength column using Pandas and Statistics
library.

10
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 11

PART(E) ● Find the Standard deviation of the Customer Service column using
Pandas and Statistics library.

11
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 12

PART(F) ● Find the Variance of Customer Service column using Pandas and
Statistics library.

12
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 13

Part (g) ● Calculate Percentiles of Value for the Dollar column using NumPy.

Part (h) ● Calculate the Range of Value for the Dollar column using Pandas.

13
Name = Vaishnavi, Email = tanwarkusum2345@gmail.com , course = Data Science with Python Page | 14

THANK YOU

14

You might also like