Selected Statistics Examples from Lectures. Matlab: Histograms >> y = [1 3 5 8 2 4 6 7 8 3 2 9 4 3 6 7 4 1 5 3 5 8 9 6 2 4 6 1 5 6 9 8 7 5 3 4 5 2 9 6.

Slides:



Advertisements
Similar presentations
Class 6: Hypothesis testing and confidence intervals
Advertisements

Lecture 5 1 Continuous distributions Five important continuous distributions: 1.uniform distribution (contiuous) 2.Normal distribution  2 –distribution[“ki-square”]
Presentation on Probability Distribution * Binomial * Chi-square
Ch8 Inference concerning variance
Inference for Regression
CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
Statistics review of basic probability and statistics.
1 Midterm Review. 2 Econ 240A  Descriptive Statistics  Probability  Inference  Differences between populations  Regression.
Chapter 5 Discrete Random Variables and Probability Distributions
© 2003 Prentice-Hall, Inc.Chap 5-1 Business Statistics: A First Course (3 rd Edition) Chapter 5 Probability Distributions.
Probability and Statistics1  Basic Probability  Binomial Distribution  Statistical Measures  Normal Distribution.
Chap 9: Testing Hypotheses & Assessing Goodness of Fit Section 9.1: INTRODUCTION In section 8.2, we fitted a Poisson dist’n to counts. This chapter will.
Simple Linear Regression
Chapter 4 Discrete Random Variables and Probability Distributions
The Multiple Regression Model Prepared by Vera Tabakova, East Carolina University.
Chapter 11 Problems of Estimation
1 Midterm Review Econ 240A. 2 The Big Picture The Classical Statistical Trail Descriptive Statistics Inferential Statistics Probability Discrete Random.
LARGE SAMPLE TESTS ON PROPORTIONS
GG313 Lecture 8 9/15/05 Parametric Tests. Cruise Meeting 1:30 PM tomorrow, POST 703 Surf’s Up “Peak Oil and the Future of Civilization” 12:30 PM tomorrow.
BHS Methods in Behavioral Sciences I
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
CHAPTER 6 Statistical Analysis of Experimental Data
Quantitative Business Methods for Decision Making Estimation and Testing of Hypotheses.
Binomial Probability Distribution.
Normal and Sampling Distributions A normal distribution is uniquely determined by its mean, , and variance,  2 The random variable Z = (X-  /  is.
Means Tests Hypothesis Testing Assumptions Testing (Normality)
Regression Analysis (2)
Selected Statistics Examples from Lectures
STATISTICAL INFERENCE PART VII
L Berkley Davis Copyright 2009 MER301: Engineering Reliability Lecture 5 1 MER301: Engineering Reliability LECTURE 5: Chapter 3: Probability Plotting,The.
Matlab: Statistics Probability distributions Hypothesis tests
Statistics Galton’s Heights of Hypothetical Men (1869)
Modeling and Simulation CS 313
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete Probability Distributions.
Binomial Distributions Calculating the Probability of Success.
Statistical Review We will be working with two types of probability distributions: Discrete distributions –If the random variable of interest can take.
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
Mid-Term Review Final Review Statistical for Business (1)(2)
Probability Theory 1.Basic concepts 2.Probability 3.Permutations 4.Combinations.
OPIM 5103-Lecture #3 Jose M. Cruz Assistant Professor.
Ch9. Inferences Concerning Proportions. Outline Estimation of Proportions Hypothesis concerning one Proportion Hypothesis concerning several proportions.
 A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted by.
Statistical Methods II&III: Confidence Intervals ChE 477 (UO Lab) Lecture 5 Larry Baxter, William Hecker, & Ron Terry Brigham Young University.
Probability Distributions
GG 313 Lecture 9 Nonparametric Tests 9/22/05. If we cannot assume that our data are at least approximately normally distributed - because there are a.
 A probability function is a function which assigns probabilities to the values of a random variable.  Individual probability values may be denoted.
Review Session Chapter 2-5.
Probability Theory Modelling random phenomena. Permutations the number of ways that you can order n objects is: n! = n(n-1)(n-2)(n-3)…(3)(2)(1) Definition:
1 ES Chapter 18 & 20: Inferences Involving One Population Student’s t, df = 5 Student’s t, df = 15 Student’s t, df = 25.
Unit 4 Review. Starter Write the characteristics of the binomial setting. What is the difference between the binomial setting and the geometric setting?
Objectives (BPS chapter 12) General rules of probability 1. Independence : Two events A and B are independent if the probability that one event occurs.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Statistics and probability Dr. Khaled Ismael Almghari Phone No:
Probability Theory Basic concepts Probability Permutations
Chapter Five The Binomial Probability Distribution and Related Topics
Statistical Inference
MECH 373 Instrumentation and Measurements
LECTURE 32: STATISTICAL SIGNIFICANCE AND CONFIDENCE
Chapter 4. Inference about Process Quality
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Chapter 9: Inferences Involving One Population
Business Statistics Topic 4
Inference for Regression
Lecture 13 Sections 5.4 – 5.6 Objectives:
Hypothesis Tests for a Population Mean in Practice
Probability Review for Financial Engineers
When You See (This), You Think (That)
Simple Linear Regression
Sampling Distributions (§ )
Presentation transcript:

Selected Statistics Examples from Lectures

Matlab: Histograms >> y = [ ]’; >> mean(y)  ans = >> var(y)  ans = >> std(y)  ans = >> hist(y,9)  histogram plot with 9 bins >> n = hist(y,9)  store result in vector n >> x = [ ]’ >> n = hist(y,x)  create histogram with bin centers specified by vector x

Probability Examples l Probability that at least one coin will turn heads up from five tossed coins »Number of outcomes: 2 5 = 32 »Probability of each outcome: 1/32 »Probability of no heads: P(A C ) = 1/32 »Probability at least one head: P(A) = 1-P(A C ) = 31/32 l Probability of getting an odd number or a number less than 4 from a single dice toss »Probability of odd number: P(A) = 3/6 »Probability of number less than 4: P(B) = 3/6 »Probability of both: »Probability of either: complement set

Permutation Examples l Process for manufacturing polymer thin films »Compute the probability that the first 6 films will be too thin and the next 4 films will be too thick if the thickness is a random variable with the mean equal to the desired thickness »n 1 = 6, n 2 = 4 »Probability l Encryption cipher »Letters arranged in five-letter words: n = 26, k = 5 »Total number of different words: n k = 26 5 = 11,881,376 »Total number of different words containing each letter no more than once:

Combination Examples l Effect of repetitions »Three letters a, b, c taken two at a time (n = 3, k = 2) »Combinations without repetition »Combinations with repetitions l 500 thin films taken 5 at a time »Combinations without repetitions

Matlab: Permutations and Combinations >> perms([2 4 6])  all possible permutations of 2, 4, >> randperm(6)  returns one possible permutation of >> nchoosek(5,4)  number of combinations of 5 things taken 4 at a time without repetitions ans = 5 >> nchoosek(2:2:10,4)  all possible combinations of 2, 4, 6, 8, 10 taken 4 at a time without repetitions

Continuous Distribution Example l Probability density function l Cumulative distribution function l Probability of events

Matlab: Normal Distribution l Normal distribution: normpdf(x,mu,sigma) »normpdf(8,10,2)  ans = »normpdf(9,10,2)  ans = »normpdf(8,10,4)  ans = l Normal cumulative distribution: normcdf(x,mu,sigma) »normcdf(8,10,2)  ans = »normcdf(12,10,2)  ans = l Inverse normal cumulative distribution: norminv(p,mu,sigma) »norminv([ ],10,2)  ans = l Random number from normal distribution: normrnd(mu,sigma,v) »normrnd(10,2,[1 5])  ans =

Matlab: Normal Distribution Example l The temperature of a bioreactor follows a normal distribution with an average temperature of 30 o C and a standard deviation of 1 o C. What percentage of the reactor operating time will the temperature be within +/-0.5 o C of the average? l Calculate probability at 29.5 o C and 30.5 o C, then calculate the difference: »p=normcdf([ ],30,1) p = [ ] »p(2) – p(1) l The reactor temperature will be within +/- 0.5 o C of the average ~38% of the operating time

Discrete Distribution Example l Matlab function: unicdf(x,n), >> x = (0:6); >> y = unidcdf(x,6); >> stairs(x,y)

Poisson Distribution Example l Probability of a defective thin polymer film p = 0.01 l What is the probability of more than 2 defects in a lot of 100 samples? Binomial distribution:  = np = (100)(0.01) = 1 l Since p <<1, can use Poisson distribution to approximate the solution.

Matlab: Maximum Likelihood l In a chemical vapor deposition process to make a solar cell, there is an 87% probability that a sufficient amount of silicon will be deposited in each cell. Estimate the maximum likelihood of success in 5000 cells. l s = binornd(n,p) – randomly generate the number of positive outcomes given n trials each with probability p of success »s = binornd(5000,0.87) s=4338 l phat = binofit(s,n) – returns the maximum likelihood estimate given s successful outcomes in n trials »phat = binofit(s,5000) phat =

Mean Confidence Interval Example l Measurements of polymer molecular weight (scaled by ) l Confidence interval

Variance Confidence Interval Example l Measurements of polymer molecular weight (scaled by ) l Confidence interval

Matlab: Confidence Intervals >> [muhat,sigmahat,muci,sigmaci] = normfit(data,alpha) l data: vector or matrix of data l alpha: confidence level = 1-alpha l muhat: estimated mean l sigmahat: estimated standard deviation l muci: confidence interval on the mean l sigmaci: confidence interval on the standard deviation >> [muhat,sigmahat,muci,sigmaci] = normfit([ ],0.05) muhat = sigmahat = muci = sigmaci =

Mean Hypothesis Test Example l Measurements of polymer molecular weight Hypothesis:  0 = 1.3 instead of the alternative  1 <  0 Significance level:  = 0.10 l Degrees of freedom: m = 9 l Critical value l Sample t l Reject hypothesis

Polymerization Reactor Control l Lab measurements »Viscosity and monomer content of polymer every four hours »Three monomer content measurements: 23%, 18%, 22% l Mean content control »Expected mean and known variance:  0 = 20%,   = 1 »Control limits: »Sample mean: 21%  process is in control Monomers Catalysts Solvent Hydrogen On-line measurements Lab measurements Polymer Monomer Content Viscosity

Goodness of Fit Example l Maximum likelihood estimates

Goodness of Fit Example cont.

Linear Regression Example l Reaction rate data l Sample variances and covariance l Linear regression Confidence interval for  = 0.95 and m = 6 Experiment Reactant Concentration Rate

Matlab: Linear Regression Example >> c = [ ]; >> r = [ ]; >> [k, kint] = regress(r’, [ones(length(c), 1), c’], 0.05) k = kint =

Correlation Analysis Example l Polymerization rate data l Correlation coefficient  = 5%, m = 6  c = 1.94 l Compute t-statistic l Reject hypothesis that the hydrogen concentration and the polymerization rate are uncorrelated Experiment Hydrogen Concentration Polymerization rate

Matlab: Correlation Analysis Example >> h = [ ]; >> p = [ ]; >> R = corrcoef(h,p) R= >> t = ttest(h,p) t=1 (reject hypothesis)