# Question 1 suppose wed like to use hypothesis testing

• Homework Help
• 16
• 93% (180) 168 out of 180 people found this document helpful

This preview shows page 10 - 12 out of 16 pages.

Question 1.Suppose we’d like to use hypothesis testing to shed light on this question. We’vewritten down an alternative hypothesis below. What is a reasonable null hypothesis?Question 2.What’s a good test statistic for this hypothesis test?
Question 3.Write a function calledlanding_test_statistic. It should take two arguments:an "x" location and a "y" location (both numbers). It should return the value of your test statisticfor a landing at those coordinates.
Question 4.The next three cells compute a P-value using your test statistic. Describe the testprocedure in words. Is there a simulation involved? If so, what is being simulated? If not, whynot? Where are we getting the data from? What kind of calculations are being performed? Howare we calculating our p-value?Hint:Think about what asimulationactually consists of.10
In :observed_test_stat=landing_test_statistic(landing_spot.item(0),landing_spot.item(1))observed_test_statOut:86.31440320131978In :null_stats=make_array()repetitions=ordinary_landing_spots.num_rowsforiinnp.arange(repetitions):null_stat=landing_test_statistic(ordinary_landing_spots.column('x').item(i),ordinary_landing_spots.column('y').item(i))null_stats=np.append(null_stats, null_stat)null_statsOut:array([ 7.0373003 , 37.04323884, 28.24132651, ..., 20.84023432,32.48926398, 23.88691421])In :p_value=np.count_nonzero(null_stats>=observed_test_stat)/len(null_stats)p_valueOut:0.012727272727272728

Course Hero member to access this document

Course Hero member to access this document

End of preview. Want to read all 16 pages?

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Null hypothesis, Hypothesis testing, Statistical hypothesis testing, Spacey
• • • 