Compare running times with the function

Assignment Help Applied Statistics
Reference no: EM131469783

Problem 1.

(A comparison of running times) Write a function permIndepChisqTest(tab, B = 2000) that takes in a table of joint counts tab and returns an estimate of the permutation p-value for the Pearson statistic based on B random permutations.

Compare the running time of your function to chisq.test for the same B = 1e6.

Use the attached School Admissions data

[Hint: to compute the processing time, use the function proc.time. Try not to use your computer in other ways while performing these computations so as not to bias the results.]

Problem 2.

(Bootstrap confidence interval) Write a function bootCI(x, conf=0.99, B=1e4) that takes in one-sample numerical data in the form of a vector x, a number conf in (0,1), and a large positive integer B, and produces a bootstrap Studentized confidence interval for the mean at level conf based on B bootstrap samples.

Problem 3.

(Using the package boot) boot is one of the main packages in R implementing bootstrap methodology. Instead of writing the function from scratch as was done in Problem 2, write a function bootCIpackage(x, conf=0.99, B=1e4) based on that package to produce a bootstrap Studentized confidence interval for the mean at level conf based on B bootstrap samples. Compare running times with the function from Problem 2 above with B = 1e6.

Attachment:- Ch03_Magnet_schools.txt

Reference no: EM131469783

Questions Cloud

What is the optimal age replacement policy : Tires that fail in service result in significantly higher replacement costs than those replaced before failure. For an 18-wheeler.
Provide election coverage : When an election for political office takes place, the television networks cancel regular programming and instead, provide election coverage.
Find the optimal replacement strategy : The Navy uses a certain type of vacuum tube in a sonar scanning device. Based on past experience, the vacuum tube exhibits the following failure pattern.
Determine possible options for evaluating strategic plan : Write a 700- to 1,050-word section for your business model and strategic plan. Determine the best possible options for evaluating the strategic plan.
Compare running times with the function : Compare running times with the function - Compare the running time of your function to chisq - estimate of the permutation p-value for the Pearson statistic
What is cumulative distribution function of microprocessor : A microprocessor that controls the tuner in color TVs fails completely at random (that is, according to the exponential distribution).
How does introvert factor compare to how you see yourself : What did you learn from the results? Any surprises? How does the introvert/extravert factor compare to how you see yourself?
What is probability that transducer chosen without failure : A pressure transducer regulates a climate control system in a factory. The transducer fails according to an exponential distribution with rate one failure.
What questions did i ask manager and name at least five : What questions did I ask her? Name at least five. Describe the recommendations I made for the next steps as a new manager. Name at least five.

Reviews

Write a Review

Applied Statistics Questions & Answers

  Generate a histogram to explore the distribution of score

Generate a histogram to explore the distribution of score on the Epworth sleepiness scale (ess) - Generate a bar graph to compare scores on the sleepiness and associated sensations scale (totSAS) across three ages (agegp3) for males and females (g..

  Construct a pareto diagram that shows frequency

Use the data file DEFECTS.MTW. Construct a Pareto diagram that shows frequency of defects by type (type is in the column labeled "Describe.). Construct a Pareto diagram that shows frequency of defects by plant

  The actual amount of icing sugar

The actual amount of icing sugar that a filling machine puts into "180 gram" jars is well modeled as a normally distributed random variable with σ = 1.88 gram. If it is desired that only 1.2% (i.e. 0.012) of these jars are to contain less than 180.00..

  Linear relationship examples

Linear Relationship Examples: - Give (2) examples of where one variable can predict the results of another. - Which is independent and which is dependent?

  In a certain city the need for money to buy alcohol

In a certain city the need for money to buy alcohol is given as the reason for 60% of all thefts. What is the probability that the exactly 2 of the next 4 theft cases reported in this city did not result from the need for money to buy alcohol?

  Probability and statistics for computer science

Probability and Statistics for Computer Science Question 1 The following are the percentages of ash content in 12 samples of coal found in close proximity: 9.1, 16.5, 12.6, 16.8, 21.3, 9.6, 14.1, 22.8, 14.3, 20.4, 12.1, 18.9

  Would you characterize the relationship as small

If the proportion of systematic variance to error variance is .08, would you characterize the relationship as small, medium, or large? What if the proportion were .72? .OO?

  What is the minimum number of points one must score

If the results on a nationally administered introductory statistics exam is normally distributed with a mean of 100 points and a standard deviation of eight points determine the following: a. describe the graph of the distribution b. find at the Z sc..

  Generate the statistical process control chart

MAE 400 - Fall 2016 - Generate the statistical process control (SPC) chart for the daily averages of the data set for the 25-day period under study showing each daily average point, the mean of the distribution (X-bar), the Upper Control Limit (UC..

  Prepare a research articles from peer-reviewed journals

Select at least three research articles from peer-reviewed journals which report on research projects using inferential statistics.

  Use tukey''s test as the post hoc test for anovas

Use Tukey's test as the post hoc test for ANOVAs in this course. Be sure to check this box when you run analyses. For letters a-d, instead of identifying these values on your output, as the text states, please write them into your Word file as writte..

  Examine the effects of region of residence in northeast, sou

Examine the effects of region of residence in northeast, south, mid-west, and west and income that is low, medium, and high

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd