SE & t-stats for descriptive stats

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Laurel
Posts: 19
Joined: Mon May 04, 2020 2:39 pm

SE & t-stats for descriptive stats

Postby Laurel » Sun Nov 15, 2020 6:50 pm

If I have monthly stock price data and generate monthly returns (percentage changes) descriptive statistics, how do I get the standard errors, t-stats, and p-values for the mean, standard deviation, and Sharpe ratio = mean/standard deviation? Thank you!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

Re: SE & t-stats for descriptive stats

Postby EViews Gareth » Sun Nov 15, 2020 6:54 pm

You'll have to be more descriptive. p-value for what test?

Laurel
Posts: 19
Joined: Mon May 04, 2020 2:39 pm

Re: SE & t-stats for descriptive stats

Postby Laurel » Sun Nov 15, 2020 6:57 pm

To determine if the mean, standard deviation, and Sharpe ratio = mean/standard deviation are significantly different from zero. Thank you!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

Re: SE & t-stats for descriptive stats

Postby EViews Gareth » Sun Nov 15, 2020 8:36 pm

http://www.eviews.com/help/helpintro.ht ... 23ww204681

That will perform the test, you’ll have to then freeze the results and extract the bits you want.

http://forums.eviews.com/viewtopic.php?f=5&t=18

Laurel
Posts: 19
Joined: Mon May 04, 2020 2:39 pm

Re: SE & t-stats for descriptive stats

Postby Laurel » Mon Nov 23, 2020 6:51 pm

Is there a way to use robust standard errors for the test, e.g. heteroskedasticity and autocorrelation adjusted similar to the covariance method options in equation estimation (cov=hac)? Thank you!

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13600
Joined: Tue Sep 16, 2008 5:38 pm

Re: SE & t-stats for descriptive stats

Postby EViews Gareth » Mon Nov 23, 2020 10:08 pm

Not built in

startz
Non-normality and collinearity are NOT problems!
Posts: 3797
Joined: Wed Sep 17, 2008 2:25 pm

Re: SE & t-stats for descriptive stats

Postby startz » Tue Nov 24, 2020 7:19 am

Testing for the standard deviation different from zero doesn't make any sense. If the sample standard deviation is different from zero, then so is the true standard deviation.

For the mean, try

Code: Select all

ls x c


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests