Assignmnet: Simple Random Sampling With Replacement Some Solutions.

Slides:



Advertisements
Similar presentations
Rare Events, Probability and Sample Size. Rare Events An event E is rare if its probability is very small, that is, if Pr{E} ≈ 0. Rare events require.
Advertisements

Probabilistic models Haixu Tang School of Informatics.
Simple Logistic Regression
1 Contingency Tables: Tests for independence and homogeneity (§10.5) How to test hypotheses of independence (association) and homogeneity (similarity)
Probability Event a result or outcome of a procedure Simple Event an event that can’t be broken down Sample Space the set of all possible simple events.
Probability (Kebarangkalian) EBB 341. Probability and Statistics Parameters population sample before observation after observation data random variables.
Chapter 5: Probability Concepts
WFM 5201: Data Management and Statistical Analysis
Today Today: Chapter 9 Assignment: 9.2, 9.4, 9.42 (Geo(p)=“geometric distribution”), 9-R9(a,b) Recommended Questions: 9.1, 9.8, 9.20, 9.23, 9.25.
Assignmnet: Simple Random Sampling With Replacement Some Solutions.
1 Introduction to Biostatistics (PUBHLTH 540) Sampling.
Statistical Methods Descriptive Statistics Inferential Statistics Collecting and describing data. Making decisions based on sample data.
Slide 1 Statistics Workshop Tutorial 4 Probability Probability Distributions.
Consecutive Numbers Algebra I.
CHAPTER 5 PROBABILITY. CARDS & DICE BLACKRED CLUBSPADEDIAMONDHEARTTOTAL ACE11114 FACE CARD (K, Q, J) NUMBERED CARD (1-9) TOTAL13 52.
© 2010 Pearson Education Inc.Goldstein/Schneider/Lay/Asmar, CALCULUS AND ITS APPLICATIONS, 12e – Slide 1 of 15 Chapter 12 Probability and Calculus.
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
Estimating Probabilities by Collecting Data
Theory of Probability Statistics for Business and Economics.
1 Experimental Statistics - week 2 Review: 2-sample t-tests paired t-tests Thursday: Meet in 15 Clements!! Bring Cody and Smith book.
3-2 Random Variables In an experiment, a measurement is usually denoted by a variable such as X. In a random experiment, a variable whose measured.
Unit 3 Review. Sec 5.1: Designing Samples Define the terms population and sample. Define each type of sample: Probability Sample, Simple Random Sample.
Sampling With Replacement How the program works a54p10.sas.
Introduction to Probability  Probability is a numerical measure of the likelihood that an event will occur.  Probability values are always assigned on.
Chapter 6 Lesson 9 Probability and Predictions pgs What you’ll learn: Find the probability of simple events Use a sample to predict the actions.
Probability Distributions u Discrete Probability Distribution –Discrete vs. continuous random variables »discrete - only a countable number of values »continuous.
1 Filling in the blanks with PROC FREQ Bill Klein Ryerson University.
Chapter 7 Probability. 7.1 The Nature of Probability.
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Copyright © Cengage Learning. All rights reserved. Elementary Probability Theory 5.
Chapter Probability © 2010 Pearson Prentice Hall. All rights reserved 3 5.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Probability 5.
YET ANOTHER TIPS, TRICKS, TRAPS, TECHNIQUES PRESENTATION: A Random Selection of What I Learned From 15+ Years of SAS Programming John Pirnat Kaiser Permanente.
Simulating Experiments Introduction to Random Variable.
Lesson 8 - Topics Creating SAS datasets from procedures Using ODS and data steps to make reports Using PROC RANK Programs in course notes LSB 4:11;5:3.
Chapter 4 Probability, Randomness, and Uncertainty.
Section 11-8 Geometric Probability. probability The chance or likelihood that an event will occur. - It is always a number between zero and one. - It.
+ Chapter 5 Overview 5.1 Introducing Probability 5.2 Combining Events 5.3 Conditional Probability 5.4 Counting Methods 1.
CHAPTER 2: Basic Summary Statistics
Chapter IV Statistic and simple probability. A. Meaning of probability 1.Random event 2.Simple event 3.Relative frequent and probability of an event Relative.
MEGN 537 – Probabilistic Biomechanics Ch.5 – Determining Distributions and Parameters from Observed Data Anthony J Petrella, PhD.
 Page 568: Insurance Rates  Probability theory  Chance or likelihood of an event happening  Probability  Each even is assigned a number between.
