Numbers using two different algorithms

Assignment Help Basic Computer Science
Reference no: EM131255917

Consider a vector x, containing integers from 1 to 10.x<-1:10Write an R code which computes the standardard deviation of these 10 numbers using two different algorithms. You are not allowed to use the sd or var function in R.The first algorithm must use a for loop. The second algorithm is not allowed to use a loop. Instead, it should use the basic vector/matrix operations directly. The second algorithm may be as short as one line. Work on an R script (or document, or betik), save as an R file (name something like: nameLastnameHW1.R) and upload.

Reference no: EM131255917

Questions Cloud

What are some outsourcing opportunities in a restaurant : What are some outsourcing opportunities in a restaurant? -  What supply chain issues are unique to a firm sourcing from 35 countries?
Compute the average volume per chip formed in the grinding p : A high-speed steel broach (hardened) is to be resharpened to achieve a good finish. Specify the appropriate parameters of the grinding wheel for this job.
What were the effects on patients and on the community : From colonial times through the 1960s, the primary mode of mental illness treatment was institutional. In the 1960s, mental health treatment shifted to a community-based orientation. Name two (2) factors responsible for this shift? What were the e..
Deduct as an itemized deduction : This year, Benjamin Hassell paid $17,850 of interest on a mortgage on his home (Benjamin borrowed $595,000 to buy the residence and it is currently worth $952,000), $14,400 on a $180,000 home equity loan on his home, and $12,000 of interest on a mort..
Numbers using two different algorithms : Consider a vector x, containing integers from 1 to 10.x
Calculate the mass percent composition of nitrogen : Calculate the mass percent composition of nitrogen in each of the following nitrogen compounds. The molar mass and empirical formula of several compounds are listed below. Find the molecular formula of each compound.
What advantages might result from outsourcing hrm practices : Staffing, training, compensation, and performance management are important HRM functions. How can each of these functions help companies succeed in meeting the global challenge, the challenge of using new technology, and the sustainability challen..
Successful project manager : Year 2022, you are a successful Project Manager and have recently hired a new internee (who haven't taken software engineering course yet) to strengthen industry-academia linkage. One day, the internee enters to your office and says "Why our cust..
Explain the purpose of project organization : Explain the purpose of project organization. -  What are the three phases involved in the management of a large project?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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