Академический Документы
Профессиональный Документы
Культура Документы
we computed the variance to be approximately 0.074753. We computed the t-statistic to be
approximately 1.808439. Using an alpha of 0.05 and 8 degrees of freedom, we found critical
value to be 1.8595. Since our t-statistic is less than our critical value, we do not reject the null
hypothesis. There is insufficient evidence to conclude that stelazine increased behavioral rating
scores in Ward A. We then repeated the process for Ward B. We computed a t-statistic of
approximately 1.3568 and a critical value of 1.94318. By the same argument we fail to reject
the null hypothesis in Ward B.
In conclusion, in both of the wards, stelazine is not associated with improvement in the
patients scores.
Two Sample t-test
When we compared the wards to see if there was any difference in improvement
between them, we used a 2-sample t-test. We have two different null hypotheses, one for the
comparison of stelazine in Ward A and Ward B and one where we compared the effect of
placebos between wards. For both categories, stelazine and placebo, our null hypothesis is that
there is no difference between wards. For stelazine, we computed the averages of the
differences between each patient in Ward A and Ward B, respectively. We used the variance
formula,
we computed the variance of stelazine in Ward A to be approximately 0.389 and the variance of
stelazine in Ward B to be about 0.088. Using the formula,
we computed a t-statistic of 2.72879. To get the degrees of freedom of 12, we used the
formula,
(
Using an alpha of 0.05, we found a critical value of 2.1788. So, since our t-statistic is greater
than our critical value, we reject the null hypothesis. So, there is evidence that there is a
difference between the wards in the stelazine group. Following the same process for the
placebo groups, our t-statistic was 1.59 with 14 degrees of freedom and our critical value was
2.15. In conclusion we fail to reject our null hypothesis and claim that there is no difference in
placebo groups between wards.
Stock Analysis
We are analyzing the monthly stock returns for McDonalds and Halliburton from 1975 through
1999.We are using two different methods to analyze the data. In the first method we will fit the
normal distributions to the return data to obtain the maximum likelihood estimates of the
mean and variance of the returns, and construct a 95% confidence interval for the mean
returns. Second, we will perform a Bayesian analysis of the data sets by considering the case of
unknown mean and known variance and the case of known mean and unknown variance,
where we will use the prior distributions to derive the exact normalizing constants.
We feel justified in assuming that McDonalds and Halliburtons monthly stock returns are
normally distributed from examining the following histograms of the given data.
Maximum Likelihood Estimates
In this part we will fit the normal distributions to the return data of stocks to obtain the
maximum likelihood estimates of the mean and variance of the returns for both McDonalds
and Halliburton. Also we will construct a 95% confidence interval for our estimates.
We know the maximum likelihood estimate for the mean is:
) (
)
where,
In order for our posterior distribution to integrate to 1 we notice that the constant of
proportionality must be:
The following table summarizes our results:
c
McDonalds 230.5516 .03 1111.11 70276.5928 .0166352 105.75853
Halliburton 115.9443 .01 1111.11 35894.4046 .0109856 75.58288
Now in the case of known mean and unknown variance we assume that the mean of the
normal distribution is known. In this case we use the MLE to stand in for the known mean.
Also among our assumptions is that the prior precision is gamma distributed with
parameters and . We need only to make assumptions about the mean and spread of this
distribution to make educated guesses about their values. If we assume the mean variance
among monthly stock returns is .01 then the mean for the gamma distributed precision will be
1/
= 100. Remember that the mean of a gamma distribution is / . We now have a fixed
ratio describing the relationship between the two parameters. We next recognize that the
variance for this distribution is /
2
. So the smaller is the larger the variance and vice versa.
To keep our assumptions conservative we choose the following and for Halliburton and
McDonalds
0
McDonalds .1 100 .25 25
Halliburton .1 100 .01 1
Since we are fairly more confident in our McDonalds assumptions we chose a larger
than with Halliburton. Once this is chosen our is determined. Now with these and the
text derives the following:
This shows us that the posterior distribution is proportional to a gamma distribution
with:
In order for our posterior distribution to integrate to 1 we notice that the constant of
proportionality must be:
Hence the expected value for the posterior precision,
. Or we could say
the expected value for the posterior variance,
c
McDonalds 25 175 .25 ~.25 .00143 6.79E-422
Halliburton 1 151 .01 ~.01 .000067 2.2E-564
So we can see that the
McDonalds .01642 .01664 .00434 .00143
Halliburton .01102 .01099 .00045 .000067
There is a strong agreement between the two different estimators for the mean,
however the Bayesian results are much different in estimating the variance. Whether using the
MLE or the Bayesian estimator, our stock recommendation would be dependent on a persons
risk aversion. McDonalds has a higher potential for returns, given by its larger mean, than
Halliburton. However, Halliburton can be considered a less risky investment because its
variance from month to month is significantly smaller than McDonalds. Whether you prefer
the Bayesian estimate or the MLE, this advice is the same.