[R] [R-SIG-Finance] forecasting earnings, sales and gross margin of a company...

bogaso.christofer bogaso.christofer at gmail.com
Thu Oct 23 23:03:55 CEST 2008

You can fit a VAR model and then, test for Granger Causality

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Michael
Sent: 24 October 2008 01:10
To: Rory.WINSTON at rbs.com
Cc: r-sig-finance at stat.math.ethz.ch; R-help at stat.math.ethz.ch
Subject: Re: [R] [R-SIG-Finance] forecasting earnings,sales and gross margin
of a company...

Dear folks,

Here is one example of two time series:


The two series are all year-over-year percentage growth (in percentage).

For Amazon Net Sales Growth data, I have data from Q1 2001 to Q2 2008
(quarterly), whereas for US Real Average Hourly Earnings Growth, I
have data from Q1 1999 to Q3 2008 (original data was monthly and then
I average every three months into quarterly).

So I filled "zero"s to the Amazon Net Sales Growth data.

Intuitively, the US Real Average Hourly Earnings series should lead
the Amazon Net Sales Growth series.

But how to use the statistical methods in R to analyze these two
series and make forecast?

Further, how to incorporate other news and shocks in Sept. - Oct 2008
into the forecasting?


On Thu, Oct 23, 2008 at 2:51 AM,  <Rory.WINSTON at rbs.com> wrote:
> Dealing with accounting data is, in statistical terms, an ill-posed
problem - there is not much data and quite a few dimensions. That said,
there is a lot of research out there on applying statistical techniques to
accounting data for the purposes of prediction and classification. But most
prediction based on financial statements is based on much more fundamental
techniques (e.g. a discounted cash flow analysis).
> Rory
> Rory Winston
> RBS Global Banking & Markets
> Office: +44 20 7085 4476
> -----Original Message-----
> From: r-sig-finance-bounces at stat.math.ethz.ch
[mailto:r-sig-finance-bounces at stat.math.ethz.ch] On Behalf Of Michael
> Sent: 22 October 2008 23:26
> To: r-help; r-sig-finance at stat.math.ethz.ch
> Subject: [R-SIG-Finance] forecasting earnings, sales and gross margin of a
> Hi all,
> I am playing with some companies' balance sheets and income statements and
want to apply what I've just learned from Stats class to see if I can
forecast the companies earnings, sales and gross margin in the short term
(3rd and 4th Quarter), mid-term (2009) and long term (2011, etc. )
> I pulled up some data from companies' financial statements over the past a
few years. The companies are techs so don't have long history.
> And given regime switching and big changes in the macro condition, I think
long historical data have no use any way... so I have quarterly and annual
data... and I probably need some other time series, for example the GDP,
interest rate, consumer spending, etc.
> How do I forecast the performance of the firms using R? I don't have much
experience yet, for example, I probably have to de-trend the timeseries
first, and then do some seasonality adjustment, etc. but I think it's very
fun. Are there good hands-on tutorials about how to do these things in R,
with realistic examples?
> Thanks a lot!
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> -- Subscriber-posting only.
> -- If you want to post, subscribe first.
> The Royal Bank of Scotland plc. Registered in Scotland No 90312.
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB.
> Authorised and regulated by the Financial Services Authority
> This e-mail message is confidential and for use by the
> addressee only. If the message is received by anyone other
> than the addressee, please return the message to the sender
> by replying to it and then delete the message from your
> computer. Internet e-mails are not necessarily secure. The
> Royal Bank of Scotland plc does not accept responsibility for
> changes made to this message after it was sent.
> Whilst all reasonable care has been taken to avoid the
> transmission of viruses, it is the responsibility of the recipient to
> ensure that the onward transmission, opening or use of this
> message and any attachments will not adversely affect its
> systems or data. No responsibility is accepted by The
> Royal Bank of Scotland plc in this regard and the recipient should carry
> out such virus and other checks as it considers appropriate.
> Visit our websites at:
> www.rbs.com
> www.rbs.com/gbm
> www.rbsgc.com

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list