Question 1 suppose wed like to use hypothesis testing

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 [15]:observed_test_stat=landing_test_statistic(landing_spot.item(0),landing_spot.item(1))observed_test_statOut[15]:86.31440320131978In [16]: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[16]:array([ 7.0373003 , 37.04323884, 28.24132651, ..., 20.84023432,32.48926398, 23.88691421])In [17]:p_value=np.count_nonzero(null_stats>=observed_test_stat)/len(null_stats)p_valueOut[17]:0.012727272727272728

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 16 pages?

Upload your study docs or become a

Course Hero member to access this document

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

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture