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.
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 data set orion.order_fact contains a group of orders across several years, sorted by Order_Date. Partial Listing of orion.order_fact (617 Total Observations, 12 Total Variables) Order_ Order_ID 1230058123 1230080101 1230106883 1230147441 1230315085 Type 1 2 2 1 1 Date 11JAN2003 15JAN2003 20JAN2003 28JAN2003 27FEB2003 Order_ Quantity 1 1 1 2 3 a. Orion Star would like to analyze 2005 data by creating accumulating totals for the number of items sold from retail, catalog, and Internet channels. The value of Order_Type indicates whether the sale was retail (=1), catalog (=2), or Internet (=3). Create a data set named work.typetotals with accumulating totals for TotalRetail, TotalCatalog, and TotalInternet, as described above. The variable Quantity contains the number of items sold for each order. For testing your program in this step, read only the first 10 observations that satisfy the WHERE statement. Remember to process only those rows where Order_Date occurs in 2005. b. Continue testing your program by printing the results from step a. Print all the variables and check to make sure that the program is correctly calculating values for the accumulating totals. PROC PRINT Output Obs 1 2 3 4 5 Customer_ID 195 36 183 16 16 Obs Quantity 1 2 2 4 3 1 4 1 5 1 Employee_ID 120150 99999999 120121 99999999 99999999 Total_Retail_ Price $193.40 $525.20 $16.00 $115.00 $138.70 Street_ID 1600101663 9260128237 1600100760 3940105865 3940105865 Order_ Date 02JAN2005 11JAN2005 12JAN2005 12JAN2005 17JAN2005 CostPrice_ Per_Unit $48.45 $58.55 $6.35 $52.40 $62.50 Delivery_ Date 02JAN2005 14JAN2005 12JAN2005 14JAN2005 19JAN2005 Discount . . . . . Order_ID 1234437760 1234534069 1234537441 1234538390 1234588648 Total Retail 2 2 3 3 3 Order_ Type 1 3 1 2 2 Total Catalog 0 0 0 1 2 Product_ID 230100600028 240800100026 240100200001 220200300015 230100500101 Total Internet 0 4 4 4 4 c. When the results from steps a and b are correct, do the following: Modify the program to read all observations satisfying the WHERE statement. Keep only the variables Order_Date, Order_ID, TotalRetail, TotalCatalog, and TotalInternet. Print your results with an appropriate title. Show the final code and the output showing the first ten observations from the proc print. 2. Summarizing Data Using the DATA Step The data set orion.order_summary contains information about sales in a particular year for each customer, separated by month. For a given customer, there might be some months that he did not place an order. Partial Listing of orion.order_summary (101 Total Observations) Customer_ID Month 5 5 5 5 10 10 Order_ Sale_Amt 5 6 9 12 3 4 478.00 126.80 52.50 33.80 32.60 250.80 a. Sort the input data set, orion.order_summary, by Customer_ID. Use the OUT= option to avoid overwriting the original data set. Name the output data set work.sumsort. b. Create a new data set showing a total sales value for each customer. Name the new data set work.customers. Name the new variable Total_Sales. This variable contains the total of sales across all months for each customer. c. Print your result. Display Total_Sales with a DOLLAR11.2 format. Add an appropriate title. Partial PROC PRINT Output (37 Total Observations) Total Sales to each Customer Obs Customer_ID Total_Sales 1 2 3 4 5 5 10 11 12 18 $691.10 $3,479.09 $78.20 $253.20 $29.40 Show the final code and the output showing the first ten observations from the proc print. 3. Summarizing and Grouping Data Using the DATA Step The data set orion.order_qtrsum contains information about sales in a particular year for each customer, separated by month. For a given customer, there might be some months (and quarters) that the customer did not place an order. The variable Order_Qtr contains the appropriate quarter. Partial Listing of orion.order_qtrsum (101 Total Observations) Customer_ID 69 70187 10 70079 70165 92 41 171 41 69 49 Order_ Qtr Order_ Month Sale_Amt 4 4 2 4 3 1 3 2 2 3 4 10 11 6 10 7 3 8 4 5 9 12 3.2 8.2 12.2 14.6 16.6 16.9 17.6 19.1 19.9 23.5 24.8 The data set is not sorted by Customer_ID and Order_Qtr. a. Create a data set named work.qtrcustomers that summarizes sales based on customer and quarter. The variable Total_Sales should contain the total sales for each quarter within each Customer_ID value. Create a variable named Num_Months that counts the total months within each quarter that the customer had an order. b. Print your results. Display Total_Sales with a DOLLAR11.2 format. Add an appropriate title. Partial PROC PRINT Output (74 Total Observations) Total Sales to each Customer for each Quarter Obs Customer_ID 1 2 3 4 5 Order_ Qtr 5 5 5 10 10 Total_Sales 2 3 4 1 2 Num_ Months $604.80 $52.50 $33.80 $32.60 $342.80 2 1 1 1 3 Show the final code and the output showing first the ten observations from the proc print. 4. Using Formatted Input and the Subsetting IF Statement The raw data file sales1.dat has employee information for the Australian and U.S. sales staff. The record layout is shown in the table below: Layout for sales1.dat Field Description Starting Column Length of Field Data Type Employee ID 1 6 Numeric First Name 8 12 Character Last Name 21 18 Character Gender 40 1 Character Job Title 43 20 Character Salary 64 8 Country 73 2 Birth Date 76 10 Hire Date 87 10 Numeric $100,000 Character 'AU' or 'US' Numeric mm/dd/yyyy Numeric mm/dd/yyyy a. Create two SAS data sets from the raw data file, and base them on the country of the trainee. Name the data sets US_trainees and AU_trainees. For this exercise, a trainee is anyone that has the job title of Sales Rep. I Each data set should contain the fields indicated by arrows in the layout table. Write only U.S. trainees to the US_trainees data set and only Australian trainees to the AU_trainees data set. Do not keep the Country variable in the output data sets. b. Print both of the data sets with appropriate titles. Partial PROC PRINT Output for AU_trainees (21 Total Observations) Australian Trainees Employee_ ID Last_Name 120123 120124 120130 Job_Title Hotstone Daymond Lyon Sales Rep. I Sales Rep. I Sales Rep. I Salary Hire_ Date 26190 26480 26955 17440 17226 17287 Partial PROC PRINT Output for US_trainees (42 Total Observations) US Trainees Employee_ ID 121023 121028 121029 Last_Name Fuller Smades Mcelwee Job_Title Salary Hire_ Date 26010 26585 27225 17287 17471 17501 Sales Rep. I Sales Rep. I Sales Rep. I Show the final code and the output showing the first ten observations from both proc prints. 5. Reading Multiple Input Records per Observation The raw data file sales2.dat has employee information for the Australian and U.S. sales staff. Information for each employee is in three lines of raw data. The record layouts are shown below. Line 1 layout Field Description Starting Column Length of Field Data Type Employee ID 1 6 Numeric First Name 8 12 Character Last Name 21 18 Character Line 2 layout Field Description Starting Column Length of Field Job Title 1 20 Hire Date 22 10 Salary 33 8 Data Type Character Numeric mm/dd/yyyy Numeric for example, $100,000 Line 3 layout Field Description Starting Column Length of Field Data Type Gender 1 1 Character Birth Date 3 10 Numeric mm/dd/yyyy Country 14 2 Character c. Create a new SAS data set named sales_staff2 that contains the fields indicated by arrows in the layout table. d. Print sales_staff2 and add an appropriate title. Partial PROC PRINT Output (165 Total Observations) Australian and US Sales Staff Employee_ ID 120102 120103 120121 Last_Name Zhou Dawes Elvish Job_Title Hire_ Date Salary Sales Manager Sales Manager Sales Rep. II 10744 5114 5114 108255 87975 26600 Show the final code and the output showing the first ten observations from the proc print. 6. Working with Mixed Record Types The raw data file sales3.dat has employee information for the Australian and U.S. Ssales staff. Information for each employee is in two lines of raw data. The record layouts are shown below. Line 1 layout Field Description Starting Column Length of Field Data Type Employee ID 1 6 Numeric First Name 8 12 Character Last Name 21 18 Character Gender 40 1 Character Job Title 43 20 Character Line 2 layout for Australian employees Field Description Starting Column Length of Field Data Type Salary 1 8 Numeric $100,000 Country 10 2 Character Birth Date 13 10 Hire Date 24 10 Numeric dd/mm/yyyy Numeric dd/mm/yyyy Line 2 layout for U.S. employees Field Description Startin g Column Length of Field Data Type Salary 1 8 Numeric $100,000 Country 10 2 Character Birth Date 13 10 Hire Date 24 10 Numeric mm/dd/yyyy Numeric mm/dd/yyyy e. Create two new SAS data sets, US_sales and AU_sales, that contain the fields indicated by arrows in the layout table. Write only U.S. employees to the US_sales data set and only Australian employees to the AU_sales data set. Do not include the Country variable in the output data sets. The salary and hire date values are different for Australian and U.S. employees. Be sure to use the correct informats in each INPUT statement. f. Print both of the data sets with appropriate titles. Partial PROC PRINT Output for AU_sales (63 Total Observations) Australian Sales Staff Employee_ ID 120102 120103 120121 120122 120123 Last_Name Zhou Dawes Elvish Ngan Hotstone Job_Title Sales Manager Sales Manager Sales Rep. II Sales Rep. II Sales Rep. I Salary 108255 87975 26600 27475 26190 Hire_ Date 10744 5114 5114 6756 17440 Partial PROC PRINT Output for US_sales (102 Total Observations) US Sales Staff Employee_ ID 120261 121018 121019 121020 121021 Last_Name Highpoint Magolan Desanctis Ridley Farren Job_Title Chief Sales Officer Sales Rep. II Sales Rep. IV Sales Rep. IV Sales Rep. IV Salary 243190 27560 31320 31750 32985 Hire_ Date 10074 5114 16223 15461 12478 Show the final code and the output showing the first ten observations from both proc prints.
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