Correlation Through a Common Factor in Excel | Vose Software

ModelRisk example · General techniques

Correlation Through a Common Factor (Look-up Table)

How much later does a project finish when bad weather hits every activity at once? Correlation through a common factor.

  • Complexity: ★★★★★
  • Free Excel workbook (GU-07)
  • Needs ModelRisk: free trial

From the model’s saved run

Total time three ways

The same base durations with no weather effect, with the season shared by every activity, and with independent weather for each.

MeasureUnit10th pctMedian90th pctMean
No weather effectweeks47.650.052.550.0
Shared weatherweeks46.551.460.352.7
Independent weatherweeks48.852.656.852.7
MeasureUnitValue
Standard deviation, shared weatherweeks5.36
Standard deviation, independent weatherweeks3.10
Standard deviation, no weather effectweeks1.88
Total time — three versions

The business question

A contractor schedules six activities one after the other: archaeology, digging the foundations, formwork, laying the foundations, walls and floors, and the roofing. Each has a three-point estimate for normal weather.

The season's weather is graded from 1 (very poor) to 5 (very good), and a table says how much each activity's duration changes with it: in very poor weather laying the foundations takes 40% longer, in very good weather 18% less. All six activities face the same season, so the weather makes them late or early together.

The model compares three versions from the same base durations: no weather effect, one shared season, and a season of its own for each activity.

Who it is for
Anyone who has to correlate many variables that depend on one outside influence: weather, the economy, a market, an exchange rate.
Main outputs
Total time at P10 / median / P90 with no weather effect, with one shared season, and with independent weather for each activity · the chance of missing the deadline both ways · the correlation the shared weather creates · the drivers.

How the model works

Three sheets after this one, read from left to right. Each one feeds the next.

  1. Inputs sheet

    Each activity's duration in normal weather as a triangular distribution, and the deadline.

  2. Activities sheet

    The weather table gives each activity's change in duration for each grade. With shared weather, one draw of the weather index picks the column for every activity (INDEX). With independent weather each activity draws its own index. Both versions use the same base durations.

  3. Results sheet

    The total time in the three versions, the chance of missing the deadline with shared and with independent weather, the correlation between two activities, and the tornado.

ModelRisk techniques

  • Common weather factor VoseDiscrete
  • Shared vs independent weather
  • Correlation VoseSimCorrelation
  • Tornado VoseSimSensitivityMean

Find similar models

Product

The results in detail

What sharing the weather does

The deadline is on the Inputs sheet.

MeasureUnitValue
Chance of missing the deadline, shared weatherprobability36.7%
Chance of missing the deadline, independent weatherprobability23.0%
Rank correlation, digging and laying foundations: shared0.79
Rank correlation, digging and laying foundations: independent0.01

What moves the total

Lowest and highest mean total with shared weather over ten equal groups of each input (VoseSimSensitivityMean).

What moves the total, shared weather (weeks)
The ranking as a table 7 inputs
Input (ranked by influence)Lowest meanHighest meanRank
Weather index this season46.661.51
Walls and floors50.655.02
Dig foundations51.254.43
Archaeology51.754.54
Lay foundations51.754.15
Lay roofing51.954.16
Formwork52.353.47

How to read these results

  • The weather adds about 2.7 weeks on average in both weather versions: sharing the season does not change the mean.
  • It changes the spread. With one season for the whole job, the standard deviation is about 5.3 weeks against 3.1 with independent weather, and the 90th percentile about 60 weeks against 57: a bad season slows every activity at once, while independent weather averages out.
  • So the chance of missing the 55-week deadline is about 37% with shared weather, and only about 23% if the correlation were ignored.
  • The look-up table correlates the activities without a correlation coefficient: digging and laying the foundations move together (rank correlation about 0.8) because they read the same column of the table. The tornado puts the weather first.

See it move. Open the workbook, change an input on the Inputs sheet and run the simulation: every table and chart on this page updates in Excel.

Inputs and assumptions

Every assumption in the model, with its uncertainty and where it comes from. The figures are illustrative.

Base durations 6 inputs

Each activity's duration in normal weather (weeks).

AssumptionUnitUncertaintyLowMost likelyHigh
ArchaeologyLow, most likely and high, as in the original example.weeksTriangle3.04.06.0
Dig foundationsweeksTriangle9.011.013.0
FormworkweeksTriangle2.02.03.0
Lay foundationsweeksTriangle6.07.09.0
Walls and floorsweeksTriangle15.017.021.0
Lay roofingweeksTriangle6.07.09.0
Deadline 1 input
AssumptionUnitValue
Deadline for the six activitiesAbout five weeks more than with no weather effect.weeks55

Units and conventions

Time
Weeks.
Weather index
1 very poor, 2 poor, 3 normal, 4 good, 5 very good.
Change
The percentage added to (or taken off) an activity's normal-weather duration.

Key assumptions and limitations

In sequence
The six activities run one after the other; the total is their sum.
One season
With shared weather, the whole job sees one season's weather; the independent version is for comparison only.
Data
The activities, durations, weather table and weather weights are those of ModelRisk's earlier Correlation Using Look-up Tables example.

How to use it

  1. Change the base durations and the deadline on the Inputs sheet.
  2. Change the weather's chances and its table on the Activities sheet: one row per activity, one column per grade.
  3. Run a simulation from the ModelRisk ribbon (10,000 samples with a fixed seed are set).
  4. Compare the shared and the independent versions: the difference is what ignoring the correlation would hide.

The tornado chart fills in after a simulation with ModelRisk’s classic engine.

ModelRisk functions used

VoseTriangle
Each activity's duration in normal weather.
VoseDiscrete
The weather index: once for the shared season, once per activity for the independent version.
INDEX (Excel)
The look-up: the change in duration for this weather grade, from the activity's row of the table.
VoseInput, VoseOutput
Name the base durations, the weather and the three totals.
VoseSimCorrelation
The rank correlation the shared weather creates between two activities.
VoseSimMean, VoseSimStdev, VoseSimPercentile
Statistics of the simulation.
VoseSimSensitivityMean
The tornado chart: what moves the mean total with shared weather.

Further reading