You are on page 1of 5

JAMHURIYA UNIVERSITY OF SCIENCE & TECHNOLOGY

(JUST)
POSTGRAGUATE DIPLOMA IN STATISTICS & RESEARCH

ACADEMIC YEAR 2019-2020

INFERENTIAL STATISTICS ASSIGNMENT

Please do your work using stata package version 15

Dead line: 19 March, 2020

1. Toss a coin four times. Observe the number of heads. The possible results are: Zero heads,
one head, two heads, three heads, and four heads. What is the probability distribution for
the number of heads?

a)X=0 b)X=1 b) X=2 c)X=3 d)X=4

a) di binomialp(4,0,0.5)=.0625

b) di binomialp(4,1,0.5)=.25

c) di binomialp(4,2,0.5)=.375

d) di binomialp(4,3,0.5)=.25

e) di binomialp(4,4,0.5)=.0625

2. In a survey of nursing students pursuing a master’s degree, 75 percent stated that they
expect to be promoted to a higher position within one month after receiving the degree. If
this percentage holds for the entire population, find, for a sample of 15, the probability
that the number expecting a promotion within a month after receiving their degree is:
a. P( X =7)
di binomialp(15,7,0.75)=.01310682

b. P ¿)
di binomial(15,7,0.75)=.01729984

c. P( X ≥ 8)
di binomialtail(15,8,0.75)=.98270016

3. In a study of drug-induced anaphylaxis among patients taking rocuronium bromide as part


of their anesthesia, it was found that the occurrence of anaphylaxis followed a Poisson
model with amean12 incidents per year in Norway.
a. Find the probability that in the next year, among patients receiving rocuronium,
exactly three will experience anaphylaxis.
di poissonp(12,3)=.00176953
b. What is the probability that at least three patients in the next year
will experience anaphylaxis if rocuronium is administered with anesthesia?
di poissontail(12,3)=.99947774
4. Given the standard normal distribution,
a. find P( Z> 2.71)
di 1-normal(2.71)=.00336416
b. find P(Z< 2)
di normal(2)=.97724987
5. Assume that the mean hourly cost to operate a commercial airplane follows the normal
distribution with a mean of $2,100 per hour and a standard deviation of $250. What is
the operating cost for the lowest 3 percent of the airplanes?
X=-1.88*250+2100= $1630
6. A normal population has a mean of 75 and a standard deviation of 5. You select a sample
of 40. Compute the probability the sample mean is:
a. Less than 74.
b. Between 74 and 76.
c. Greater than 76 and 77.
A) di normal(-1.27)=.10204232
B) di normal(-1.27)=.10204232+ di normal(1.27)=.10204232=0.204
C) di normal(1.27)=.10204232
d) di 1-normal(2.53)=.00570313

7. The Greater Pittsburgh Area Chamber of Commerce wants to estimate the mean time
workers who are employed in the downtown area spend getting to work. A sample of
15 workers reveals the following number of minutes spent traveling.

Develop a 98 percent confidence interval for the population mean. Interpret the result.

cii means 15 35 6, level(98)

Variable | Obs Mean Std. Err. [98% Conf. Interval]


-------------+---------------------------------------------------------------
| 15 35 1.549193 30.93415 39.06585

8. A market survey was conducted to estimate the proportion of homemakers who would
recognize the brand name of a cleanser based on the shape and the color of the
container.Of the 1,400 homemakers sampled, 420 were able to identify the brand by name.
a. Estimate the value of the population proportion.
b. Develop a 99 percent confidence interval for the population proportion
cii proportions 1400 420,exact level(99)

-- Binomial Exact --
Variable | Obs Proportion Std. Err. [99% Conf. Interval]
-------------+---------------------------------------------------------------
| 1,400 .3 .0122474 .2688246 .3325534

.
c.Interpret your findings.
The corresponding 99% confidence level for population proportion (p) lies between
(0.268824,0.3325534), then we can be 99% confident that the population proportion lies
between these two .

