Question

In: Statistics and Probability

i want all part in R code (1) The purity of oxygen produced by a fractionation...

i want all part in R code

(1) The purity of oxygen produced by a fractionation process and the percentage of hydrocarbons in the main condensor of the processing unit, (2) The weight and systolic blood pressure of a group of males in the age group 25-30, (3) The number of pounds of steam used per month at a plant and the average monthly ambient temperature. Answer the following questions for each data sets. (i) Draw the scatter plot. (ii) Fit a simple linear regression model and draw the fitted regression line in the scatter plot. (iii) Report the fitted values and corresponding residuals. (iv) Calculate the coefficient of determination and comment. (v) Test whether intercept of the above model is zero. (vi) Test whether slope of the above model is zero. (vii) Construct analysis-of-variance table and comment. (viii) Find 95% confidence interval on the intercept. (ix) Find 95% confidence interval on the slope. (x) Find 95% confidence interval on the mean purity, symbolic blood pressure and steam usage when the hydrocarbon percentage, weight of a male in the age group 25-30 and average monthly ambient temperature are 1, 160 and 58 unit respectively. (xi) Find 95% prediction interval on the purity, symbolic blood pressure and steam usage when the hydrocarbon percentage, weight of a male in the age group 25-30 and average monthly ambient temperature are 1, 160 and 58 unit respectively. (xii) Compute and plot 95% confidence and prediction bands around the fitted line. (xiii) Which is the wider band and why?

p H
86.91 1.02
89.85 1.11
90.28 1.43
86.34 1.11
92.58 1.01
87.33 0.95
86.29 1.11
91.86 0.87
95.61 1.43
89.86 1.02
96.73 1.46
99.42 1.55
98.66 1.55
96.07 1.55
93.65 1.4
87.31 1.15
95 1.01
96.85 0.99
85.2 0.95
90.56 0.98

Solutions

Expert Solution


Related Solutions

code in python I want to make a function that adds all the multipliers together. The...
code in python I want to make a function that adds all the multipliers together. The code is posted below and please look at wanted output section to see what I want the code to output. The last line of the code is the only addition I need. Thanks. Code: initial=int(input("Initial value : "))       #taking inputs multiplier=float(input("Multiplier : ")) compound=int(input("No of compounds : ")) print("Your values are:") mult=initial                         #initalizing to find answer for i in range(0,compound):         #multiplying by multiplier    ...
this is my code I want the opposite i want to convert a postfix expression to...
this is my code I want the opposite i want to convert a postfix expression to infix expression #include <iostream> #include <string> #define SIZE 50 using namespace std; // structure to represent a stack struct Stack {   char s[SIZE];   int top; }; void push(Stack *st, char c) {   st->top++;   st->s[st->top] = c; } char pop(Stack *st) {   char c = st->s[st->top];   st->top--;   //(A+B)*(C+D)   return c; } /* function to check whether a character is an operator or not. this function...
I am using the phbirths data in the faraway package in R. I want to: 1)...
I am using the phbirths data in the faraway package in R. I want to: 1) create a plot of the birth weight vs the gestational age and I want to colour code the points based on the mothers smoking status to determine whether or not smoking affects the babies. 2) fit a simple model (one regression line) along with both the main effects (parallel lines) and interaction (non parallel lines) ANCOVA model to the data and find out which...
C++ program, include comments stating what each part of code does please. I want to be...
C++ program, include comments stating what each part of code does please. I want to be able to understand it so I'll be more knowledgeable in the future. The program is multiple files(fibonacci.h file, fibonacci.cpp file, main.cpp file and loops_simple_data_test.cpp). After the directions I also included any starter code or comments left by my professor within the files to aide us. Directions: In folder 04_loops_simple_data write prototype and definition for string value - return function get_fibonacci with an int parameter...
i want R code for draw this density (pdf) Ailamujia poisson distribution Ailamujia logarithic distribution Ailamujia...
i want R code for draw this density (pdf) Ailamujia poisson distribution Ailamujia logarithic distribution Ailamujia Geometric distribution
Part 2– R work (must be done in R) Copy and paste your R code and...
Part 2– R work (must be done in R) Copy and paste your R code and output into a word document, along with your written answers to the questions, and upload to Canvas.   Follow these instructions to import the necessary dataset: Before opening the dataset needed for this problem, you’ll need to call the “car”package.  Run the following line of code: > library(car) Now you can import the “Prestige” dataset and use it to answer the question below. Name the data...
I want this to be solved using R studio or R software, please. Here is the...
I want this to be solved using R studio or R software, please. Here is the example: The data in stat4_prob5 present the performance of a chemical process as a function of sever controllable process variables. (a) Fit a multiple regression modelrelating CO2product (y) to total solvent (x1) and hydrogen consumption (x2) and report the fitted regression line. (b) Find a point estimatefor the variance term σ2. (c) Construct the ANOVA tableand test for the significance of the regression using...
Python: I want to make the following code to prompt the user if want to run...
Python: I want to make the following code to prompt the user if want to run the software again. I am new to python, so i do not know if it works like c++. If can explain that would be much appreciated base = float(input("Enter base of the triagle: ")) Triangle_Right = float(input("Enter right side of the triagle: ")) Triangle_Left = float(input("Enter left side of the triagle: ")) height = float(input("Enter the height of the triangle: ")) perimiter = base...
How do I calculate the total of all invoices? Here is my code: # Part F...
How do I calculate the total of all invoices? Here is my code: # Part F Calculate the total of invoices invoices=[] invoices.append((83,'Electric Sander',7,57.98)) invoices.append((24,'Power Saw',18,99.99)) invoices.append((7,'Sledge Hammer',11,21.50)) invoices.append((77,'Hammer',76,11.99)) invoices.append((39,'Jig Saw',3,79.50)) print('\nThe total of all invoices is', invoice) for invoice in invoices: print(invoice)
in R To explore the characteristics of a Type I error rate, write the R code...
in R To explore the characteristics of a Type I error rate, write the R code to do the following: (a) Generate 30 values from X~N(μX =10,σX=4) and 30 values from Y~N(μY =10,σY=4). Do not print any of these values. Use a t-test to test the hypotheses given above. (You are allowed to use the built-in R function to perform the t-test.) (b) Include a comment in your code that identifies the p-value and clearly state the conclusion of the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT