SlideShare a Scribd company logo
Probability and Statistics
 For any help regarding probability and statistics assignments
Visit: https://www.statisticshomeworkhelper.com
Email- info@statisticshomeworkhelper.com or call us at-+1 678 648
4277 statisticshomeworkhelper.com
Introduction to probability and statistics spring
Problems
Problem1. When spun on edge 250 times, a Belgian one-euro coin came up heads 140 times and tails 110. ‘It looks very
suspicious to me’, said Barry Blight, a statistics lecturer at the London School of Economics. ‘If the coin were
unbiased the chance of getting a result as extreme as that would be less than 7%’.
(a)Let θ be the probability of coming up heads. Consider the null hypothesis that the coin is fair, H0 : θ = 0.5. Carefully
explain how the 7% figure arises. What term describes this value in NHST? Does it correspond to a one-sided or two-
sided test?
(b) Would you reject H0 at a significance level of α = 0.1? What about α = 0.05?
(c)How many heads would you need to have observed out of 250 spins to reject at a significance of α = 0.01?
(d)(i) Fix significance at α = 0.05. Compute and compare the power of the test for the alternative hypotheses HA : θ =
0.55 and HA
j: θ= 0.6?
(ii) Sketch the pmf of each hypothesis and use it to explain the change in power observed in part (i).
(e) (i) Again fix α = 0.05. What is the smallest number of spins necessary for the test to have a power of 0.9 when HA : θ
= 0.55?
(ii) As in part (d), draw sketches and explain how they illustrate the change in power.
(f) Let HA : θ= 0.55. If we have only two hypotheses: H0 and HA and a flat prior
P (H0) = P (HA ) = 0.5, what is the posterior probability of HA given the data?
(g)What probability would you personally place on the coin being biased toward heads? Why? There is no one right
answer, we are simply interested in your thinking.
Problem 2. Polygraph analogy. In a experiment on the accuracy of polygraph tests, 140 people were instructed to tell the
truth and 140 people were instructed to lie. Testers use a polygraph to guess whether or not each person is lying. By
analogy, let’s say H0 corresponds to the testee telling the truth and HA corresponds to the testee lying.
(a) Describe the meaning of type I and type II errors in this context, and estimate their probabilities based on the
table.
Testee is truthful Testee is lying
Tester thinks testee is truthful 131 15
Tester thinks tested is lying 9 125
(b) In NHST, what relationships exist between the terms significance level, power, type 1 error,
and type 2 error?
statisticshomeworkhelper.com
Problem 3. We perform a t-test for the null hypothesis H0 : μ = 10 at significance level α = 0.05 by means of a
dataset consisting of n = 16 elements with sample mean 11 and sample variance 4.
(a) Should we reject the null hypothesis in favor of HA : μ ƒ= 10?
(b) What if we test against HA
j: μ > 10?
Problem 4. (z-test) Suppose three radar guns are set up along a stretch of road to catch people driving over
the speed limit of 40 miles per hour. Each radar gun is known to have a normal measurement error modeled
on N (0, 52). For a passing car, let x
¯be the average of the three readings. Our default assumption for a car is
that it is not speeding.
(a)Describe the above story in the context of NHST. Are the most natural null and alternative hypotheses
simple or compound?
(b)The police would like to set a threshold on x
¯for issuing tickets so that no more that 4% of the tickets are
given in error.
(i) Use the NHST description in part (a) to help determine what threshold should they set.
(ii) Sketch a graph illustrating your reasoning in part (i).
(c) What is the power of this test with the alternative hypothesis that the car is traveling at 45 miles per hour?
How many cameras are needed to achieve a power of .9 with α = 0.04?
Problem 5. One generates a number x from a uniform distribution on the interval [0, θ]. One decides to test H0 :
θ= 2 against HA : θƒ= 2 by rejectinHg 0 if x ≤0.1 or x ≥ 1.9.
(a) Compute the probability of a type I error.
(b) Compute the probability of a type II error if the true value of θis 2.5.
Problem 6. Give a careful, precise explanation of the following XKCDs.
a.
statisticshomeworkhelper.com
b.
Solutions
Problem 1. (a) H0: θ = 0.5
HA: one-sided θ > 0.5, two-sided θ ƒ= 0.5.
Test statistic: x = number of heads in 250 spins. Data: x = 140.
One-sided data at least as extreme: x ≥ 140. Using R we compute the one-sided p-value is
p = P (x ≥ 140|H0) = 1 - pbinom(139, 250, 0.5)= 0.03321
The one-sided p-value computes the probability in the one-sided tail. Because our null
distribution (binomial(250, 0.5)) is symmetric, each tail in the rejection region will have probability
α/2. In this case the two-sided p-value is computed by doubling the smaller of the one sided
values. We computed the right tail p-value just above. This is the smaller of
the two p-values so our two-sided p-value is 2 × 0.03321 = 0.06642. This rounds to 0.07, so
the figure of 7% is the two-sided p-value. Note:
we could use the normal approximation
binomial(250, 0.5) ≈ N(125, 250/4)
and the z-statistic
x − 125
z = ≈ N(0, 1)
√
250/4
15
one-sided: p = P (z ≥ √
250/ 4
) ≈0.02889.
15
two-sided: p = P (|z| ≥√
250/ 4
) ≈0.05778.
(b) We saw in part (a) that the quoted 7% was a two-sided p-value. So for the rest of this problem
we’ll use two-sided tests. The exact p-value was p = 0.066. Since 0.05 < p < 0.1 we reject H0 at
significance α = 0.1 and don’t reject at α = 0.05.
−0.0
1
pro
b
0.02
0.0
5
  0.5
