// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java //Select the desired output (here we get early finish of the root task) RiskItemStatistics rootEarlyFinish = analysisResult.getRiskItems(RiskItemType.EarlyFinish).get(project.getRootTask()); System.out.println("Expected value: "+ rootEarlyFinish.getExpectedValue()); System.out.println("StandardDeviation: " + rootEarlyFinish.getStandardDeviation()); System.out.println("10% Percentile: " +rootEarlyFinish.getPercentile(10)); System.out.println("50% Percentile: " + rootEarlyFinish.getPercentile(50)); System.out.println("90% Percentile: " + rootEarlyFinish.getPercentile(90)); System.out.println("Minimum: " + rootEarlyFinish.getMinimum()); System.out.println("Maximum: " + rootEarlyFinish.getMaximum()); // Also pdf report can be saved (it is rendered for Project Root Task Finish date): analysisResult.saveReport("AnalysisReport.pdf");