Download Crystal Ball, @RISK, ModelRisk and ProModel Software, Example Models and White-Papers 

telHave a question? Give us a call at 1-888-879-8440
Monday to Friday (9am-9pm EST)

 

The Consultant's Corner - Insight into analytics and other cool stuff...

Search all articles

Minimize
spacer

Buy Software and Services for Oracle Crystal Ball, Palisade DecisionTools Suite, ProModel, Frontline Solver)
Login for analytics downloads and resources
Free consultation with a Technology Partnerz consultant on training, consulting and software questions
Learn about remote support services

See us on yourtubeFollow Technology Partnerz on Twitter

Aug25

Written by:Eric Torkia
8/25/2010 3:42 PM RssIcon

Crystal Ball utlizes several powerful functions and features to extract information and descriptive statistics. We are going to review these techniques and present the CB.GetForeStatFN in detail.

Often when we are modeling a model, we may want to monitor or focus on a particular statistic. Traditionally we always look at the statistics of the forecast of interest.

Figure 1: Viewing forecast statistics in Crystal Ball

Fortunately Crystal Ball offers several other powerful methods to extract data from a forecast:

Technique

Pros

Cons

Copy Stats table from forecast windows (Manual Approach)

  • Easy
  • Function is directly available from Edit Menu
  • Data is static
  • Process is manual

Auto – Extract Values from forecasts at the end of a simulation

  • Will produce a wide array of data and descriptive statistics.
  • Is easily configured in the forecast in dialog box in the Forecast Preferences
  • Is visible to all non-Crystal Ball users
  • Can overwrite portions of your model resulting in broken formulas
  • Extractions are generated only when the simulation stops

CB.Get Functions (CB.GetForeFN, CB.GetForeStat)

  • Dynamic data
  • Can be used in Forecasts i.e. to see how a mean shifts
  • Will produce a wide array of stats
  • These functions tend to force CB to run in Normal speed.
  • These functions are not available to non-cb users
  • Will display 0 until 1 trial has been run

Crystal Ball Reports

  • Easy to generate
  • Very complete and visual
  • Easy to customize
  • Are static
  • Are in a separate file
  • Not designed to re-incoporate into models.
  •  

 

In this article, we will present the CB.GetForeStatFN function using the European Put Model (see Figure 2 ) developed by John Charnes for his book Financial Modeling with Crystal Ball and Excel (By the way, the model is available in the download section of this site.).

Figure 2: Black Sholes model using Crystal Ball

When we run this model for 10,000 trials, we obtain 2 forecasts: One for the present value of the option(see Figure 3) and the other is the Mean Present Value (Figure 4).

Figure 3: Present value of the option

The above forecast chart and statistics was generated using the first forecast cell in Figure 1. The chart below presents the distribution of the potential means associated with this simulation. It is worth noting that the mean shifted as the trials increased. Nevertheless, the usefulness of the knowing that the mean could also follow a distribution is very powerful but should be used with caution - generally because it will change each time a trial is added.

Figure 4: Distribution of the option's mean using the CB.GetForeStat function

HOW TO USE THE CB.GetForeStatFN

In Excel, you would use the following formula:

=CB.GetForeStatFN(ForecastCellLocation, Index)

=CB.GetForeStatFN(B13, 2) generates 9.83, the forecast's mean using the below forecast.

In order to extract the other parameters available in each forecast, use the following index parameters.

GetForeStatParameter

1

Trials

14

Base Case

2

Mean

3

Median

4

Mode

5

Standard Deviation

6

Variance

7

Skewness

8

Kurtosis

9

Coeff. of Variability

10

Minimum

11 or 12

Maximum

13

Mean Std. Error

 

If you have any questions on how to incorporate this function in your models and VBA macro's, please don't hesitate to drop me a line at etorkia@crystalballservices.com

dummy