80 100 120 140 160 180
x
The figure shows the null distribution, the α = 0.1 rejection region (blue) and the α = 0.05
statisticshomeworkhelper.com
rejection region (orange). Notice that the data x = 140 is in the 0.1 regection region but not the
second.
(c)The problem asks us to find the rejection region for α = 0.01. We use R to find the endpoints
for the rejection region (called critical values):
criticalPoint.left = qbinom(0.005,250,0.5) - 1 = 104
criticalPoint.right = qbinom(0.995,250,0.5) + 1 = 146
Note: we added or subtracted one to the value returned by qbinom for a discrete distribution like the
binomial there is not an exact critical value. So qbinom(x, n, p) returns the smallest integer with more
than x probability in its left tail. Since the rejection region must have at most α/2 in either tail we
have to move the R answer by one towards the tail.
Conclusion: we reject for greater than or equal to 146 heads or less than or equal to 104 heads.
(d) (i) For α = 0.05 the rejection region is given by the critical points
criticalPoint.left = qbinom(0.025,250,0.5) - 1 = 109
criticalPoint.right = qbinom(0.975,250,0.5) + 1 = 141
power of HA = P (reject |HA)
= P (x ≤ 109 or x ≥ 141 |HA)
= sum(dbinom(0:109, 250, 0.55)) + sum(dbinom(141:250, 250,0.55)) = 0.35237
Likewise
power of HA
j= P (reject | HA
j)
= P (x ≤ 109 or x ≥ 141 | HA
j)
= sum(dbinom(0:109, 250, 0.6)) + sum(dbinom(141:250, 250,0.6)) = 0.88963
(ii) The two plots below show the null distribution and the distribution of HA and HA
jThe green line
below the graphs shows the rejection region. The greater power of HA
jis explained by its greater
separation from H0. Most of the probability of HA
jis over the right side of the rejection region.
0.06
0.05
0.04
0.03
0.02
0.01
0
-0.01
80 100 120 140 160 180
Distributions of H0 and HA
statisticshomeworkhelper.com
18.05 Problem Set 7, Spring 2014 Solutions
-0.01
0.06
0.05
0.04
0.03
0.02
0.01
0
80 100 120 140 160 180
x
Distributions of H0 and HA
j
(e) The answer is n = 1055 with HA giving a power of 0.9003.
To get this we need to compute the power for various values of n. The steps for each n are
:
1. Find the rejection region.
2. Compute the power.
Here is the R-code for one value of n. Creating the loop to check through all values of n
until we find the first with power = 0.9 is in the posted code.
theta = 0.55
n = 300;
# Find critical points for rejection region (based on theta=0.5) criticalPoint.left = qbinom(0.025,n,0.5) -
1; criticalPoint.right = qbinom(0.975,n,0.5) + 1;
rejectionRegion = c(0:criticalPoint.left,criticalPoint.right:n) power = sum(dbinom(rejectionRegion, n,
theta))
print(power)
See the two plots with part (d): power increases as n increases because the distributions
become more separated.
-0.005
0.025
0.02
0.015
0.01
0.005
0
450 500 550 600 650
x
Plot for n = 1055 of the H0 and HA : θ = 0.55 distributions. The green lines show the rejection
region.
An alternative approach approximating the exact answer with normal distributions is given at the end of these solutions.
(f) We use the usual Bayesian update table.
statisticshomeworkhelper.com
Hypothesis prior likelihood posterior
θ = 0.5 1/2 c1(0.5)250 c2(0.5)250 = 0.14757
θ = 0.55 1/2 c1(0.55)140(0.45)110 c2(0.55)140(0.45)110 = 0.85243
1
The normalizing factor c2 =
(0.5)250 + (0.55)140(0.45)110 .
The posterior probability that θ= 0.55 is 0.85.
Note: if we used the beta(1, 1) prior on θ in [0,1] and used the data to update to a posterior of
beta(141, 111) then the 90% probability interval is [0.501, 0.611]. Although p-values and posterior
probability are measure different things. This probability interval and the 7% p-value seem similar
in the belief they convey that the coin may be biased.
(g) I’d go with the 90% probability interval discussed in part (f). It appears the coin is biased.
Problem 2 (a) Type I error is rejecting the null-hypothesis when it is indeed true. This
corresponds to thinking someone is lying when they are in fact being truthful.
140
The experiment had 9 type I errors. This is our estimate of the probability of a type I
error.
Type II error is not rejecting the null-hypothesis when it is indeed false. This corresponds to
thinking someone is telling the truth when they are in fact lying. Based on the data our
estimate of the probability of a Type II error is 15 .
140
(b) Significance = P (type I error) = P (reject H0 |H0). Power
= 1 - P (type II error) = P (reject H0 | HA).
Problem 3. (a) This is a two-sided alternative. The t-statistic is
x
¯− μ
=
1
= 2.
s/
√
n2/4
Since we have n = 16 our t statistic has 15 degrees of freedom.
We have the two-sided p-value
p = P (|t| > 2|H0) = 2*(1-pt(2,15)) = 0.063945.
Since p > α = 0.05 we don’t reject the null hypothesis.
Alternatively we could have done the problem in terms of rejection regions. We are given x
¯= 11, s2
= 4, and n = 16. The null hypothesis is μ = 10. Using x
¯as our test statistic the rejection region is
s s
(−∞, 10 − t15,0.025√
n
] ∪ [10 + t15,0.025√
n
, ∞ ) = (−∞, 8.93] ∪ [11.07, ∞ )
Here t15,0.025 means a critical value, i.e. the value with right tail probability 0.025: for
T ∼ t(15) we have P (t > t15,0.025) = 0.025.
Since 11 lies outside the rejection region, we should not reject the null-hypothesis.
(b) This is a one-sided alternative. The t-statistic is the same
x
¯− μ
=
1
= 2.
s/
√
n2/4 statisticshomeworkhelper.com
So we have the one-sided p-value
p = P (t > 2|H0) = 2*(1-pt(2,15)) = 0.031973.
Since p < α = 0.05 we reject the null hypothesis in favor of the alternative.
Again looking at rejection regions. We use the critical value t15,0.05 ≈ 1.753. The rejection
region for x
¯is
s
[10 + t15,0.05√
n
, ∞ ) = [10.876, ∞).
Since 11 lies inside the rejection region, we should reject the null-hypothesis in favor of
H1 : μ > 10.
Problem 4. (a) Let μ be the actual speed of a given driver. We are given that
xi ∼ N(μ, 52) ⇒ x
¯∼ N(μ, 52/3).
The most natural hypotheses are:
H0: the driver is not speeding, i.e. μ ≤ 40.
HA: the driver is speeding, i.e. μ > 40. Both
are composite.
Note: we will work with H0: μ = 40, which is simple.
(b) (i) Giving a ticket to a non-speeder is a type I error (rejecting H0 when it is true). H0 is
composite, but we can do all our computations with the most extreme value μ = 40 because the
one-sided rejection region will have its largest significance level when μ = 40.
So the null distribution is x
¯∼ N(40, 52/3). The critical value is
c0.04 = qnorm(0.96,40,5/sqrt(3)) = 45.054
5
(Equivalently c0.04 = 40 + z0.04 √ = 45.054.)
3
That is, they should issue a ticket if the average of the three guns is more than 45.054.
(ii) Here is a plot of the null distribution N(40, 52/3). The rejection probability of 0.04 is shown.
Null distribution for x_bar
0.16
0.14
0.12
0.1
0.08
0.06
0.04
0.02
0
30 35 40 45 50
(c) Power = P (rejection |HA). So to find the power we first must find the rejection region.
For n = 3 this was done in part (b): rejection region = [45.054, ∞). So
power = P (rejection |,μ = 45) = 1 - pnorm(45.054, 45, 5/sqrt(3)) = 0.493 statisticshomeworkhelper.com
With n cameras (guns) let’s write xn for the sample mean. The null distribution is
2
x¯n ∼ N(40, 5 /n)
The critical value, i.e. the left endpoint of the rejection region, depends on n. Also, in order to do
the computations algebraically we need to write everything in terms of standard normal values.
√ 5
c0.04 = qnorm(0.96, 40, 5/ n) = 40 + z0.04 √
n
where z0.04 is the standard normal critical value
z0.04 = qnorm(0.96, 0, 1) = 1.751.
We want
power = P (x ≥ c0.04 |μ = 45) = 0.9
Standardizing and doing some algebra we get
0.04
x − 45 c − 45 −5
P
5/
√
n
≥
5/
√
n
= 0.9 ⇒ P z ≥
5/
√
n
+ z0.04 = 0.9
−5
Thus √ + z = z . We get 5/ n
0.04 0.9
2 2
n = (z0.04 − z0.9) = (1.7507 − (−1.2816)) = 9.1945.
Setting n to be the next biggest integer we get n = 10.
We could do this all in R. The code for computing the power when n = 3 is shown below. Notice
that we don’t have to phrase everything in terms of standard normal values to compute. You only
have to change the first line to compute power for different values of n.
n = 3
mu = 40;
sigma = 5/sqrt(n); alpha = 0.04;
xcrit = qnorm(1-alpha, mu, sigma); power = 1-pnorm(xcrit, 45,
sigma)
We could now use R to compute power for increasing values of n and see which value of n
gives power more than 0.9.
Problem 5. (a) P (type I) = P (reject H0 |H0) = P (x ≤ 0.1 or x ≥ 1.9 |θ=
0.2
2) = = 0.1.
2
1.8
(b) P (type II) = P (don’t reject H0 |θ = 2.5) = P (0.1 < x < 1.9 |θ = 2.5) =
2.5
= 0.72.
Problem 6. (a) The frequentist has hypotheses H0 = ‘the sun is okay’
HA = ‘the sun has gone nova’
The experimental data from the neutrino detector says the sun has gone nova.
statisticshomeworkhelper.com
The frequentist computes the p-value
p = P (sun gone nova |H0) = P (computer lied) = 1/36 = .027
(Note: 1/36 is really 0.028 not 0.027) Since p < 0.05 the frequentist rejects H0 in favor of
HA at significance level 0.05.
This is problematic, the p-value is the probability assuming H0 of data ’at least as extreme’ as the
data seen. How is that even defined in this case?
Ignoring the p-value we can explain the comic more clearly. The rejection region = {the
detector says yes}. The significance is 1/36 = 0.028. Therefore the frequentist rejects the
null hypothesis and concludes the sun has gone nova at significance level 0.028.
(b) The comic is pointing out the flaw of multiple testing or what’s sometimes called
data mining. (The bad type of data mining, there is also a good type.) A significance level of 0.05
means that in 20 experiments where H0 is true we’d expect to reject it once. The scientists test
20 colors. So even if no jelly bean color causes cancer there is a high probability that one of the
tests will produce a test statistic in the rejection region.
The fix is to plan on doing n tests and set the significance level for any one test to α/n. Then,
assuming H0 is true for all the tests, the probability that at least one of them will reject is roughly
n ∗α/n = α. This is called the Bonferroni correction. (Actually, because of the possibility of multiple
rejections the probabilitiy at least one will reject is less than or equal to α.
Normal approximation to problem 1 (e).
We use that binomial(n, θ) ≈ N(nθ, nθ(1 − θ)). The normal approximation introduces some error, but
we can compute n directly instead of needing to search through a sequence of possible values.
For α = 0.05 and θ= 0.5 the critical values are
√
n
c0.025 = n(0.5) + z0.025
2
c0.975 = n(0.5) − z0.025
√
n
2
So when θ= 0.55
√
n
√
n
n n
power = P x ≤
2
− z0.025 | θ = 0.55 + P x ≥
2
+ z0.025 | θ= 0.55
2 2
Standardizing assuming θ= 9.55:
z =
x − n(0.55)
J
n(0.55)(0.45)
A little algebra gives
statisticshomeworkhelper.com
√ √
n n
n/2 − z 0.025 −n(0.55) n/2 + z 0.025 −n(0.55)
2 2
power ≈ P z ≤ J + P z ≥ J
n(0.55)(0.45) n(0.55)(0.45)
√ √
n n
−0.05n − z 0.025 −0.05n + z 0.025
2 2
= P z ≤ J + P z ≥ J
n(0.55)(0.45) n(0.55)(0.45)
For n large the left hand probability is essentially 0. So to get power = 0.9 we need
√
n
−0.05n + z 0.025
2
P z ≥ J = 0.9
n(0.55)(0.45)
That is √
n
−0.05n + 2 z0.025
J
n(0.55)(0.45)
= z0.9
Using z0.025 = 1.96 and z0.9 = −1.2816 and solving for n we get n = 1047, which is very close to the
exact answer of 1055.
statisticshomeworkhelper.com

More Related Content

What's hot

Lesson 11 1 probability
Lesson 11 1 probabilityLesson 11 1 probability
Lesson 11 1 probabilitymlabuski
 
Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theorem
Balaji P
 
Normal Distribution Presentation
Normal Distribution PresentationNormal Distribution Presentation
Normal Distribution Presentationsankarshanjoshi
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
Long Beach City College
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
Long Beach City College
 
Basic concept of probability
Basic concept of probabilityBasic concept of probability
Basic concept of probability
Ikhlas Rahman
 
Bays theorem of probability
Bays theorem of probabilityBays theorem of probability
Bays theorem of probability
mayank mulchandani
 
Basic Probability for Early Learners
Basic Probability for Early LearnersBasic Probability for Early Learners
Basic Probability for Early Learnersarkinism1945
 
Normal as Approximation to Binomial
Normal as Approximation to Binomial  Normal as Approximation to Binomial
Normal as Approximation to Binomial
Long Beach City College
 
PROBABILITY BY SHUBHAM
PROBABILITY BY SHUBHAMPROBABILITY BY SHUBHAM
PROBABILITY BY SHUBHAM
Shubham Kumar
 
Statistics
StatisticsStatistics
Statistics
fracpractice
 
Probability Theory MSc BA Sem 2.pdf
Probability Theory MSc BA Sem 2.pdfProbability Theory MSc BA Sem 2.pdf
Probability Theory MSc BA Sem 2.pdf
ssuserd329601
 
Conditional-Probability-Powerpoint.pptx
Conditional-Probability-Powerpoint.pptxConditional-Probability-Powerpoint.pptx
Conditional-Probability-Powerpoint.pptx
VilDom
 
Chapter 5 CFA questions
Chapter 5 CFA questionsChapter 5 CFA questions
Chapter 5 CFA questions
student_of_finance
 
Ideal Asset Allocation
Ideal Asset AllocationIdeal Asset Allocation
Ideal Asset Allocation
Franklin Templeton India
 
Estimating a Population Mean
Estimating a Population MeanEstimating a Population Mean
Estimating a Population Mean
Long Beach City College
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
Long Beach City College
 
Probability
ProbabilityProbability
Probability
Naman Kumar
 
M estimation, s estimation, and mm estimation in robust regression
M estimation, s estimation, and mm estimation in robust regressionM estimation, s estimation, and mm estimation in robust regression
M estimation, s estimation, and mm estimation in robust regression
jcmani
 

What's hot (20)

Lesson 11 1 probability
Lesson 11 1 probabilityLesson 11 1 probability
Lesson 11 1 probability
 
Probability basics and bayes' theorem
Probability basics and bayes' theoremProbability basics and bayes' theorem
Probability basics and bayes' theorem
 
Math Studies conditional probability
Math Studies conditional probabilityMath Studies conditional probability
Math Studies conditional probability
 
Normal Distribution Presentation
Normal Distribution PresentationNormal Distribution Presentation
Normal Distribution Presentation
 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Basic concept of probability
Basic concept of probabilityBasic concept of probability
Basic concept of probability
 
Bays theorem of probability
Bays theorem of probabilityBays theorem of probability
Bays theorem of probability
 
Basic Probability for Early Learners
Basic Probability for Early LearnersBasic Probability for Early Learners
Basic Probability for Early Learners
 
Normal as Approximation to Binomial
Normal as Approximation to Binomial  Normal as Approximation to Binomial
Normal as Approximation to Binomial
 
PROBABILITY BY SHUBHAM
PROBABILITY BY SHUBHAMPROBABILITY BY SHUBHAM
PROBABILITY BY SHUBHAM
 
Statistics
StatisticsStatistics
Statistics
 
Probability Theory MSc BA Sem 2.pdf
Probability Theory MSc BA Sem 2.pdfProbability Theory MSc BA Sem 2.pdf
Probability Theory MSc BA Sem 2.pdf
 
Conditional-Probability-Powerpoint.pptx
Conditional-Probability-Powerpoint.pptxConditional-Probability-Powerpoint.pptx
Conditional-Probability-Powerpoint.pptx
 
Chapter 5 CFA questions
Chapter 5 CFA questionsChapter 5 CFA questions
Chapter 5 CFA questions
 
Ideal Asset Allocation
Ideal Asset AllocationIdeal Asset Allocation
Ideal Asset Allocation
 
Estimating a Population Mean
Estimating a Population MeanEstimating a Population Mean
Estimating a Population Mean
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
 
Probability
ProbabilityProbability
Probability
 
M estimation, s estimation, and mm estimation in robust regression
M estimation, s estimation, and mm estimation in robust regressionM estimation, s estimation, and mm estimation in robust regression
M estimation, s estimation, and mm estimation in robust regression
 

Similar to probability assignment help

statistics assignment help
statistics assignment helpstatistics assignment help
statistics assignment help
Statistics Homework Helper
 
Advanced Statistics Homework Help
Advanced Statistics Homework HelpAdvanced Statistics Homework Help
Advanced Statistics Homework Help
Statistics Homework Helper
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
Statistics Assignment Help
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
Statistics Homework Helper
 
An introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using PythonAn introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using Python
freshdatabos
 
Statistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment Help
Statistics Assignment Help
 
Please put answers below the boxes1) A politician claims that .docx
Please put answers below the boxes1) A politician claims that .docxPlease put answers below the boxes1) A politician claims that .docx
Please put answers below the boxes1) A politician claims that .docx
LeilaniPoolsy
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
Excel Homework Help
 
Amth250 octave matlab some solutions (4)
Amth250 octave matlab some solutions (4)Amth250 octave matlab some solutions (4)
Amth250 octave matlab some solutions (4)asghar123456
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
Advanced Statistics Homework Help
Advanced Statistics Homework HelpAdvanced Statistics Homework Help
Advanced Statistics Homework Help
Excel Homework Help
 
Midterm
MidtermMidterm
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
Statistics Homework Helper
 
Math Exam Help
Math Exam HelpMath Exam Help
Math Exam Help
Live Exam Helper
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Long Beach City College
 
Algorithm Homework Help
Algorithm Homework HelpAlgorithm Homework Help
Algorithm Homework Help
Programming Homework Help
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11darwinrlo
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
Excel Homework Help
 
probability and statistics
probability and statisticsprobability and statistics
probability and statistics
zain393885
 
Sample quizz test
Sample quizz testSample quizz test
Sample quizz test
kasguest
 

Similar to probability assignment help (20)

statistics assignment help
statistics assignment helpstatistics assignment help
statistics assignment help
 
Advanced Statistics Homework Help
Advanced Statistics Homework HelpAdvanced Statistics Homework Help
Advanced Statistics Homework Help
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
An introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using PythonAn introduction to Bayesian Statistics using Python
An introduction to Bayesian Statistics using Python
 
Statistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment Help
 
Please put answers below the boxes1) A politician claims that .docx
Please put answers below the boxes1) A politician claims that .docxPlease put answers below the boxes1) A politician claims that .docx
Please put answers below the boxes1) A politician claims that .docx
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
Amth250 octave matlab some solutions (4)
Amth250 octave matlab some solutions (4)Amth250 octave matlab some solutions (4)
Amth250 octave matlab some solutions (4)
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Advanced Statistics Homework Help
Advanced Statistics Homework HelpAdvanced Statistics Homework Help
Advanced Statistics Homework Help
 
Midterm
MidtermMidterm
Midterm
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
Math Exam Help
Math Exam HelpMath Exam Help
Math Exam Help
 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
 
Algorithm Homework Help
Algorithm Homework HelpAlgorithm Homework Help
Algorithm Homework Help
 
Cs221 lecture4-fall11
Cs221 lecture4-fall11Cs221 lecture4-fall11
Cs221 lecture4-fall11
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
probability and statistics
probability and statisticsprobability and statistics
probability and statistics
 
Sample quizz test
Sample quizz testSample quizz test
Sample quizz test
 

More from Statistics Homework Helper

📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
Statistics Homework Helper
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚
Statistics Homework Helper
 
Multiple Linear Regression Homework Help
Multiple Linear Regression Homework HelpMultiple Linear Regression Homework Help
Multiple Linear Regression Homework Help
Statistics Homework Helper
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
SAS Homework Help
SAS Homework HelpSAS Homework Help
SAS Homework Help
Statistics Homework Helper
 
