confidence-interval

How do I plot confidence intervals in MATLAB?

I want to plot some confidence interval graphs in MATLAB but I don't have any idea at all how to do it. I have the data in a .xls file. Can someone give me a hint, or does anyone know commands for plotting CIs? ...

Conditionally colour data points outside of confidence bands in R

I need to colour datapoints that are outside of the the confidence bands on the plot below differently from those within the bands. Should I add a separate column to my dataset to record whether the data points are within the confidence bands? Can you provide an example please? Example dataset: ## Dataset from http://www.apsnet.org...

How to find a confidence interval for the total number of events

I have a program which records events that occur with some probability p. After I run it I get k events recorded. How can I calculate how many events there were, recorded or not, with some confidence, say 95%? So for example, after getting 13 events recorded I would like to be able to calculate that there were between 13 and 19 events t...

How to compare different distribution means with reference truth value in Matlab?

I have production (q) values from 4 different methods stored in the 4 matrices. Each of the 4 matrices contains q values from a different method as: Matrix_1 = 1 row x 20 column Matrix_2 = 100 rows x 20 columns Matrix_3 = 100 rows x 20 columns Matrix_4 = 100 rows x 20 columns The number of columns indicate the number of years. ...

'ttest' function error in Matlab - "??? Error using ==> nanmean. Too many input arguments."

Following is the statement inside my code I am using in Matlab: [h_sgsim,p_sgsim,ci_sgsim] = ttest(q_mean_sgsim_yearly_TankMethod,q_mean_reference_truth_yearly_TankMethod(1)); where q_mean_sgsim_yearly_TankMethod is a 100 X 1 vector and q_mean_reference_truth_yearly_TankMethod(1) is a scalar. I don't know why its giving the error ev...

vcovHC and confidence interval

Is it possible to have confint use the robust vcov obtained by vcovHC (from the sandwich package) after fitting a model? ...