
hello
this is about linear regression
i want answer the question using R
write the results and command of R
Answer -(a)-
here x taken as a dependent variable and y taken as a independent variable run the lm() function in R software for the simple linear regression .Below given the screen shot of R window and define command as well.

Hence using the output data fited model can formed as
y= 91.564 + 32.50x
ANS-(b)
Use the sqrt() command in R to transform the y variable like
..................(step-1)(follow this
step for other transformation like log(y)
then use the regression analysis process in the same manner

ANS (c)
when using y coeff of det. = 0.9798 and when taking square root of the y it becames 0.9891 much nearer to 1 since it can say after the transformation model is much precisesly predict the future values and model is good fit.
Ans(d)
put X=12 in each model
eg. in model two Y' = 10.26093+ 1.07629 * 12 = 23.17641
Y^1/2 = 23.17641
then Y = 537.146
hello this is about linear regression i want answer the question using R write the results...
(Do this problem without using R) Consider the simple linear regression model y =β0 + β1x + ε, where the errors are independent and normally distributed, with mean zero and constant variance σ2. Suppose we observe 4 observations x = (1, 1, −1, −1) and y = (5, 3, 4, 0). (a) Fit the simple linear regression model to this data and report the fitted regression line. (b) Carry out a test of hypotheses using α = 0.05 to determine...
R is a little difficult for me, please answer if you can
interpret the R code, I want to learn better how to interpret the R
code
4. each 2 pts] Below is the R output for a simple linear regression model Coefficients: Estimate Std. Error t value Pr(>t) (Intercept) 77.863 4.199 18.544 3.54e-13 3.485 3.386 0.00329* 11.801 Signif. codes: 0 0.0010.010.05 0.11 Residual standard error: 3.597 on 18 degrees of freedom Multiple R-squared: 0.3891, Adjusted R-squared: 0.3552 F-statistic: 11.47...
Part 1: Model Building 1. Submit both this word and excel file 2. Keep two decimal places for your answer Using the data Reynolds.xls. The variables are defined as: Sales (Y) =number of electronic laboratory scales sold Months (X) =the number of months the salesperson has been employed 1. Develop the scatter plot using Sales as y axis and Months as x axis, and can you see the curvature? 2. Using a simple linear regression model to develop an estimated...
1. For each of the following regression models, write down the X matrix and 3 vector. Assume in both cases that there are four observations (a) Y BoB1X1 + B2X1X2 (b) log Y Bo B1XiB2X2+ 2. For each of the following regression models, write down the X matrix and vector. Assume in both cases that there are five observations. (a) YB1XB2X2+BXE (b) VYBoB, X,a +2 log10 X2+E regression model never reduces R2, why 3. If adding predictor variables to a...
Help & explain please
Regression 1. A researcher is willing to investigate whether there is any linear relation bet ween income (x) in thousand dollars and food expenditures (y) in hundred dollars. A sample data on 7 households given the table below was collected. Assuming that a linear model is used to solve the problem. r-3-D) r-I 83 24 13 61 15 17 1. Write down the linear model 2. Write down the fitted regression line and Interpret the slope...
We will be analyzing the built-in R dataset: ‘AirPassengers'. Carefully read through all the R code and associated output below. library(forecast) ## Registered s3 method overwritten by 'quantmod': ## method from ## as.zoo.data.frame zoo library(ggplot2) We first look at the time series data: ##AirPassengers time series AirPassengers ## Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ## 1949 112 118 132 129 121 135 148 148 136 119 104 118 ## 1950 115 126 141 135...
Please answer the whole question, I need them all
I will give thumbs up
This is should be the
TAMPALMS.txt (1.292 KB)
Property Market_Val Sale_Price
1 181.44 382.0
2 191.00 230.0
3 159.83 220.0
4 189.22 277.0
5 151.61 205.0
6 166.40 250.0
7 157.09 235.0
8 211.74 284.0
9 146.45 247.7
10 131.80 159.0
11 131.05 200.0
12 191.98 285.0
13 138.85 170.0
14 147.95 215.0
15 121.98 149.0
16 113.08 165.0
17 138.02 205.0
18 162.65 262.5
19 ...
Hi it's python I imported a data which are so many words in txt
and I arranged and reshaped with alphabetically both rows and
columns
I was successful with these steps but I am stuck with next
step
below is my code and screenshot
import numpy as np
import pandas as pd
data=pd.read_csv("/Users/superman/Downloads/words_file2.txt",header=None)
df_input=pd.DataFrame(data)
df_output=pd.DataFrame(np.arange(676).reshape((26,26)),
index =
['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'],
columns =
['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'])
df_output.index.name="Start"
df_output.columns.name="End"
df_output
This below screen shot is what I have to find
I have to find each word...