R Programming Homework Help
R Programming Homework HelpR Programming Homework Help
R Programming Homework Help
Statistics Homework Helper
 
Statistics Homework Helper
Statistics Homework HelperStatistics Homework Helper
Statistics Homework Helper
Statistics Homework Helper
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
Do My Statistics Homework
Do My Statistics HomeworkDo My Statistics Homework
Do My Statistics Homework
Statistics Homework Helper
 
Write My Statistics Homework
Write My Statistics HomeworkWrite My Statistics Homework
Write My Statistics Homework
Statistics Homework Helper
 
Quantitative Research Homework Help
Quantitative Research Homework HelpQuantitative Research Homework Help
Quantitative Research Homework Help
Statistics Homework Helper
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
Statistics Homework Helper
 
Top Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework HelpTop Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework Help
Statistics Homework Helper
 
Introduction to Statistics
Introduction to StatisticsIntroduction to Statistics
Introduction to Statistics
Statistics Homework Helper
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
Multivariate and Monova Assignment Help
Multivariate and Monova Assignment HelpMultivariate and Monova Assignment Help
Multivariate and Monova Assignment Help
Statistics Homework Helper
 
Statistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and AnswersStatistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and Answers
Statistics Homework Helper
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
Quantitative Methods Assignment Help
Quantitative Methods Assignment HelpQuantitative Methods Assignment Help
Quantitative Methods Assignment Help
Statistics Homework Helper
 
Multiple Linear Regression Homework Help
Multiple Linear Regression Homework HelpMultiple Linear Regression Homework Help
Multiple Linear Regression Homework Help
Statistics Homework Helper
 

More from Statistics Homework Helper (20)

📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
📊 Conquer Your Stats Homework with These Top 10 Tips! 🚀
 
Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚Your Statistics Homework Solver is Here! 📊📚
Your Statistics Homework Solver is Here! 📊📚
 
Multiple Linear Regression Homework Help
Multiple Linear Regression Homework HelpMultiple Linear Regression Homework Help
Multiple Linear Regression Homework Help
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
SAS Homework Help
SAS Homework HelpSAS Homework Help
SAS Homework Help
 
R Programming Homework Help
R Programming Homework HelpR Programming Homework Help
R Programming Homework Help
 
Statistics Homework Helper
Statistics Homework HelperStatistics Homework Helper
Statistics Homework Helper
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Do My Statistics Homework
Do My Statistics HomeworkDo My Statistics Homework
Do My Statistics Homework
 
Write My Statistics Homework
Write My Statistics HomeworkWrite My Statistics Homework
Write My Statistics Homework
 
Quantitative Research Homework Help
Quantitative Research Homework HelpQuantitative Research Homework Help
Quantitative Research Homework Help
 
Probability Homework Help
Probability Homework HelpProbability Homework Help
Probability Homework Help
 
Top Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework HelpTop Rated Service Provided By Statistics Homework Help
Top Rated Service Provided By Statistics Homework Help
 
Introduction to Statistics
Introduction to StatisticsIntroduction to Statistics
Introduction to Statistics
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Multivariate and Monova Assignment Help
Multivariate and Monova Assignment HelpMultivariate and Monova Assignment Help
Multivariate and Monova Assignment Help
 
Statistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and AnswersStatistics Multiple Choice Questions and Answers
Statistics Multiple Choice Questions and Answers
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Quantitative Methods Assignment Help
Quantitative Methods Assignment HelpQuantitative Methods Assignment Help
Quantitative Methods Assignment Help
 
