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

  Track the following employee information

A local company is starting that will provide pet sitting services for the local community. This company will provide in-house and daily pet sitting services for dogs, cats, fish, birds and reptiles. Each of their employees is insured and are certifi..

  Mission and values of better world books

What are the mission and values of Better World Books? Critically evaluate their usefulness to the company's management in formulating strategy.

  Stage of ec purchase decision-making process

Banner advertising on Websites helps trigger a realization taht there is a gap between reality and a desired state, which occurs in the ______ stage of the EC purchase decision-making process.

  What are advantages and disadvantages of immediate update

Discuss the immediate update recovery technique in both single-user and multiuser environments. What are the advantages and disadvantages of immediate update?

  Massively multiplayer online role-playing games

In a virtual world (VW) of massively multiplayer online role-playing games (MMORPGs), collaboration and communication are provided through the Internet between MMORPG-ready devices such as the Microsoft Xbox, and Sony PlayStation, and by using the..

  Design and test using logic works a dual-output function

Design and test using Logic Works a dual-output function to implement a full-adder in Sum-of-Products form. Show the transistor count on your schematic. For bonus points optimize the circuit to minimize transistor count.

  Determine the frequency (in hz)

A. Determine the frequency (in Hz) and the period (in s) for the sinusoidal wave described in the last problem. B. An oscilloscope shows a wave repeating every 27 ms. What is the frequency of the wave?

  Describe the skills or knowledge a project manager need

Describe the categories into which you would divide your attribute.

  Discussion-comparing and contrasting economic systems

Natural disasters and wars are crises that impact every type of economy, regardless of economic system. All types of economic systems struggle to respond quickly to such destruction.

  Display the total amount due

A furniture store is having a customer appreciation sale. Depending on the total dollars purchased, the customer could receive a discount on his or her total purchases. You are to develop pseudocode or C# code that will obtain the total dollars pu..

  Candidates through employee referral method

Is it a good policy to pick up candidates through employee referral method? Why? Or why not? Explain keeping the course in background.

  The various email options for your server

Go to section II of the Red Hat Linux Reference Guide. Read all the sections and work with your Fedora Linux installation. Then answer the following questions in a 3 to 5 page paper and provide evidence you have tested your Linux OS accordingly.

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