Μετάβαση στο κύριο περιεχόμενο

Confidence Interval Coverage Binomial

Ένα μαθησιακό στοιχείο που απεικονίζει την κάλυψη των διαστημάτων εμπιστοσύνης για τον μέσο όρο μιας διωνυμικής κατανομής.

Επιλογές

  • intro | (node|string): παρακάμπτει το προεπιλεγμένο (διαδραστικό) εισαγωγικό κείμενο. Default: none.
  • quartileNotation | boolean: ελέγχει αν θα χρησιμοποιείται η αναγραφή τεταρτημορίων στο εισαγωγικό κείμενο. Default: true.
  • sampleStats | boolean: ελέγχει αν θα πρέπει να μπορεί κανείς να εναλλάσσεται μεταξύ της χρήσης της αναλογίας του δείγματος ή της γνωστής πιθανότητας επιτυχίας του πληθυσμού κατά τον υπολογισμό του τυπικού σφάλματος. Default: true.

Παραδείγματα

Live Editor
Αποτέλεσμα

Confidence Interval Coverage for Sample Proportion

Now we will switch to asking a Yes/No question about a population. We are interested in estimating the true population proportion of "Yes" answers (for example, what proportion of the population has blue eyes?). We can take a sample of size , find how many observations in our sample are a "Yes" (X), and then estimate the true proportion with . Then . Our confidence interval is then .

For our choice of sample size (n), true proportion , and confidence level, we will simulate different samples from our normal distribution and calculate the corresponding sample proportions and confidence intervals.

Change parameters


0.010.99

Confidence Intervals

12345678910111213141516171819200.20.40.60.81.0

Of the 20 confidence intervals, 18 capture the true proportion (coverage: 0.9).