Multiple Linear Regression Homework Help
Multiple Linear Regression Homework HelpMultiple Linear Regression Homework Help
Multiple Linear Regression Homework Help
 

Recently uploaded

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
PedroFerreira53928
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

probability assignment help

  • 1. Probability and Statistics  For any help regarding probability and statistics assignments Visit: https://www.statisticshomeworkhelper.com Email- info@statisticshomeworkhelper.com or call us at-+1 678 648 4277 statisticshomeworkhelper.com
  • 2. Introduction to probability and statistics spring Problems Problem1. When spun on edge 250 times, a Belgian one-euro coin came up heads 140 times and tails 110. ‘It looks very suspicious to me’, said Barry Blight, a statistics lecturer at the London School of Economics. ‘If the coin were unbiased the chance of getting a result as extreme as that would be less than 7%’. (a)Let θ be the probability of coming up heads. Consider the null hypothesis that the coin is fair, H0 : θ = 0.5. Carefully explain how the 7% figure arises. What term describes this value in NHST? Does it correspond to a one-sided or two- sided test? (b) Would you reject H0 at a significance level of α = 0.1? What about α = 0.05? (c)How many heads would you need to have observed out of 250 spins to reject at a significance of α = 0.01? (d)(i) Fix significance at α = 0.05. Compute and compare the power of the test for the alternative hypotheses HA : θ = 0.55 and HA j: θ= 0.6? (ii) Sketch the pmf of each hypothesis and use it to explain the change in power observed in part (i). (e) (i) Again fix α = 0.05. What is the smallest number of spins necessary for the test to have a power of 0.9 when HA : θ = 0.55? (ii) As in part (d), draw sketches and explain how they illustrate the change in power. (f) Let HA : θ= 0.55. If we have only two hypotheses: H0 and HA and a flat prior P (H0) = P (HA ) = 0.5, what is the posterior probability of HA given the data? (g)What probability would you personally place on the coin being biased toward heads? Why? There is no one right answer, we are simply interested in your thinking. Problem 2. Polygraph analogy. In a experiment on the accuracy of polygraph tests, 140 people were instructed to tell the truth and 140 people were instructed to lie. Testers use a polygraph to guess whether or not each person is lying. By analogy, let’s say H0 corresponds to the testee telling the truth and HA corresponds to the testee lying. (a) Describe the meaning of type I and type II errors in this context, and estimate their probabilities based on the table. Testee is truthful Testee is lying Tester thinks testee is truthful 131 15 Tester thinks tested is lying 9 125 (b) In NHST, what relationships exist between the terms significance level, power, type 1 error, and type 2 error? statisticshomeworkhelper.com
  • 3. Problem 3. We perform a t-test for the null hypothesis H0 : μ = 10 at significance level α = 0.05 by means of a dataset consisting of n = 16 elements with sample mean 11 and sample variance 4. (a) Should we reject the null hypothesis in favor of HA : μ ƒ= 10? (b) What if we test against HA j: μ > 10? Problem 4. (z-test) Suppose three radar guns are set up along a stretch of road to catch people driving over the speed limit of 40 miles per hour. Each radar gun is known to have a normal measurement error modeled on N (0, 52). For a passing car, let x ¯be the average of the three readings. Our default assumption for a car is that it is not speeding. (a)Describe the above story in the context of NHST. Are the most natural null and alternative hypotheses simple or compound? (b)The police would like to set a threshold on x ¯for issuing tickets so that no more that 4% of the tickets are given in error. (i) Use the NHST description in part (a) to help determine what threshold should they set. (ii) Sketch a graph illustrating your reasoning in part (i). (c) What is the power of this test with the alternative hypothesis that the car is traveling at 45 miles per hour? How many cameras are needed to achieve a power of .9 with α = 0.04? Problem 5. One generates a number x from a uniform distribution on the interval [0, θ]. One decides to test H0 : θ= 2 against HA : θƒ= 2 by rejectinHg 0 if x ≤0.1 or x ≥ 1.9. (a) Compute the probability of a type I error. (b) Compute the probability of a type II error if the true value of θis 2.5. Problem 6. Give a careful, precise explanation of the following XKCDs. a. statisticshomeworkhelper.com
  • 4. b.
  • 5. Solutions Problem 1. (a) H0: θ = 0.5 HA: one-sided θ > 0.5, two-sided θ ƒ= 0.5. Test statistic: x = number of heads in 250 spins. Data: x = 140. One-sided data at least as extreme: x ≥ 140. Using R we compute the one-sided p-value is p = P (x ≥ 140|H0) = 1 - pbinom(139, 250, 0.5)= 0.03321 The one-sided p-value computes the probability in the one-sided tail. Because our null distribution (binomial(250, 0.5)) is symmetric, each tail in the rejection region will have probability α/2. In this case the two-sided p-value is computed by doubling the smaller of the one sided values. We computed the right tail p-value just above. This is the smaller of the two p-values so our two-sided p-value is 2 × 0.03321 = 0.06642. This rounds to 0.07, so the figure of 7% is the two-sided p-value. Note: we could use the normal approximation binomial(250, 0.5) ≈ N(125, 250/4) and the z-statistic x − 125 z = ≈ N(0, 1) √ 250/4 15 one-sided: p = P (z ≥ √ 250/ 4 ) ≈0.02889. 15 two-sided: p = P (|z| ≥√ 250/ 4 ) ≈0.05778. (b) We saw in part (a) that the quoted 7% was a two-sided p-value. So for the rest of this problem we’ll use two-sided tests. The exact p-value was p = 0.066. Since 0.05 < p < 0.1 we reject H0 at significance α = 0.1 and don’t reject at α = 0.05. −0.0 1 pro b 0.02 0.0 5   0.5 80 100 120 140 160 180 x The figure shows the null distribution, the α = 0.1 rejection region (blue) and the α = 0.05 statisticshomeworkhelper.com
  • 6. rejection region (orange). Notice that the data x = 140 is in the 0.1 regection region but not the second. (c)The problem asks us to find the rejection region for α = 0.01. We use R to find the endpoints for the rejection region (called critical values): criticalPoint.left = qbinom(0.005,250,0.5) - 1 = 104 criticalPoint.right = qbinom(0.995,250,0.5) + 1 = 146 Note: we added or subtracted one to the value returned by qbinom for a discrete distribution like the binomial there is not an exact critical value. So qbinom(x, n, p) returns the smallest integer with more than x probability in its left tail. Since the rejection region must have at most α/2 in either tail we have to move the R answer by one towards the tail. Conclusion: we reject for greater than or equal to 146 heads or less than or equal to 104 heads. (d) (i) For α = 0.05 the rejection region is given by the critical points criticalPoint.left = qbinom(0.025,250,0.5) - 1 = 109 criticalPoint.right = qbinom(0.975,250,0.5) + 1 = 141 power of HA = P (reject |HA) = P (x ≤ 109 or x ≥ 141 |HA) = sum(dbinom(0:109, 250, 0.55)) + sum(dbinom(141:250, 250,0.55)) = 0.35237 Likewise power of HA j= P (reject | HA j) = P (x ≤ 109 or x ≥ 141 | HA j) = sum(dbinom(0:109, 250, 0.6)) + sum(dbinom(141:250, 250,0.6)) = 0.88963 (ii) The two plots below show the null distribution and the distribution of HA and HA jThe green line below the graphs shows the rejection region. The greater power of HA jis explained by its greater separation from H0. Most of the probability of HA jis over the right side of the rejection region. 0.06 0.05 0.04 0.03 0.02 0.01 0 -0.01 80 100 120 140 160 180 Distributions of H0 and HA statisticshomeworkhelper.com
  • 7. 18.05 Problem Set 7, Spring 2014 Solutions -0.01 0.06 0.05 0.04 0.03 0.02 0.01 0 80 100 120 140 160 180 x Distributions of H0 and HA j (e) The answer is n = 1055 with HA giving a power of 0.9003. To get this we need to compute the power for various values of n. The steps for each n are : 1. Find the rejection region. 2. Compute the power. Here is the R-code for one value of n. Creating the loop to check through all values of n until we find the first with power = 0.9 is in the posted code. theta = 0.55 n = 300; # Find critical points for rejection region (based on theta=0.5) criticalPoint.left = qbinom(0.025,n,0.5) - 1; criticalPoint.right = qbinom(0.975,n,0.5) + 1; rejectionRegion = c(0:criticalPoint.left,criticalPoint.right:n) power = sum(dbinom(rejectionRegion, n, theta)) print(power) See the two plots with part (d): power increases as n increases because the distributions become more separated. -0.005 0.025 0.02 0.015 0.01 0.005 0 450 500 550 600 650 x Plot for n = 1055 of the H0 and HA : θ = 0.55 distributions. The green lines show the rejection region. An alternative approach approximating the exact answer with normal distributions is given at the end of these solutions. (f) We use the usual Bayesian update table. statisticshomeworkhelper.com
  • 8. Hypothesis prior likelihood posterior θ = 0.5 1/2 c1(0.5)250 c2(0.5)250 = 0.14757 θ = 0.55 1/2 c1(0.55)140(0.45)110 c2(0.55)140(0.45)110 = 0.85243 1 The normalizing factor c2 = (0.5)250 + (0.55)140(0.45)110 . The posterior probability that θ= 0.55 is 0.85. Note: if we used the beta(1, 1) prior on θ in [0,1] and used the data to update to a posterior of beta(141, 111) then the 90% probability interval is [0.501, 0.611]. Although p-values and posterior probability are measure different things. This probability interval and the 7% p-value seem similar in the belief they convey that the coin may be biased. (g) I’d go with the 90% probability interval discussed in part (f). It appears the coin is biased. Problem 2 (a) Type I error is rejecting the null-hypothesis when it is indeed true. This corresponds to thinking someone is lying when they are in fact being truthful. 140 The experiment had 9 type I errors. This is our estimate of the probability of a type I error. Type II error is not rejecting the null-hypothesis when it is indeed false. This corresponds to thinking someone is telling the truth when they are in fact lying. Based on the data our estimate of the probability of a Type II error is 15 . 140 (b) Significance = P (type I error) = P (reject H0 |H0). Power = 1 - P (type II error) = P (reject H0 | HA). Problem 3. (a) This is a two-sided alternative. The t-statistic is x ¯− μ = 1 = 2. s/ √ n2/4 Since we have n = 16 our t statistic has 15 degrees of freedom. We have the two-sided p-value p = P (|t| > 2|H0) = 2*(1-pt(2,15)) = 0.063945. Since p > α = 0.05 we don’t reject the null hypothesis. Alternatively we could have done the problem in terms of rejection regions. We are given x ¯= 11, s2 = 4, and n = 16. The null hypothesis is μ = 10. Using x ¯as our test statistic the rejection region is s s (−∞, 10 − t15,0.025√ n ] ∪ [10 + t15,0.025√ n , ∞ ) = (−∞, 8.93] ∪ [11.07, ∞ ) Here t15,0.025 means a critical value, i.e. the value with right tail probability 0.025: for T ∼ t(15) we have P (t > t15,0.025) = 0.025. Since 11 lies outside the rejection region, we should not reject the null-hypothesis. (b) This is a one-sided alternative. The t-statistic is the same x ¯− μ = 1 = 2. s/ √ n2/4 statisticshomeworkhelper.com
  • 9. So we have the one-sided p-value p = P (t > 2|H0) = 2*(1-pt(2,15)) = 0.031973. Since p < α = 0.05 we reject the null hypothesis in favor of the alternative. Again looking at rejection regions. We use the critical value t15,0.05 ≈ 1.753. The rejection region for x ¯is s [10 + t15,0.05√ n , ∞ ) = [10.876, ∞). Since 11 lies inside the rejection region, we should reject the null-hypothesis in favor of H1 : μ > 10. Problem 4. (a) Let μ be the actual speed of a given driver. We are given that xi ∼ N(μ, 52) ⇒ x ¯∼ N(μ, 52/3). The most natural hypotheses are: H0: the driver is not speeding, i.e. μ ≤ 40. HA: the driver is speeding, i.e. μ > 40. Both are composite. Note: we will work with H0: μ = 40, which is simple. (b) (i) Giving a ticket to a non-speeder is a type I error (rejecting H0 when it is true). H0 is composite, but we can do all our computations with the most extreme value μ = 40 because the one-sided rejection region will have its largest significance level when μ = 40. So the null distribution is x ¯∼ N(40, 52/3). The critical value is c0.04 = qnorm(0.96,40,5/sqrt(3)) = 45.054 5 (Equivalently c0.04 = 40 + z0.04 √ = 45.054.) 3 That is, they should issue a ticket if the average of the three guns is more than 45.054. (ii) Here is a plot of the null distribution N(40, 52/3). The rejection probability of 0.04 is shown. Null distribution for x_bar 0.16 0.14 0.12 0.1 0.08 0.06 0.04 0.02 0 30 35 40 45 50 (c) Power = P (rejection |HA). So to find the power we first must find the rejection region. For n = 3 this was done in part (b): rejection region = [45.054, ∞). So power = P (rejection |,μ = 45) = 1 - pnorm(45.054, 45, 5/sqrt(3)) = 0.493 statisticshomeworkhelper.com
  • 10. With n cameras (guns) let’s write xn for the sample mean. The null distribution is 2 x¯n ∼ N(40, 5 /n) The critical value, i.e. the left endpoint of the rejection region, depends on n. Also, in order to do the computations algebraically we need to write everything in terms of standard normal values. √ 5 c0.04 = qnorm(0.96, 40, 5/ n) = 40 + z0.04 √ n where z0.04 is the standard normal critical value z0.04 = qnorm(0.96, 0, 1) = 1.751. We want power = P (x ≥ c0.04 |μ = 45) = 0.9 Standardizing and doing some algebra we get 0.04 x − 45 c − 45 −5 P 5/ √ n ≥ 5/ √ n = 0.9 ⇒ P z ≥ 5/ √ n + z0.04 = 0.9 −5 Thus √ + z = z . We get 5/ n 0.04 0.9 2 2 n = (z0.04 − z0.9) = (1.7507 − (−1.2816)) = 9.1945. Setting n to be the next biggest integer we get n = 10. We could do this all in R. The code for computing the power when n = 3 is shown below. Notice that we don’t have to phrase everything in terms of standard normal values to compute. You only have to change the first line to compute power for different values of n. n = 3 mu = 40; sigma = 5/sqrt(n); alpha = 0.04; xcrit = qnorm(1-alpha, mu, sigma); power = 1-pnorm(xcrit, 45, sigma) We could now use R to compute power for increasing values of n and see which value of n gives power more than 0.9. Problem 5. (a) P (type I) = P (reject H0 |H0) = P (x ≤ 0.1 or x ≥ 1.9 |θ= 0.2 2) = = 0.1. 2 1.8 (b) P (type II) = P (don’t reject H0 |θ = 2.5) = P (0.1 < x < 1.9 |θ = 2.5) = 2.5 = 0.72. Problem 6. (a) The frequentist has hypotheses H0 = ‘the sun is okay’ HA = ‘the sun has gone nova’ The experimental data from the neutrino detector says the sun has gone nova. statisticshomeworkhelper.com
  • 11. The frequentist computes the p-value p = P (sun gone nova |H0) = P (computer lied) = 1/36 = .027 (Note: 1/36 is really 0.028 not 0.027) Since p < 0.05 the frequentist rejects H0 in favor of HA at significance level 0.05. This is problematic, the p-value is the probability assuming H0 of data ’at least as extreme’ as the data seen. How is that even defined in this case? Ignoring the p-value we can explain the comic more clearly. The rejection region = {the detector says yes}. The significance is 1/36 = 0.028. Therefore the frequentist rejects the null hypothesis and concludes the sun has gone nova at significance level 0.028. (b) The comic is pointing out the flaw of multiple testing or what’s sometimes called data mining. (The bad type of data mining, there is also a good type.) A significance level of 0.05 means that in 20 experiments where H0 is true we’d expect to reject it once. The scientists test 20 colors. So even if no jelly bean color causes cancer there is a high probability that one of the tests will produce a test statistic in the rejection region. The fix is to plan on doing n tests and set the significance level for any one test to α/n. Then, assuming H0 is true for all the tests, the probability that at least one of them will reject is roughly n ∗α/n = α. This is called the Bonferroni correction. (Actually, because of the possibility of multiple rejections the probabilitiy at least one will reject is less than or equal to α. Normal approximation to problem 1 (e). We use that binomial(n, θ) ≈ N(nθ, nθ(1 − θ)). The normal approximation introduces some error, but we can compute n directly instead of needing to search through a sequence of possible values. For α = 0.05 and θ= 0.5 the critical values are √ n c0.025 = n(0.5) + z0.025 2 c0.975 = n(0.5) − z0.025 √ n 2 So when θ= 0.55 √ n √ n n n power = P x ≤ 2 − z0.025 | θ = 0.55 + P x ≥ 2 + z0.025 | θ= 0.55 2 2 Standardizing assuming θ= 9.55: z = x − n(0.55) J n(0.55)(0.45) A little algebra gives statisticshomeworkhelper.com
  • 12. √ √ n n n/2 − z 0.025 −n(0.55) n/2 + z 0.025 −n(0.55) 2 2 power ≈ P z ≤ J + P z ≥ J n(0.55)(0.45) n(0.55)(0.45) √ √ n n −0.05n − z 0.025 −0.05n + z 0.025 2 2 = P z ≤ J + P z ≥ J n(0.55)(0.45) n(0.55)(0.45) For n large the left hand probability is essentially 0. So to get power = 0.9 we need √ n −0.05n + z 0.025 2 P z ≥ J = 0.9 n(0.55)(0.45) That is √ n −0.05n + 2 z0.025 J n(0.55)(0.45) = z0.9 Using z0.025 = 1.96 and z0.9 = −1.2816 and solving for n we get n = 1047, which is very close to the exact answer of 1055. statisticshomeworkhelper.com