Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Applied Statistics Expert

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

Applied Statistics, Statistics

  • Category:- Applied Statistics
  • Reference No.:- M92278522

Have any Question?


Related Questions in Applied Statistics

Linear project instructions -curve-fitting project - linear

Linear Project instructions - Curve-fitting Project - Linear Model For this assignment, collect data exhibiting a relatively linear trend, find the line of best fit plot the data and the line, interpret the slope, and us ...

Business data analysis computer assignment -part 1

Business Data Analysis Computer Assignment - PART 1 - Economists believe that high rates of unemployment are linked to decreased life satisfaction ratings. To investigate this relationship, a researcher plans to survey a ...

Quantitative methods in health statistical analysis report

Quantitative Methods in Health Statistical Analysis Report - Question 1 - Are you a Lark or an Owl? Studies indicate that about 10% of us are morning people (Larks) while 20% are evening people (Owls) and the rest are no ...

Business statistics project assignment -there will be two

BUSINESS STATISTICS PROJECT ASSIGNMENT - There will be two parts to this assignment: Part A: Group Work (A Business Report) Part B: Individual Reflective Piece (A Ministerial Brief) The response to Part A must be provide ...

Question onea a factory manager claims that workers at

QUESTION ONE (a) A factory manager claims that workers at plant A are faster than those at plant B. To test the claim, a random sample of times (in minutes) taken to complete a given task was taken from each of the plant ...

Business statistics project -problem description the

BUSINESS STATISTICS PROJECT - Problem Description: The blockchain is a decentralized ledger of all transactions across a peer-to-peer network. Using this technology, participants can confirm transactions without a need f ...

Assignment -in this assignment ms excel must be used to

Assignment - In this assignment MS Excel must be used to perform any calculations/graphical presentations as required in this assignment. Question 1 - Below you are given the examination scores of 20 students (data set a ...

Go to the institute for healthcare improvement ihi website

Go to the Institute for Healthcare Improvement (IHI) website for their Improvement Map (URL located in the Webliography). Select an improvement process of your choice. Present at least 3 quality paragraphs to the class a ...

Assignment -for each of the prompts below report the

Assignment - For each of the prompts below, report the appropriate degrees of freedom, t statistic, p-value and plot using the statistical software platform of your choice (R/STATA) 1) A sample of 12 men and 14 women hav ...

Question - go to the website national quality forum nqf

Question - Go to the website, National Quality Forum (NQF), located in the Webliography, and download the article by WIRED FOR QUALITY: The Intersection of Health IT and Healthcare Quality, Number 8, MARCH 2008. You are ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As