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...
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...
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...
Perform all the steps for ALL PARTS (a - d) in R code and show and...
Perform all the steps for ALL PARTS (a - d) in R code and show and explain the results. Thank you. Problem 2.23 Consider the simple linear regression model y = 50 + 10x + E where E is NID(0,16). Suppose that the n = 20 pairs of observations are used to fit this model. Generate 500 samples of 20 observations, drawing one observation for each level of x = 0.5,1, 1.5, 2, ..., 10 [i.e. going up by an...
This is all one question Part 1 Suppose you want to buy a stock in a...
This is all one question Part 1 Suppose you want to buy a stock in a firm called “Infinity” the firm states that they expect to pay you $1 per year forever. What is a fair price for this stock if an investment in similar firms return 5% per year? (The computation is based on time value of money computations we learned in Chapter 5. Hint: Is this a perpetuity, if so how would you value it (what is the...
In R, if I have a plot of LIFE against BIRTH and I want to specifically...
In R, if I have a plot of LIFE against BIRTH and I want to specifically mark the point corresponding to STATE "AK" as red colour(the rest of the points as black color), what R command should we use? "STATE" "MALE" "BIRTH" "DIVO" "BEDS" "EDUC" "INCO" "LIFE" AK 119.1 24.8 5.6 603.3 14.1 4638 69.31 AL 93.3 19.4 4.4 840.9 7.8 2892 69.05 AR 94.1 18.5 4.8 569.6 6.7 2791 70.66 AZ 96.8 21.2 7.2 536.0 12.6 3614 70.55 CA...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT