Logo ROOT  
Reference Guide
IntervalExamples Namespace Reference

Variables

 bc = ROOT.RooStats.BayesianCalculator(data, modelConfig)
 bcInt = bc.GetInterval()
 bcPlot = bc.GetPosteriorPlot()
 canvas = ROOT.TCanvas("canvas")
float confidenceLevel = 0.95
 data = wspace["normal"].generate(wspace.set("obs"), 100)
 expectedLL = data.mean(x) + ROOT.Math.normal_quantile((1 - confidenceLevel) / 2, 1) / ROOT.sqrt(data.numEntries())
 expectedUL = data.mean(x) + ROOT.Math.normal_quantile_c((1 - confidenceLevel) / 2, 1) / ROOT.sqrt(data.numEntries())
 fc = ROOT.RooStats.FeldmanCousins(data, modelConfig)
 frame = x.frame()
 interval = fc.GetInterval()
 mc = ROOT.RooStats.MCMCCalculator(data, modelConfig)
 mcInt = mc.GetInterval()
 mcPlot = ROOT.RooStats.MCMCIntervalPlot(mcInt)
 modelConfig = ROOT.RooStats.ModelConfig("Example G(x|mu,1)")
 mu = wspace["mu"]
 plc = ROOT.RooStats.ProfileLikelihoodCalculator(data, modelConfig)
 plInt = plc.GetInterval()
 plot = ROOT.RooStats.LikelihoodIntervalPlot(plInt)
 t = ROOT.TStopwatch()
 wspace = ROOT.RooWorkspace()
 x = wspace["x"]

Variable Documentation

◆ bc

IntervalExamples.bc = ROOT.RooStats.BayesianCalculator(data, modelConfig)

Definition at line 80 of file IntervalExamples.py.

◆ bcInt

IntervalExamples.bcInt = bc.GetInterval()

Definition at line 82 of file IntervalExamples.py.

◆ bcPlot

IntervalExamples.bcPlot = bc.GetPosteriorPlot()

Definition at line 142 of file IntervalExamples.py.

◆ canvas

IntervalExamples.canvas = ROOT.TCanvas("canvas")

Definition at line 119 of file IntervalExamples.py.

◆ confidenceLevel

float IntervalExamples.confidenceLevel = 0.95

Definition at line 55 of file IntervalExamples.py.

◆ data

IntervalExamples.data = wspace["normal"].generate(wspace.set("obs"), 100)

Definition at line 47 of file IntervalExamples.py.

◆ expectedLL

IntervalExamples.expectedLL = data.mean(x) + ROOT.Math.normal_quantile((1 - confidenceLevel) / 2, 1) / ROOT.sqrt(data.numEntries())

Definition at line 95 of file IntervalExamples.py.

◆ expectedUL

IntervalExamples.expectedUL = data.mean(x) + ROOT.Math.normal_quantile_c((1 - confidenceLevel) / 2, 1) / ROOT.sqrt(data.numEntries())

Definition at line 96 of file IntervalExamples.py.

◆ fc

IntervalExamples.fc = ROOT.RooStats.FeldmanCousins(data, modelConfig)

Definition at line 63 of file IntervalExamples.py.

◆ frame

IntervalExamples.frame = x.frame()

Definition at line 124 of file IntervalExamples.py.

◆ interval

IntervalExamples.interval = fc.GetInterval()

Definition at line 72 of file IntervalExamples.py.

◆ mc

IntervalExamples.mc = ROOT.RooStats.MCMCCalculator(data, modelConfig)

Definition at line 85 of file IntervalExamples.py.

◆ mcInt

IntervalExamples.mcInt = mc.GetInterval()

Definition at line 92 of file IntervalExamples.py.

◆ mcPlot

IntervalExamples.mcPlot = ROOT.RooStats.MCMCIntervalPlot(mcInt)

Definition at line 136 of file IntervalExamples.py.

◆ modelConfig

IntervalExamples.modelConfig = ROOT.RooStats.ModelConfig("Example G(x|mu,1)")

Definition at line 40 of file IntervalExamples.py.

◆ mu

IntervalExamples.mu = wspace["mu"]

Definition at line 52 of file IntervalExamples.py.

◆ plc

IntervalExamples.plc = ROOT.RooStats.ProfileLikelihoodCalculator(data, modelConfig)

Definition at line 58 of file IntervalExamples.py.

◆ plInt

IntervalExamples.plInt = plc.GetInterval()

Definition at line 60 of file IntervalExamples.py.

◆ plot

IntervalExamples.plot = ROOT.RooStats.LikelihoodIntervalPlot(plInt)

Definition at line 131 of file IntervalExamples.py.

◆ t

IntervalExamples.t = ROOT.TStopwatch()

Definition at line 27 of file IntervalExamples.py.

◆ wspace

IntervalExamples.wspace = ROOT.RooWorkspace()

Definition at line 34 of file IntervalExamples.py.

◆ x

IntervalExamples.x = wspace["x"]

Definition at line 51 of file IntervalExamples.py.