PROBABILITY bability/basicprobability/preview.we ml.
Methods of Assigning Probabilities l Classical Probability; l Empirical Probability; and l Subjective Probability l P (A) = N(A) / N l P (X) = ƒ (X) /
Discrete Math Section 17.5 Recognized types of sampling procedures and estimate population characteristics based on samples The purpose of sampling is.
Title of Science Fair Project
Applied Business Forecasting and Regression Analysis
Chapter 3 Probability.
Probability Imagine tossing two coins and observing whether 0, 1, or 2 heads are obtained. It would be natural to guess that each of these events occurs.
STATISTICS AND PROBABILITY IN CIVIL ENGINEERING
What is Probability? Quantification of uncertainty.
Consecutive Numbers Algebra I.
Probability Distributions
Axioms, Interpretations and Properties
Chapter 8: Fundamental Sampling Distributions and Data Descriptions:
Ch. 10 Comparing Two Populations or Groups
Probability Distributions
Chapter 5: Some Discrete Probability Distributions:
3-2 Random Variables denoted by a variable such as X. In an experiment, a measurement is usually denoted by a variable such as X. In a random experiment,
Probability Key Questions
The Variance How to calculate it.
III. More Discrete Probability Distributions
Producing Descriptive Statistics
Non-parametric Analysis of the Variance in SAS®
Introduction to SAS Essentials Mastering SAS for Data Analytics
Definition of Probability
Probability.
Probability Models 7. SP.7 Develop a probability model and use it to find probabilities of events. Compare probabilities from a model to observed frequencies;
Chapter 8: Fundamental Sampling Distributions and Data Descriptions:
Fundamental Sampling Distributions and Data Descriptions
Presentation transcript:

Assignmnet: Simple Random Sampling With Replacement Some Solutions

Question 2: SRSWR a. What is the formula to estimate the sample variance

Question 2. (SRSWR) 2c. (a54p10.sas). Do any samples occur where the same patient was selected on each of the selections? Which ones? What is the chance (probability) that this will happen? Is the number of times that the same subject was selected each time equal to what you would expect? Why or why not.

2c. (a54p10.sas). Do any samples occur where the same patient was selected on each of the selections? (Note: sid1, sid2, etc are the subject IDs) PROC PRINT DATA=d NOOBS SPLIT="*"; VAR sample sid1-sid3 ; TITLE2 "Table 2. List of &nsamp Simple Random Samples "; RUN;

2c. (a54p10.sas). Table 2. List of 40 Simple Random Samples 1st 2nd 3rd ID ID ID sample Sel. Sel. Sel Subject 3 selected each time etc

2c. (a54p10.sas). Do any samples occur where the same patient was selected on each of the selections? (Add these statements to tabulate distinct samples) –DATA d1; – SET d; – snum=100*sid1+10*sid2+sid3; –RUN; –PROC PRINT DATA=d1 NOOBS SPLIT="*"; – VAR sample snum sid1-sid3 ; – TITLE2 "Table 2a. List of &nsamp Simple Random Samples "; – RUN; –PROC FREQ DATA=d1; – TABLES snum; – TITLE2 "Table 2b. Subjects in &nsamp Samples with replacement"; – RUN;

2c. (a54p10.sas). Table 2b. Subjects in 40 Samples with replacement The FREQ Procedure Cumulative Cumulative snum Frequency Percent Frequency Percent ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ The three selections are subject

Assignment: SRSWR 2c. (a54p10.sas). What is the chance (probability) that the same patient was selected on each of the selections? # of samples: # of samples with same selection: 111, 222, 333, 444, 555, 666

Assignment: SRSWR 2c. (a54p10.sas). Is the number of times that the same subject was selected each time equal to what you would expect? # of samples expected: No- we observed 3, and only expected 1.11 samples. This may be because we only took 40 samples.

Question 3: SRSWR a. If we count samples as different if either the subjects included are different or if the order of selection of subjects is different, how many different possible sample could we select? Note that N=6, n=3 Sample ______ _______ ______ Position 1 Position 2 Position 3 NNN This counts the samples as different for all subjects selected in all orders.

3b. How many times would you expect that each sample would occur if 4320 samples were selected? Question 3: SRSWR

g. Suppose that three different subjects are selected. In how many different orders can 3 different subjects be selected (this is the number of permutations). ID=1, ID=2, ID=3 Sample ______ _______ ______ Position 1 Position 2 Position 3 n-2n-1n

When Sampling Without Replacement: 3a. If we count samples as different if either the subjects included are different, or if the order of selection of subjects is different, how many different possible samples could we select? N=6, n=3 Sample ______ _______ ______ Position 1 Position 2 Position 3 N-2N-1N

When Sampling Without Replacement: 3b. How many times would you expect that each sample would occur if 4320 samples were selected?

When Sampling Without Replacement: 3b. In how many different orders can the same three subjects be selected? (This is the number of permutations.)