Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Generate a 1000 x 5 matrix of Unif(2,8) random numbers. (a) Let U be your matrix and let ui, i 1,...,5, be the columns

image text in transcribed

4. Generate a 1000 x 5 matrix of Unif(2,8) random numbers. (a) Let U be your matrix and let ui, i 1,...,5, be the columns of U. Compute the sample means and variances of ui's using the function apply(). What are the two numbers they estimate? Explain. Round your answers to two decimal places using the function round(). (b) Recompute the sample variances of u;'s using the apply() function twice and the sweep() function once in a single line of command as we did in class. Check if the variances agree with those from part (a)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions