Questions tagged [confidence-interval]

In statistics, a confidence interval is a measure of the precision of an estimate of an underlying parameter. In principle, if the estimate is computed several times on independent samples of data, the parameter should fall within associated confidence intervals a set proportion of the time. This proportion is known as the coverage probability, and is most commonly set to be 95%.

When estimating a vector of parameters, c(θ), based on observations of some random variables whose distribution depends on those parameters in some way, a confidence interval (for scalar θ) or confidence region (for vector c(θ)), is some set C=C(X) such that P(c(θ) ∈ C) = 1−α. To note:

  1. The confidence interval is a function of the data, X, so is itself random.
  2. The statement regarding the probability that c(θ) ∈ C should be regarded with respect to the randomness in X which controls C. Since confidence intervals are a frequentist notion, one should not think of the probability as applying to the unobserved parameter c(θ), which, to a frequentist, is not random.
  3. Often one can only compute approximate confidence intervals, which may have the nominal coverage asymptotically in the sample size.

Tag usage

Questions on should be about implementation and programming problems, not about the statistical or theoretical properties of the technique. Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

1131 questions
-1
votes
1 answer

aR->ggplot2->Graphing weekly timeserie data->multiple years/states->with confidence intervals

Raw Data: Here is the spreadsheet I have 50 states, weekly data from 1997 to current that look like this: structure(list(date = c("1/1/2011", "1/8/2011", "1/15/2011", "1/22/2011", "1/29/2011", "2/5/2011", "2/12/2011", "2/19/2011", "2/26/2011",…
Omi Slash
  • 147
  • 1
  • 12
-1
votes
1 answer

Calculate confidence interval for 1 dimension random data

I want to know how to calculate the given confidence interval for 1 dimension (this could simplify the question) random data. The situation is like this: suppose I have 50 random points of data from 1 to 100 (not normally distributed), and I want to…
-1
votes
1 answer

confirdence interval and standard deviation in percentage using excel

I have the following data: Total number of tasks / number of tasks with error / overall error rate 8 2 25% 25 4 16% 48 7 15% 8 1 13% How do I find the standard deviation of percentage of overall error rate, its mean and confidence…
-1
votes
1 answer

R - Bootstrapped Confidence Interval - Obtain Parameters of Upper and Lower Bounds

I used bootstrapping to obtain confidence intervals of a Weibull distribution. Then I plotted the Confidence Bands in a plot. Code is below: set.seed(123) rw.small<-rweibull(100,shape=1.781096,scale=33.669511) xs <- seq(0,100, len=500) boot.pdf <-…
-1
votes
1 answer

Function to obtain confidence interval given an estimate and its standard error?

Given as estimate of a parameter (2.685) and its SE (0.319) from a regression model, I can compute the 95% Wald confidence interval as follows: > c("2.5%" = 2.685 - 1.96*0.319, "97.5%" = 2.685 + 1.96*0.319) 2.5% 97.5% 2.05976 3.31024 Is…
landroni
  • 2,902
  • 1
  • 32
  • 39
-1
votes
2 answers

Calculate the percentage of observations that lie outside the 90% confidence interval

Aim: I want to calculate the percentage of observations (CONC) that lie outside 90% CI for all subjects in the data. My data frame contains the following columns: df <- ID TIME CONC CI90low CI90hi 1 4 9.38 0.870240934 133.6468179 1 5…
Amer
  • 2,131
  • 3
  • 23
  • 38
-2
votes
1 answer

95% confidence interval for AUROCC?

How do I calculate the 95% confidence interval of the area under the ROC curve (AUROCC) on BlueSky Statistics? I know how to create the multivariate logistic model and show the ROC curve and AUROCC. I tried using the Bootstrap Resampling but could…
-2
votes
2 answers

Overlapping Confidence Interval

I have three variables and each one has a confidence interval, as follow variable lowerci beta upperci a 0.86471152 0.87615515 0.88759878 b 0.966626566 0.970159119 0.973691671 c 0.94946211 0.955502661 0.961543211 I want to see if they overlap…
user11144787
-2
votes
1 answer

R boxplot with already computed mean, confidence intervals and min max

I am trying to generate a boxplot in R using already computed confidence intervals and min and max. For time 1,2,3,4,5 (x-axis), I have MN which represents array of 5 elements, each describing the mean at time point. I also have CI1, CI2, MINIM, and…
show_stopper
  • 288
  • 5
  • 17
-2
votes
1 answer

lmertest and confidence intervals

Is there a way to get lmertest to produce confidence intervals? I have tried using this code from https://cran.r-project.org/web/packages/lmerTest/lmerTest.pdf contest(mymodel , L, rhs = 0, joint = TRUE, collect = TRUE, confint = TRUE,…
sar
  • 182
  • 6
  • 26
-2
votes
1 answer

Interactively Re-color Bars in Matplotlib Bar Chart using Confidence Intervals

Trying to shade the bars in this chart based on the confidence that a selected y-value (represented by the red line) lies within a confidence interval. See recolorBars() method in the class example below. While I understand colormaps, Normalize(),…
-2
votes
1 answer

Populating a table in R

I am attempting to make a table that would hold the sample size determination from several methods for different initial probabilities. I would like it to look something like the following Prob. .80 .81 .82 ... Wald xxx yyy zzz AC…
a.powell
  • 1,572
  • 4
  • 28
  • 39
-2
votes
1 answer

How to compute a 95% confidence interval around a continuous signal?

I would like to compute and display in python a 95% CI around a continuous signal (voltage values as a function of time). This signal was recorded in the brain of 16 different subjects, and lasts 1300 ms. Sampling rate was 250 Hz (so one datapoint…
user1363251
  • 421
  • 1
  • 11
  • 24
-2
votes
1 answer

Saving confidence limits in Stata

After running glm I can type matrix list r(table) and see a table of all of my results. If I wish, I can write slopes and SEs to variables, e.g., gen B=_b[x1] or gen se=_se[x1]. However, this does not work with the confidence limits, ll and ul. …
-2
votes
3 answers

Produce pretty table for print that shows which point estimates differ significantly using R

I want to create a table of point estimates from a sample for print in the following format variable group1 group2 group3 etc age 18.2 18.5 23.2 weight 125.4 130.1 117.1 etc I also have…
davideps
  • 541
  • 3
  • 13
1 2 3
75
76