Skip to main content

All Questions

2 votes
1 answer
145 views

Expected Value Chi Square distribution

I'm trying to simulate the distribution from the sample variance $s^2$ and compare it with the theoretical distribution. Therefore, I perform a fairly simple simulation (upfront, I'm not a ...
Mexx's user avatar
  • 33
1 vote
1 answer
23 views

Forecasting positive time series with missing values and few observations

I am working on forecasting a positive time series dataset of prices with missing values and only a limited number of observations. Specifically, I have 150 observations, one per week, and I need to ...
anasse's user avatar
  • 11
1 vote
0 answers
70 views

Should I use a one-sided or a two-sided confidence interval?

Context: I am teaching a subject and I prepared a multiple-choice quiz for my students. To have a feeling for which is an acceptable grade I decided to compute a baseline score, which is the score ...
rusiano's user avatar
  • 566
0 votes
0 answers
31 views

Inference for Binomial proportion with estimated p but unknown N

Let's say I own a bakery that, among other desserts, sells one really tasty chocolate cake. It's so good that I've estimated that I've estimated 80% of my daily customers will buy a piece of cake, ...
stharms's user avatar
7 votes
1 answer
537 views

Understanding importance sampling in Monte Carlo integration

Introduction I'm studying importance sampling and I'm trying to figure out by myself, with a couple of examples, what are the main benefits with respect to standard Monte Carlo integration. I'm not ...
matteogost's user avatar
0 votes
0 answers
289 views

How to correctly simulate the idea of confidence interval in R

I want to simulate/show the idea of confidence intervals but am not entirely sure if my approach is correct. If I‘m not mistaken, a confidence interval can be understood as: if we would draw many ...
deschen's user avatar
  • 581
2 votes
0 answers
34 views

What's the theoretical basis of sampling ols regression coefficients from a multivariate $t$-distribution instead of a multivariate normal?

In their 2000 paper "Making the Most of Statistical Analyses: Improving Interpretation and Presentation", Gary King et al. present a method of using simulation to compute quantities of ...
COOLSerdash's user avatar
1 vote
2 answers
454 views

Classical Confidence Intervals vs. Bootstrap Confidence Intervals

Suppose I have some data that includes height and weight measurements for 1000 people - I am interested in calculating the Correlation Coefficient to see if there exists some correlation between ...
stats_noob's user avatar
2 votes
3 answers
422 views

Compare single observed value to simulated distribution

I have a distribution of values that I have simulated for a null hypothesis data generating process. I have a single real-world observation that is wayyyy outside the percentiles of this distribution. ...
Ellen's user avatar
  • 41
1 vote
0 answers
57 views

Why is my 95% CI from a simulation being either 100% or 0%?

So what I intended doing with the code is to simulate dataset with the outcome being number of parasites that died (yi) out of every n=50 parasites on the host. There are 2 treatment groups (control ...
soothe's user avatar
  • 11
5 votes
2 answers
156 views

Doubt about level of confidence

I run 100 simulations with CI at 99% and different seeds. For each simulation I created a report that contains different performance indexes (means) with their CI. However, I noticed that one index ...
miticollo's user avatar
  • 175
2 votes
1 answer
2k views

Why do confidence intervals width increase when sample size increases "a bit"?

I'll try to explain better. I sampled a LogNormal random variate and I extracted 12001 and 12002 samples (with same initial seed for Random Number Generator). In the first case the half width of ...
miticollo's user avatar
  • 175
1 vote
0 answers
81 views

Methods to calculate confidence interval for proportion with potential bounds?

I am trying to calculate the confidence interval on a time series proportion. For example, I have 1000 years of data, and I use 20 days to calculate some proportion. The thing is, I know the ...
confused's user avatar
  • 3,273
0 votes
0 answers
74 views

Confidence inerval for Empirical Type I error simulation alpha = 0.05

I'm doing a Type I error simulation(10,000 times) at alpha = 0.05. I wonder how can I calculate a confidence interval for the simulated restuls? At a 95% confidence interval, I suppose I can use xbar +...
Charlotte's user avatar
6 votes
3 answers
2k views

Coverage for confidence intervals

I would like to know if my simulation approach to find the coverage for a confidence interval of a prediction $\boldsymbol{\beta}^T\boldsymbol{X}_N$ is correct I generated a dataset of $n$ samples of ...
Ejrionm's user avatar
  • 187

15 30 50 per page