9. The Fox TV network is considering replacing one of its prime-time crime investigation
shows with a new family-oriented comedy show. Before a final decision is made, network
executives commission a sample of 400 viewers. After viewing the comedy, 250
indicated they would watch the new show and suggested it replace the crime investigation
show.
a. Estimate the value of the population proportion.
b. Develop a 99 percent confidence interval for the population proportion.

cii proportions 400 250, exact level(99)

-- Binomial Exact --
Variable | Obs Proportion Std. Err. [99% Conf. Interval]
-------------+---------------------------------------------------------------
| 400 .625 .0242061 .560182 .6867813

c.Interpret your findings.

The corresponding 99% confidence level for population proportion (p) lies between
(0.560182,0.6867813), then we can be 99% confident that the population proportion lies
between these two .

10. Warren County Telephone Company claims in its annual report that “the typical customer
spends $60 per month on local and long-distance service.” A sample of 12 subscribers
revealed the following amounts spent last month.

a. What is the point estimate of the population mean?


summarize spendmoneypermonths

Variable | Obs Mean Std. Dev. Min Max


-------------+---------------------------------------------------------
spendmoney~s | 12 62.58333 3.941812 54 67
b.Develop a 90 percent confidence interval for the population mean.

cii means 12 62.58 4,level(90)

Variable | Obs Mean Std. Err. [90% Conf. Interval]


-------------+---------------------------------------------------------------
| 12 62.58 1.154701 60.50629 64.65371

c.Is the company’s claim that the “typical customer” spends $60 per month reasonable?
Justify your answer.
Yes its reasonable spends 60$ per months,the reason is that if we construct confidence
level of 90% then our population mean is lies between (60.506,64.65371)

11. A Washington, D.C., “think tank” announces the typical teenager sent 50 text messages
per day in 2009. To update that estimate, you phone a sample of teenagers and ask them
how many text messages they sent the previous day. Their responses were:

At the .05 level, can you conclude that the mean number is greater than 50? Estimate
the p-value and describe what it tells you.

ttest textmessage==12,level(95)

One-sample t test

------------------------------------------------------------------------------

Variable | Obs Mean Std. Err. Std. Dev. [95% Conf. Interval]

---------+--------------------------------------------------------------------

textme~e | 12 82.5 17.17402 59.49255 44.70024 120.2998

------------------------------------------------------------------------------

mean = mean(textmessage) t = 4.1050

Ho: mean = 12 degrees of freedom = 11

Ha: mean < 12 Ha: mean != 12 Ha: mean > 12

Pr(T < t) = 0.9991 Pr(|T| > |t|) = 0.0017 Pr(T > t) = 0.0009

Interpretation: since p-value is is less than normal significan level 0.05 we are reject null
hypothesis,there is no significance evidence to support mean number is greater than 50 text
messages.

12. Research at the University of Toledo indicates that 50 percent of students change their
major area of study after their first year in a program. A random sample of 100 students in
the College of Business revealed that 48 had changed their major area of study after their
first year of the program. Has there been a significant decrease in the proportion of
students who change their major after the first year in this program? Test at the .05 level
of significance.

Interpretation: since p-value is is less than normal significan level 0.05 we are reject null
hypothesis rather than alternative hypothesis
prtesti 100 0.48 0.5

One-sample test of proportion x: Number of obs = 100


------------------------------------------------------------------------------
| Mean Std. Err. [95% Conf. Interval]
-------------+----------------------------------------------------------------
x| .48 .04996 .3820802 .5779198
------------------------------------------------------------------------------
p = proportion(x) z = -0.4000
Ho: p = 0.5

Ha: p < 0.5 Ha: p != 0.5 Ha: p > 0.5


Pr(Z < z) = 0.3446 Pr(|Z| > |z|) = 0.6892 Pr(Z > z) = 0.6554

Interpretation:
since p-value is is greater than significan level 0.05,we fail to reject null hypothesis
,this means that there is no significance evidence to support this claim the students
change their major program after first year of university.

END

You might also like