🎓 First order? Get 25% OFF — use code BISHOPS at checkout  |  💬 Chat on WhatsApp
Home / UAE Services / Assignment #2
🇦🇪 UAE Writing Services

Assignment #2

Assignment #2 Due Date: November 15th, 11:59pm This assignment is worth 10% of your final grade and has 4 sections. Please save all your code for this assignment as a…

Order This Service Now ★★★★★ 4.9/5  |  1,280+ Reviews
✓ Plagiarism-Free Guarantee ✓ UAE Academic Standards ✓ Deadlines from 3 Hours ✓ Free Revisions for 14 Days ✓ Money-Back Policy ✓ 100% Confidential
best essay writing service uk student room affordable dissertation writing service best custom essay writing services best dissertation writing services uk best online essay writing services

Assignment #2
Due Date: November 15th, 11:59pm
This assignment is worth 10% of your final grade and has 4 sections. Please save all your code for this assignment as a .R file and name that file:
“assignment_2_lastname_firstname.R”. If your .R file is not correctly named, you will lose 0.5 mark. Be sure to save while you write your code for this assignment. Please number each part in your assignment in the form of a comment. At the top of your code, please comment your name, student number, and “Assignment #2”.
Section 1.
Part 1.1. We have created three lines of code that you will need to run at the beginning of your R code. Each line of code will produce 20 numbers and you will need to create a vector with these numbers and assign it the appropriate name (please see below). Please only run these lines of code once. Please note that each student will receive a
random set of numbers (i.e. your numbers will not be the same as any of your classmates). (0.75 mark)
• sample(160:200, 20, replace=TRUE) o assign the above 20 numbers to the name ‘height’.
• sample(50:113, 20, replace=TRUE) o assign the above 20 numbers to the name ‘weight’.
• sample(0:1260, 20, replace=TRUE) o assign the above 20 numbers to the name ‘exercise_minutes’.
Part 1.2. Using the three vectors produced in Part 1.1, create a dataframe and name this dataframe ‘df’. Once you create this dataframe, it will appear in your Global
Environment and this dataframe should contain 20 observations and 3 variables (0.25 mark).
Section 2.
Part 2.1. Last week, you learned about covariance and correlation in the online lecture. You will now apply what you learned in this assignment. In the next parts, you will be calculating the correlation coefficient of the ‘weight’ and ‘exercise_minutes’ variables. (There are no marks for this part, this is just a description.)
Part 2.2. Plot a histogram of each variable in the ‘df’ dataframe, comment the shape, and any other relevant commentary about each histogram. (2.25 marks)
Part 2.3. Calculate the mean, median, and standard deviation of each of the variables, provide these values as comments, and comment how they relate to the histogram. (3 marks)
Part 2.4. Create a new variable (i.e. column) in the ‘df’ dataframe and name this column ‘new_variable1’. This variable should contain the values calculated using the following calculation: (???? – ??¯), where ???? is each value in the ‘weight’ variable (i.e. ??1 is the first value of the ‘weight’ variable) and ??¯ is the mean of all the values in the ‘weight’ variable. (0.25 mark)
Part 2.5. Create a new variable (i.e. column) in the ‘df’ dataframe and name this column ‘new_variable2’. This variable should contain the values calculated using the following calculation: (???? – ??¯), where ???? is each value in the ‘exericse_minutes’ variable (i.e. ??3is the third value of the y variable) and ??¯ is the mean of all the values in the ‘exericse_minutes’ variable. (0.25 mark)
Part 2.6. Create a new variable (i.e. column) in the ‘df’ dataframe and name this column ‘product_2_variables’. This variable should contain the values of the product between the ‘new_variable1’ and ‘new_variable2’ columns you created in Part 2.4 and Part 2.5. (Here is the equation: (???? – ??¯)(???? – ??¯) ). (0.25 mark)
Part 2.7. In this part you will need to calculate the correlation coefficient of the ‘weight’ and ‘exercise_minutes’ variables. We have walked you through the first steps of how to calculate this coefficient in Parts 2.3-2.6. Now using those parts, the knowledge that you gained from Lecture 7, as well as the equation presented in Lecture 7 Slide 21, calculate the correlation coefficient and comment this value. Please be sure to use R to calculate the coefficient and show all your steps in this component. (1.5 marks)
Section 3.
Part 3.1. Using two built-in R functions, calculate both the covariance and correlation of the ‘weight’ and ‘exericse_minutes’ variables. Provide both values as comments. (1.0 mark)
Section 4.
Part 4.1. Please describe the direction and effect size of your correlation coefficient calculated in Part 2.7 as comments in your code. (0.5 mark)

🇦🇪 Writing for UAE Universities

  • APA, Harvard, IEEE (engineering) most common citation styles
  • UAEU, AUS, Zayed, Khalifa University, HCT formats covered
  • Academic Integrity policies: zero-tolerance for plagiarism
  • Both British English and American English accepted
  • MOE (Ministry of Education UAE) curriculum requirements understood

UAE Pricing Guide

Academic Level
14 Days
7 Days
24 Hours
Undergraduate
from AED 40per page
from AED 50per page
from AED 70per page
Bachelor's
from AED 46per page
from AED 59per page
from AED 80per page
MastersPopular
from AED 62per page
from AED 77per page
from AED 103per page
PhD/Doctoral
from AED 80per page
from AED 99per page
from AED 129per page
Get Your Exact Quote — Order Now

Prices shown are starting rates per page (275 words). Paid in AED.

How It Works — 3 Simple Steps

1

Fill In Your Order Form

Provide your topic, academic level, deadline, referencing style, and any specific instructions or rubric criteria.

2

Get Matched with a Writer

We assign the best-qualified expert in your subject, familiar with UAE university requirements.

3

Receive & Review

Download your plagiarism-free paper, review it, and request any free revisions within 14 days if needed.

Frequently Asked Questions

Is this service plagiarism-free?

Yes. Every paper is written from scratch by a human expert to your specific instructions. We run all papers through professional plagiarism detection software and can include a Turnitin-equivalent report on request.

Do your writers know UAE academic standards?

Yes. Our writers are familiar with UAE's university systems, citation styles, and marking conventions. You'll get a paper that meets your institution's exact expectations.

What citation styles do you support for UAE?

We support all major citation styles required by UAE universities, including APA 7th, Harvard, Chicago/Turabian, MLA, OSCOLA, Vancouver, and IEEE.

Can you write just one chapter of my dissertation?

Yes. We write individual dissertation chapters — literature reviews, methodology, data analysis, introductions, conclusions — or the full manuscript from proposal to defence-ready submission.

📄 Combined UGV and Teleoperated System 📄 The purpose of this report is to analyze 📄 Lightweight cryptography related thing 📄 Victim of Privacy on personal level

Order Your UAE Paper Now

Get expert help from a writer who knows UAE university standards. First order? Use code FIRST15 for 15% off.

Place My Order