answer this question simple method and step by step
a)
We have the data on the quantity sold and the price in 10 different periods.
As we are asked to construct a linear relationship between quantity sold and price, we can write them in a generic fashion as follows:
Now, the idea of linear regression is to estimate the value of
the dependent variable when we are given definite values of the
independent variable. But before we can do that, we have to
estimate the values of and
, to
derive their estimated counterparts, which we write as
and
.
Now these values of
and
would be then used in the estimated equation to derive the
estimated relationship between Q and P, written as (in generic
form) :
Note that the refers
to the estimated value of the quantity sold, as we plug in
different values of P. We will derive the values of
and
from the information / data that we have gotten.
Now, the idea of least squares method which is applied in this
regression tries to minimise the sum of squares of the estimated
error
=
=
Taking partial derivatives of this above quantity with respect
to
and
,
setting them 0 and solving for the values of
and
,
yields the following OLS estimators :
and,
In order to obtain the values of
and
,
we have to use the data from the problem:
Qi | Pi | |||
280 | 10 | (10-10)(280-300)=0 | 0 | 400 |
330 | 8 | (8-10)(330-300)=-60 | 4 | 900 |
240 | 14 | (14-10)(240-300)=-240 | 16 | 3600 |
330 | 6 | (6-10)(330-300)=-120 | 16 | 900 |
360 | 8 | (8-10)(360-300)=-120 | 4 | 3600 |
260 | 14 | (14-10)(260-300)=-160 | 16 | 1600 |
200 | 18 | (18-10)(200-300)=-800 | 64 | 10000 |
300 | 8 | (8-10)(300-300)=0 | 4 | 0 |
380 | 4 | (4-10)(380-300)=-480 | 36 | 6400 |
320 | 10 | (10-10)(320-300) =0 | 0 | 400 |
Now,
is
gotten as
100/10 = 10
is
gotten as
3000/10=300
Now,
= -1980
=
160
hence,
= (-1980)/160 = -12.375
And,
= 300-(-12.375)(10) = 423.75
Hence, the estimated model is given as:
This is the estimated linear relationship between Q and P.
b)
In order to derive the R2 (which is coefficient of determination), we can simply find the correlation coefficient and find it's square term.
Correlation coefficient is given as :
= 27800 is gotten from the above table
So ,
or,
or,
Thus,
Thus, R2 is computed as 0.8813
To calculate the t statistic, we have to calculate the test statistic :
[-
E(
)
] / standard error (
)
or,
[-
] / standard
error (
)
,
and under the null hypothesis, H0 : = 0 ,
we can rewrite the test statistic as :
/
standard error (
)
So, we have to find var ()
and find it's square root to get the denominator :
var ()
=
= 160/10 = 16
Thus, standard error is square root of 16, i.e. 4.
Hence, the required t statistic is :
/
standard error (
)
= -12.375 /4 = -3.09375
Now, we have to compare this value of test statistic obtained from the t table against 95% level at 8 degrees of freedom (i.e. critical value)
If the mod value of test statistic is greater than the critical value, then we reject the null hypothesis, else we fail to reject it.
The critical value is = 2.306
As the (mod value) of test statistic is greater than the
critical value thus obtained, thus we reject the null hypothesis.
Thus, we conclude that
is significantly different from 0. Or, in other words, P has a
significant role in defining Q.
c)
If P=30, put in the estimated equation to get the corresponding Q.
Thus,
= 423.75 - 12.375 (30)
= 52.5
answer this question simple method and step by step 10 product. 2013 Koong Manufacturing has collected...
Question 2 A research firm collected data on a sample of n= 30 drivers to investigate the relationship between the age of a driver and the distance the driver can see. The data is given below: Age Distance Age Distance 18 510 55 420 20 590 63 350 22 560 65 420 23 510 66 300 23 460 67 410 25 490 68 300 27 560 70 390 28 510 71 320 29 460 72 370 32 410 73 280...
please answer question 7 (confidence interval).
(14 points) Birth weight and gestational age. The Child Health and Development Studies considered pregnancies among women in the San Francisco East Bay area. Researchers took a random sample of 50 pregnancies and used statistical software to construct a linear regression model to predict a baby's birth weight in ounces using the gestation age (the number of days the mother was pregnant). A portion of the computer output and the scatter plot is shown...
01:37:49 Question 2of 28 Step 1 of 4 A regression Analysis has been performed to estimate the model and the output is given. Regression Statistics 91092 82977 80140 23581 ultiple R justed R Square tandard Error bservations 8 ANOVA gnificance F 00165 df SS 24652 gression esidual otal 1,62635 0.05561 1,62635 33365 96000 -Upper 95% tStat 1430070 -5.40789 P-value 0.00001 00165 Lower 95% tandard Error 22648 13923 fficients 23882 0.75294 Ne Prev 68465 1.09362 9300 41226 ntercept iles Step 1...
all part of one big question. please answer parts 5-10 and
show work
The problem and the data: A pharmaceutical company has developed a new drug designed to reduce a smoker's reliance on tobacco. Since certain dosages of the drug may reduce one's pulse rate to dangerously low levels, the product-testing division of the pharmaceutical company wants to model the relationship between decrease in pulse rate, y (beats per minute), and dosage, (cubic centermeters). Different dosages of the drug were...
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...
In the market for televisions, the price of a television falls and nothing else changes. Price (dollars per television) Show the effect of this change o os Choose between the following Use the single arrow tool to draw an arrow on the demand curve showing the direction of movement along the line OR Use the line tool to draw a new demand curve Only one of the effects is correct, and you must determine which is the appropriate one to...
I
had a question about Step 5-9. I already completed the general
journal with the entries into the general ledger. Now I need help
creating the adjusted trial balance, I cant get it to equal to
$20,743. Also, I need help completing the financial statements:
income statements, statement of owners equity, and a balance sheet.
*Net Income has to equal $1024 and total assets has to equal
$18,354.
The
question is how can I balance out my adjusted trial balance...
In C++ Programming: Using a single for loop, output the even numbers between 2 and 1004 (inclusive) that iterates (loops) exactly 502 times. The outputted numbers be aligned in a table with 10 numbers per row. Each column in the table should be 5 characters wide. Do not nest a loop inside of another loop. Hint: First create and test the code that output the numbers all on one line (the command line will automatically wrap the output to new...
1. Many companies use a incoming shipments of parts, raw materials, and so on. In the electronics industry, component parts are commonly shipped from suppliers in large lots. Inspection of a sample of n components can be viewed as the n trials of a binomial experimem. The outcome for each component tested (trialD will be that the component is classified as good or defective defective components in the lot do not exceed 1 %. Suppose a random sample of fiver...