ANOVA/ Hypothesis Testing (Multiple Means)
Posted: Mon Mar 21, 2011 1:59 pm
Hi Good Day.
I am using Eviews 7 and I am interested in running an ANOVA test to test the means for the closing prices of companies for different weekdays (Mon-Fri). I know there's the Simple Hypothesis Test (View>Descriptive Statistics & Tests>Simple Hypothesis Tests) where I actually plan to test for significant differences between means of Mondays (using my time series workfile for a company) against the means of Tuesdays (the test value) etc. Also, I've played around with the Equality Tests (View>Descriptive Statistics& Tests>Equality Tests by Classification) and it worked fine for my time series data per company. I was able to test whether or not the means were significantly different by weekday, and month per company using the "@weekday" and "@month" in the "Series/Group for Classify" field.
However, I just have two queries.
Firstly, how can I use Eviews 7 to merge my separate company files in to one workfile? It might be useful to have it as such (date in rows, firms in columns):
________ Firm A Firm B Firm C etc
date1 $ (closing price) $ $
date2 $ $ $
date3 $ $ $
etc
My data for each company currently looks like:
Firm A
date1 $ (closing price)
date2 $
date3 $
In my mind I hope that by organizing it this way I can test the hypothesis of equal means for ALL companies at once (eg, for weekdays means of all companies it'll be Ho: u1=u2=u3=u4=u5 and H1: At least two means are not equal).
Secondly, is this type of data organization necessary? Can Eviews7 use this organization of data to test equality of means or can I only do the ANOVA for each company individually?
I'm not sure how the structure of the data should be when it comes to doing an ANOVA for more than one company at a time especially when its the day of the week means I'm trying to test. I've tried to explain my problem as simply and clearly as possible but if further explanation is needed, I will gladly provide it.
If it helps, my overall aim is to test for possible significant differences in the mean stock prices for weekdays and then for months and my workfiles are separate company files containing times series data.
Thanking you very much in advance.
I am using Eviews 7 and I am interested in running an ANOVA test to test the means for the closing prices of companies for different weekdays (Mon-Fri). I know there's the Simple Hypothesis Test (View>Descriptive Statistics & Tests>Simple Hypothesis Tests) where I actually plan to test for significant differences between means of Mondays (using my time series workfile for a company) against the means of Tuesdays (the test value) etc. Also, I've played around with the Equality Tests (View>Descriptive Statistics& Tests>Equality Tests by Classification) and it worked fine for my time series data per company. I was able to test whether or not the means were significantly different by weekday, and month per company using the "@weekday" and "@month" in the "Series/Group for Classify" field.
However, I just have two queries.
Firstly, how can I use Eviews 7 to merge my separate company files in to one workfile? It might be useful to have it as such (date in rows, firms in columns):
________ Firm A Firm B Firm C etc
date1 $ (closing price) $ $
date2 $ $ $
date3 $ $ $
etc
My data for each company currently looks like:
Firm A
date1 $ (closing price)
date2 $
date3 $
In my mind I hope that by organizing it this way I can test the hypothesis of equal means for ALL companies at once (eg, for weekdays means of all companies it'll be Ho: u1=u2=u3=u4=u5 and H1: At least two means are not equal).
Secondly, is this type of data organization necessary? Can Eviews7 use this organization of data to test equality of means or can I only do the ANOVA for each company individually?
I'm not sure how the structure of the data should be when it comes to doing an ANOVA for more than one company at a time especially when its the day of the week means I'm trying to test. I've tried to explain my problem as simply and clearly as possible but if further explanation is needed, I will gladly provide it.
If it helps, my overall aim is to test for possible significant differences in the mean stock prices for weekdays and then for months and my workfiles are separate company files containing times series data.
Thanking you very much in advance.