Question

In: Statistics and Probability

Use SAS to answer the question: Researchers have studied bears by anesthetizing them in order to...

Use SAS to answer the question:

Researchers have studied bears by anesthetizing them in order to obtain vital measurements, such as
age, gender, length, and weight. Because most bears are quite heavy and difficult to lift, researchers and
hunters experience considerable difficulty actually weighting a bear in the wild. Data in the following
table represent the body length and weight of eight male bears.

x, length (in.) 53.0 67.5 72.0 72.0 78.5 68.5 73.0 37.0
y, weight (lb.) 80 344 426 348 262 360 332 34

(a) What is the sample correlation coefficient between length and weight for these eight bears? And
test if their correlation is 0.
(b) Based on these data, does there appear to be a linear relationship between the length of a bear
and its weight? Test ?=0.01.
(c) According to your simple linear regression model, what is the estimated weight of a bear 75
inches long?

Solutions

Expert Solution

Given data set:

x y
53 80
67.5 344
72 426
72 348
78.5 262
68.5 360
73 332
37 34

Based on above data, some measures which are calculated.

Mean x,   = 65.18

Mean y, = 273.25

Standard deviation x, x = 13.57

Standard deviation y, y = 141.227

a) Formula for correlation(pearson) coefficient is:

We know all the values, Putting values in above formula we get,

r = 0.85

To compute same thing in SAS,

Let's say that above data is stored in data set bear_data

Column names: len, wgt

To get correlation, execute the below command:

proc corr data = bear_data ;
VAR len wgt ;
run;

This will give us the correlation table as output.

From above calculation it's clear that correlation is not 0

b.) To see if their is linear relationship or not we need to draw scatter plot of above data

As it is clear from above scatter plot , In almost all cases as the length increases weight also increases.

So, it is possible to draw the relationship as in the form of line. Hence we can compute linear relationship between length and weight.

To get above scatter plot in SAS:

PROC sgscatter  DATA=bear_data;
   PLOT wgt*len 
   title 'len vs wt of bear';
RUN; 

Linear Model:

The eqn will be in the following form:

y = a + b*x

where a = intercept

b = slope

Now, slope is given as:

b = r * (y / x)

b = 0.85 * 10.401

b = 8.841

For intercept the formula is:

a = - b *

a = 273.25 - 65.18 * 8.841

a = -303.006

So, equation becomes:

y = -303.006 + 8.841 * x

To get this equation in SAS:

proc reg data=bear_data;
model wgt = len /alpha = 0.01;
run;

This will produce the output in tabular form with all requierd statistics of Linear regression along with confidence interval of 99% since we have set the alpha manually.

c.) With our model, if len(x) = 75 then weight is,

y = -303.006 + 8.841 * 75

y = 360.069

This is the weight if length is 75 inches.


Related Solutions

Use SAS to answer the question: A drug company tested three formulations of a pain relief...
Use SAS to answer the question: A drug company tested three formulations of a pain relief medicine for migraine headache sufferers. For the experiment 27 volunteers were selected and 9 were randomly assigned to one of three drug formulations. The subjects were instructed to take the drug during their next migraine headache episode and to report their pain on a scale of 1 to 10 (10 being most pain) Drug A: 4 5 4 3 2 4 3 4 4...
You may need to use the appropriate technology to answer this question. An amusement park studied...
You may need to use the appropriate technology to answer this question. An amusement park studied methods for decreasing the waiting time (minutes) for rides by loading and unloading riders more efficiently. Two alternative loading/unloading methods have been proposed. To account for potential differences due to the type of ride and the possible interaction between the method of loading and unloading and the type of ride, a factorial experiment was designed. Use the following data to test for any significant...
You may need to use the appropriate technology to answer this question. An amusement park studied...
You may need to use the appropriate technology to answer this question. An amusement park studied methods for decreasing the waiting time (minutes) for rides by loading and unloading riders more efficiently. Two alternative loading/unloading methods have been proposed. To account for potential differences due to the type of ride and the possible interaction between the method of loading and unloading and the type of ride, a factorial experiment was designed. Use the following data to test for any significant...
You may need to use the appropriate technology to answer this question. An amusement park studied...
You may need to use the appropriate technology to answer this question. An amusement park studied methods for decreasing the waiting time (minutes) for rides by loading and unloading riders more efficiently. Two alternative loading/unloading methods have been proposed. To account for potential differences due to the type of ride and the possible interaction between the method of loading and unloading and the type of ride, a factorial experiment was designed. Use the following data to test for any significant...
How have the worldviews of researchers influenced how they studied intercultural communication?
How have the worldviews of researchers influenced how they studied intercultural communication?
researchers at a university studied children born with an infection called roseola. the children also have...
researchers at a university studied children born with an infection called roseola. the children also have the causative herpesvirus inserted into their chrome osmoses. At least one parent of each child had the virus in a chromosome of a sampled hair cell. How did the children like;y become infected? and What does the transmission of the viral DNA from generation to generation reveal about the structure of DNA and its replication?
Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per...
Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per gallon (MPG) of a car. An experiment was conducted with a total of 28 cars of the same type, model, and engine size, with 7 cars randomly assigned to each treatment group. The gasoline blends are referred to as A,B,C, and D.The MPGs are shown below in the table Gasoline Miles Per Blend Gallon A 26 28 29 23 24 25 26 B 27...
Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per...
Question 4 Researchers studied four different blends of gasoline to determine their effect on miles per gallon (MPG) of a car. An experiment was conducted with a total of 28 cars of the same type, model, and engine size, with 7 cars randomly assigned to each treatment group. The gasoline blends are referred to as A,B,C, and D.The MPGs are shown below in the table Gasoline Miles Per Blend Gallon A 26 28 29 23 24 25 26 B 27...
For decades, researchers have studied the relationship between violent media and violent behavior, with some studies...
For decades, researchers have studied the relationship between violent media and violent behavior, with some studies finding a relationship, and others not. The following are data from a small study of teenagers that investigates the relationship between playing violent video games and fighting at school. Case Hours spent playing violent video games per week Number of fights during school year 1 0 0 2 20 3 3 30 4 4 5 1 5 2 0 6 0 0 7 10...
Use simulation in SAS. FICO scores nationally have an average of 640 with a standard deviation...
Use simulation in SAS. FICO scores nationally have an average of 640 with a standard deviation of 60. If you simulated the credit scores of 10,000 borrowers, what percent of FICO scores are less than 500? Greater than 850? Find the mean and standard deviation of scores that meet these conditions.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT