Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
What-if analysis is a scenario modeling technique where you make a hypothetical change to a time series and compare the forecasts generated by these changes against the baseline, unchanged time series. It is important to remember that the purpose of a what-if analysis is to understand how a forecast can change given different modifications to the baseline time series.
For example, imagine you are a clothing retailer who is considering an end of season sale to clear space for new styles. After creating a baseline forecast, you can use a what-if analysis to investigate how different sales tactics might affect your goals. You could create a scenario where everything is given a 25% markdown and another where everything is given a fixed dollar markdown. You can create a scenario where the sale lasts for 1 week and another where the sale lasts for 1 month. Your what-if analysis enables you to compare many different scenarios against each other.
Note that a what-if analysis is meant to display what the forecasting model has learned and how it will behave in the scenarios that you are evaluating. Do not blindly use the results of the what-if analysis to make business decisions. For instance, forecasts might not be accurate for novel scenarios where there is no reference available to determine whether a forecast is good.
The TimeSeriesSelector object defines the items that you want in the what-if analysis.
Synopsis
- data CreateWhatIfAnalysis = CreateWhatIfAnalysis' {}
- newCreateWhatIfAnalysis :: Text -> Text -> CreateWhatIfAnalysis
- createWhatIfAnalysis_tags :: Lens' CreateWhatIfAnalysis (Maybe [Tag])
- createWhatIfAnalysis_timeSeriesSelector :: Lens' CreateWhatIfAnalysis (Maybe TimeSeriesSelector)
- createWhatIfAnalysis_whatIfAnalysisName :: Lens' CreateWhatIfAnalysis Text
- createWhatIfAnalysis_forecastArn :: Lens' CreateWhatIfAnalysis Text
- data CreateWhatIfAnalysisResponse = CreateWhatIfAnalysisResponse' {}
- newCreateWhatIfAnalysisResponse :: Int -> CreateWhatIfAnalysisResponse
- createWhatIfAnalysisResponse_whatIfAnalysisArn :: Lens' CreateWhatIfAnalysisResponse (Maybe Text)
- createWhatIfAnalysisResponse_httpStatus :: Lens' CreateWhatIfAnalysisResponse Int
Creating a Request
data CreateWhatIfAnalysis Source #
See: newCreateWhatIfAnalysis
smart constructor.
CreateWhatIfAnalysis' | |
|
Instances
newCreateWhatIfAnalysis Source #
Create a value of CreateWhatIfAnalysis
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:tags:CreateWhatIfAnalysis'
, createWhatIfAnalysis_tags
- A list of
tags
to apply to the what if forecast.
$sel:timeSeriesSelector:CreateWhatIfAnalysis'
, createWhatIfAnalysis_timeSeriesSelector
- Defines the set of time series that are used in the what-if analysis
with a TimeSeriesIdentifiers
object. What-if analyses are performed
only for the time series in this object.
The TimeSeriesIdentifiers
object needs the following information:
DataSource
Format
Schema
CreateWhatIfAnalysis
, createWhatIfAnalysis_whatIfAnalysisName
- The name of the what-if analysis. Each name must be unique.
CreateWhatIfAnalysis
, createWhatIfAnalysis_forecastArn
- The Amazon Resource Name (ARN) of the baseline forecast.
Request Lenses
createWhatIfAnalysis_tags :: Lens' CreateWhatIfAnalysis (Maybe [Tag]) Source #
A list of tags to apply to the what if forecast.
createWhatIfAnalysis_timeSeriesSelector :: Lens' CreateWhatIfAnalysis (Maybe TimeSeriesSelector) Source #
Defines the set of time series that are used in the what-if analysis
with a TimeSeriesIdentifiers
object. What-if analyses are performed
only for the time series in this object.
The TimeSeriesIdentifiers
object needs the following information:
DataSource
Format
Schema
createWhatIfAnalysis_whatIfAnalysisName :: Lens' CreateWhatIfAnalysis Text Source #
The name of the what-if analysis. Each name must be unique.
createWhatIfAnalysis_forecastArn :: Lens' CreateWhatIfAnalysis Text Source #
The Amazon Resource Name (ARN) of the baseline forecast.
Destructuring the Response
data CreateWhatIfAnalysisResponse Source #
See: newCreateWhatIfAnalysisResponse
smart constructor.
CreateWhatIfAnalysisResponse' | |
|
Instances
newCreateWhatIfAnalysisResponse Source #
Create a value of CreateWhatIfAnalysisResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateWhatIfAnalysisResponse
, createWhatIfAnalysisResponse_whatIfAnalysisArn
- The Amazon Resource Name (ARN) of the what-if analysis.
$sel:httpStatus:CreateWhatIfAnalysisResponse'
, createWhatIfAnalysisResponse_httpStatus
- The response's http status code.
Response Lenses
createWhatIfAnalysisResponse_whatIfAnalysisArn :: Lens' CreateWhatIfAnalysisResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the what-if analysis.
createWhatIfAnalysisResponse_httpStatus :: Lens' CreateWhatIfAnalysisResponse Int Source #
The response's http status code.