# Register now to access 7 million high quality study materials (What's Course Hero?) Course Hero is the premier provider of high quality online educational resources. With millions of study documents, online tutors, digital flashcards and free courseware, Course Hero is helping students learn more efficiently and effectively. Whether you're interested in exploring new subjects or mastering key topics for your next exam, Course Hero has the tools you need to achieve your goals.

6 Pages

### hw7

Course: STAT 506, Fall 2010
School: Purdue University -...
Rating:

Word Count: 1460

#### Document Preview

506Homework STAT 7 For most problems you will need to access the data in the PRG2 folder. Use the libname statement we learned to load this each time you work on your assignments calling the library orion. I tried to bold the parts where I expect you to actually show me something in your homework solutions if it is not obvious. Do the following problems. 1. Creating Accumulating Totals with Conditional Logic The...

Register Now

#### Unformatted Document Excerpt

Coursehero

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Purdue University - Main Campus - STAT - 506
Chapter 1: Introduction1.1 Course Logistics1.2 Purpose of the Macro Facility1.3 Program Flow1Chapter 1: Introduction1.1 Course Logistics1.2 Purpose of the Macro Facility1.3 Program Flow2Objectives3Explain the naming convention that is used for
Purdue University - Main Campus - STAT - 506
Chapter 2: Macro Variables2.1 Introduction to Macro Variables2.2 Automatic Macro Variables2.3 Macro Variable References2.4 User-Defined Macro Variables2.5 Delimiting Macro Variable References2.6 Macro Functions1Chapter 2: Macro Variables2.1 Intro
Purdue University - Main Campus - STAT - 506
Chapter 3: Macro Definitions3.1 Defining and Calling a Macro3.2 Macro Parameters3.3 Macro Storage (Self-Study)1Chapter 3: Macro Definitions3.1 Defining and Calling a Macro3.2 Macro Parameters3.3 Macro Storage (Self-Study)2Objectives3Define and
Purdue University - Main Campus - STAT - 506
Chapter 4: DATA Step and SQL Interfaces4.1 Creating Macro Variables in the DATA Step4.2 Indirect References to Macro Variables4.3 Retrieving Macro Variables in the DATA Step(Self-Study)4.4 Creating Macro Variables in SQL1Chapter 4: DATA Step and SQ
Purdue University - Main Campus - STAT - 506
Chapter 5: Macro Programs5.1 Conditional Processing5.2 Parameter Validation5.3 Iterative Processing5.4 Global and Local Symbol Tables1Chapter 5: Macro Programs5.1 Conditional Processing5.2 Parameter Validation5.3 Iterative Processing5.4 Global a
Purdue University - Main Campus - STAT - 506
Chapter 6: Learning More6.1: SAS Resources6.2: Beyond This Course1Chapter 6: Learning More6.1: SAS Resources6.2: Beyond This Course2Objectives3Identify areas of support that SAS offers.EducationComprehensive training to deliver greater valuet
Purdue University - Main Campus - STAT - 506
Chapter 1: Introduction1.1 Course Logistics1.2 An Overview of Foundation SAS1Chapter 1: Introduction1.1 Course Logistics1.2 An Overview of Foundation SAS2Objectives3Explain the naming convention that is used for thecourse files.Compare the thr
Purdue University - Main Campus - STAT - 506
Chapter 2: Getting Started with SAS2.1 Introduction to SAS Programs2.2 Submitting a SAS Program1Chapter 2: Getting Started with SAS2.1 Introduction to SAS Programs2.2 Submitting a SAS Program2Objectives3List the components of a SAS program.Stat
Purdue University - Main Campus - STAT - 506
Chapter 3: Working with SAS Syntax3.1 Mastering Fundamental Concepts3.2 Diagnosing and Correcting Syntax Errors1Chapter 3: Working with SAS Syntax3.1 Mastering Fundamental Concepts3.2 Diagnosing and Correcting Syntax Errors2Objectives3Identify t
Purdue University - Main Campus - STAT - 506
Chapter 4: Getting Familiar withSAS Data Sets4.1 Examining Descriptor and Data Portions4.2 Accessing SAS Data Libraries4.3 Accessing Relational Databases (Self-Study)1Chapter 4: Getting Familiar withSAS Data Sets4.1 Examining Descriptor and Data P
Purdue University - Main Campus - STAT - 506
Chapter 5: Reading SAS Data Sets5.1 Introduction to Reading Data5.2 Using SAS Data as Input5.3 Subsetting Observations and Variables5.4 Adding Permanent Attributes1Chapter 5: Reading SAS Data Sets5.1 Introduction to Reading Data5.2 Using SAS Data
Purdue University - Main Campus - STAT - 506
Chapter 6: Reading Excel Worksheets6.1 Using Excel Data as Input6.2 Doing More with Excel Worksheets (Self-Study)1Chapter 6: Reading Excel Worksheets6.1 Using Excel Data as Input6.2 Doing More with Excel Worksheets (Self-Study)2Objectives3Use th
Purdue University - Main Campus - STAT - 506
Chapter 7: Reading Delimited Raw Data Files7.1 Using Standard Delimited Data as Input7.2 Using Nonstandard Delimited Data as Input1Chapter 7: Reading Delimited Raw Data Files7.1 Using Standard Delimited Data as Input7.2 Using Nonstandard Delimited D
Purdue University - Main Campus - STAT - 506
Chapter 8: Validating and Cleaning Data8.1 Introduction to Validating and Cleaning Data8.2 Examining Data Errors When Reading Raw Data Files8.3 Validating Data with the PRINT and FREQ Procedures8.4 Validating Data with the MEANS andUNIVARIATE Procedu
Purdue University - Main Campus - STAT - 506
Chapter 9: Manipulating Data9.1 Creating Variables9.2 Creating Variables Conditionally9.3 Subsetting Observations1Chapter 9: Manipulating Data9.1 Creating Variables9.2 Creating Variables Conditionally9.3 Subsetting Observations2Objectives3Crea
Purdue University - Main Campus - STAT - 511
Statistical Methods (STAT 511)Midterm #1, Spring 20118:00-10:00pm, LWSN B155Thursday, February 24, 2011There are totally 27 points in the exam. The students with score higher than or equal to 25points will receive 25 points. Please write down your na
Purdue University - Main Campus - STAT - 511
Statistical Methods (STAT 511)Midterm #1, Spring 20118:00-10:00pm, LWSN B155Thursday, February 24, 2011There are totally 27 points in the exam. The students with score higher than or equal to 25points will receive 25 points. Please write down your na
Purdue University - Main Campus - STAT - 511
STAT 511Midterm 1Formula SheetnSample mean y yi 1niynnSample variance s 2 yi y 2i 1n 1nyi 12i ny 2n 1nSample standard deviation (SD) s Pk ,n n!,(n k )! yi y 2i 1n 1 n Pk ,nn! k k ! k !(n k )!Binomial distribution, Y ~
Purdue University - Main Campus - STAT - 511
Homework1_Spring2012Page 1Homework1_Spring2012Page 2Homework1_Spring2012Page 3Homework1_Spring2012Page 4
Purdue University - Main Campus - STAT - 511
Homework2Page 1Homework2Page 2Homework2Page 3Homework2Page 4
Purdue University - Main Campus - STAT - 511
Homework3Page 1Homework3Page 2Homework3Page 3Homework3Page 4Homework3Page 5
Purdue University - Main Campus - STAT - 511
STAT 511-2 Homework 1Page 1STAT 511-2 Homework 1Page 2STAT 511-2 Homework 1Page 3STAT 511-2 Homework 1Page 4STAT 511-2 Homework 1Page 5STAT 511-2 Homework 1Page 6STAT 511-2 Homework 1Page 7
Purdue University - Main Campus - STAT - 511
STAT 511-2 Homework 2Page 1STAT 511-2 Homework 2Page 2STAT 511-2 Homework 2Page 3STAT 511-2 Homework 2Page 4
Purdue University - Main Campus - STAT - 511
STAT 511 Homework 3Page 1STAT 511 Homework 3Page 2STAT 511 Homework 3Page 3STAT 511 Homework 3Page 4
Purdue University - Main Campus - STAT - 511
STAT 511-2 Homework 4 SolutionsPage 1STAT 511-2 Homework 4 SolutionsPage 2STAT 511-2 Homework 4 SolutionsPage 3
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 6: Populations, Samples and ProcessesDevore: Section 1.1-1.2Oct, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Populations and Sa
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 2: Measures of Location and VariabilityDevore: Section 1.3-1.4Oct, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Sample mean The
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 1: Introduction to Probability. Sample spaces, events, probabilityaxiomsDevore: Section 2.1-2.2Aug, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue Uni
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2012Lecture 4: Counting Techniques, Conditional Probability and IndependenceDevore: Section 2.3-2.5Jan 2012Page 1Statistics 511: Statistical MethodsDr. LevinePurdue University
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 5: Discrete Random Variables, Distributions and MomentsDevore: Section 3.1-3.3Feb, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 6: The Binomial, Hypergeometric, Negative Binomialand Poisson DistributionsDevore: Section 3.4-3.6Sept, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 8: Continuous Random Variables: an IntroductionDevore: Section 4.1-4.3Feb, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Cont
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 10: Other Continuous Distributions and ProbabilityPlotsDevore: Section 4.4-4.6October, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 12: Some general concepts of point estimationDevore: Section 6.1October, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Point esti
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture 11: Random Samples, Weak Law of Large Numbersand Central Limit TheoremDevore: Section 5.3-5.5October, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue U
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 12: Condence IntervalsDevore: Section 7.1-7.2March, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Motivation Why do we need
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 13: Additional Condence Intervals Related TopicsDevore: Section 7.3-7.4March, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011t
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 14: Introduction to Hypothesis TestingDevore: Section 8.1March, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011What is statist
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 15: Tests about Population Means and PopulationProportionsDevore: Section 8.2-8.3April, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySp
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 17: P-values and some Additional Issues concerningTestingDevore: Section 8.4-8.5April, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpr
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011Lecture 18: Inferences Based on Two SamplesDevore: Section 9.1-9.3Apr, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversitySpring 2011z Tests and Cond
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2010Lecture 19: One-way Analysis of Variance (ANOVADevore: Section 10.1-10.3Aug, 2010Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2010Introduction
Purdue University - Main Campus - STAT - 511
Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011Lecture : Simple linear regression: Model and its estimationDevore: Section 12.1-12.2Dec, 2011Page 1Statistics 511: Statistical MethodsDr. LevinePurdue UniversityFall 2011
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012J a n 9, 2012Jun Xie1. Go over the course syllabus and confirm the midterm schedules and office hours.Ch 1 Introduction and Descriptive StatisticsStatistics is the science of understanding data and of making decisions in the fac
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Jan 11, 2012Jun Xie1. Finish the remaining contents from last lecture on graphical representations of data.1.2 Pictorial methods in descriptive statistics Making histogramExample stem length for peppers (n=15)12.412.213.410
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Jan 13, 2012Jun Xie1. Summary of graphical tools.1.3 Measures of locationSample MeanExample 14 crack length of iron and steel (m)x1 = 16.1 x2 = 9.6 x3 = 24.9 x4 = 20.4 x5 = 12.7x6 = 21.2 x7 = 30.2 x8 = 25.8 x9 = 18.5 x10 = 10
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 5Jan 20, 2012Jun Xie2 Introduction of ProbabilityProbability is a chance measurement defined on sample space and for events of a random experiment.An experiment is any activity or process whose outcome is subject to unc
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 6Jan 23, 2012Jun XieFinish Example 13 and 16, more probability propositions, and equally likely outcomes from last post.2.3 Counting TechniquesProduct rule for ordered pairsOrdered pair: if O1 and O2 are objects, then
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 7Jan 25, 2012Jun XieFinish the formulas of permutation and combination, and the examples in the last post.2.3 Counting TechniquesA little more complicated counting problemExample 22 A particular iPod playlist contains
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 8Jan 27, 2012Jun XieExtra example on counting from the homework problem; Finish the definition of conditional probabilityand examples in the last post.2.4 Conditional probabilityThe multiplication ruleSimilarly, consi
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 9Jan 30, 2012Jun XieReview the Bayes theorem and go over examples.2.5 IndependenceDefinitionTwo events A and B are independent if P(A | B) = P(A) and are dependent otherwise.PropositionA and B are independent if and
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 10Feb 1, 2012Jun Xie3. Discrete random variables and probability distributionsRandom variables are numerical representations of outcomes of a random experiment.DefinitionFor a given sample space S of some experiment, a
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 11Feb 3, 2012Jun Xie3.4 The binomial probability distributionAn experiment that satisfies the following conditions is called a binomial experiment.1. The experiment consists of a sequence of n smaller experiments called
Purdue University - Main Campus - STAT - 511
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 13Feb 8, 2012Jun XieFinish contents from the last post, Poisson distribution and pdf of continuous rv.4.1 Probability density function (continued)DefinitionA continuous rv X is said to have a uniform distribution on th
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 14Feb 10, 2012Jun XieFinish the content of cumulative distribution function in the last post.4.2Expected valuesDefinitionThe expected or mean value of a continuous rvX with pdf f (x) is x = E(X) =PropositionIf X is
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 15Feb 13, 2012Jun Xie4.3 The normal distributionThe standard normalDefinitionThe normal distribution with parameter values = 0 and = 1 is called the standard normaldistribution.A random variable having a standard nor
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 16Feb 17, 2012Jun Xie4.3 The normal distributionExample 16 Reaction time for an in-traffic response to a brake signal from standard brake lights can bemodeled with a normal distribution having mean value 1.25 sec and st
Purdue University - Main Campus - STAT - 511
STAT 511-2Spring 2012Lecture 17Feb 20, 2012Jun Xie4.4 The exponential distributionThe exponential distribution is frequently used as a model for the distribution of times between theoccurrence of successive events, such as customers arriving at a s
Purdue University - Main Campus - STAT - 511
Purdue University - Main Campus - STAT - 511