You should submit your report in ONE file (in PDF or MS Word format). Your report must contain the original R code, with outputs and a clear statement of the final answer. Partial
points will be rewarded only when you have the correct R code. Font size should be 10 - 12pt and plots (if any) should be clearly labeled.
R code:
x=c(11,12,13,14,15,16,17,18,19,20) # values of independent
variable
y=c(30,29,29,25,24,24,24,21,18,15) # values of dependent
variable
n=length(x) # no. of pair observations
s_xx=sum(x^2)-(sum(x))^2/n
s_yy=sum(y^2)-(sum(y))^2/n
s_xy=sum(x*y)-(sum(x)*sum(y))/n
bar_x=mean(x)
bar_y=mean(y)
sign=0
if(s_xy>0){
sign=1
} else{
sign=-1
}
beta1=(s_yy-s_xx+sign*sqrt((s_xx-s_yy)^2+4*s_xy^2))/(2*s_xy)
beta0=bar_y-beta1*bar_x
beta0
beta1
You should submit your report in ONE file (in PDF or MS Word format). Your report...
FINAL Project 1-) Please submit the solution of your final as Ms-word or PDF document 2-) Complete THREE QUESTIONS out of the four exam questions below. 3-) FOR EACH QUESTION, IT IS REQUIRED to include Ms-Word or Pdf file contains the following A. Source file and sample of your output screen shots. B. Up to one page of your program discussion. In the discussion, state the issues that you may have problem with if there is any. Why your program...
Create a NOTEPAD or PDF file that restates the problem in your own words, specifies what input is needed, what output is expected, the step by step process (algorithm) to get the output from the input, and test data (input for which you know the expected output) for each of the 3 problems given below. You should not write any actual C++ code. Make sure the problem statement is in your own words and is descriptive enough so someone not...
PLEASE ANSWER QUESTION 1 & 2. ALSO PLEASE SUBMIT CODE + PDF OF REPORT/ASSIGNMENT Problem1 You are choreographing a circus show with various animals. For one act, you are given two kangaroos on a number line ready to jump in the positive direction (i.e, toward positive infinity). The first kangaroo starts at location z1 and moves at a rate of vl meters per jump. The second kangaroo starts at location z2 and moves at a rate of u2 meters per...
You are required to create a robot path planner that is able to find an optimal path to navigate an environment and reach a target. By completing this assessment, you will show your skills on leveraging the best algorithm to solve a simplified real-world problem.The maze can be seen in the image below. It can be seen that there are 12 rows and 24 columns, meaning there is a total of 288 blocks on the map. There are four different...
please answer the following using the r code provided . The data set below contains information about the gasoline mileage performance for 32 au- tomobiles. We are interested in developing a model to predict the miles per gallon () using related predictor variables. The variables in the study are Dependent variable: Miles per gallon (v) Independent variables: ri horsepower (ft-lb) ra: torque (ft-lb) r: horsepower+torque (ft-lb) rs: carburetor (barrels) (a) We first start by fitting a model using y and...
INSTRUCTIONS: After reading the attached article, How To Reskill Your Workforce For AI (Artificial Intelligence).pdf your job is to provide a very brief summary, analysis, and evaluation. We can define these important concepts as follows: Summary- A formal, logical, consistent way of highlighting the main points. Purpose: In school - to quickly and accurately describe something you have read In professional life - to provide a faster-to-read version of the material to other readers In personal life - to reflect...
PYHTON CODING FUNCTIONS HELP Part 2. Also need help with these last functions. Requirements/restraints and the map referred to is pictured in the screenshot. Need help with these 4 tasks: Function 4: def is_map(map) : given a map (see screenshot), does it meet the following criteria? 1) it is a list of lists of values of type int; 2) it has at least one row and one column; 3) it’s rectangular (all sub-lists are same length); 4) only non-negative ints...
In this lab, a piece of working software is given. You are asked to make changes to the software according to some requirement. The scenario in this lab mimics the situation that most old software applications are facing---need to update. When covering inheritance and polymorphism, we introduced a pattern that has three elements: instanceof operator, base pointers, and a collection data structure. In the given code, the collection used is a dynamic array (will change its length automatically) called Vector....
I need this in C++. This is all one question. Introduction Your eighth assignment will consist of two programs, which will involve the use of simple classes. The source code for these problems should be submitted using the naming conventions we specified in class. Please note that your computer programs should comply with the commenting and formatting rules as described in class. For example, there should be a header for the whole program that gives the author's name, class name,...
The Acme Trucking company has hired you to write software to help dispatch its trucks. One important element of this software is knowing the distance between any two cities that it services. Design and implement a Distance class that stores the distances between cities in a two-dimensional array. This class contains the following required data members and methods: Required Data Members: String[] cities; //it is used to store city names int[][] distance; // this 2-D array repreents distance between two...