meridian.analysis.analyzer.get_central_tendency_and_ci
Stay organized with collections
Save and categorize content based on your preferences.
Calculates mean and credible intervals for the given data.
meridian.analysis.analyzer.get_central_tendency_and_ci(
data: (np.ndarray | meridian.backend.Tensor),
confidence_level: float = constants.DEFAULT_CONFIDENCE_LEVEL,
axis: tuple[int, ...] = (0, 1),
include_median=False
) -> np.ndarray
Args |
data
|
Data for the metric.
|
confidence_level
|
Confidence level for computing credible intervals,
represented as a value between zero and one.
|
axis
|
Axis or axes along which the mean, median, and quantiles are computed.
|
include_median
|
A boolean flag indicating whether to calculate and include
the median in the output Dataset (default: False).
|
Returns |
|
A numpy array or backend.Tensor containing the mean and credible intervals
for the given data. Optionally, it also includes the median.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-09 UTC."],[],[]]