Formulas:
P(Ac) = 1P(A)
P(A or B) = P(A) +P(B)P(A and B)
P(A | B) = P(A and B) P(B)
P(A | B) = P(A), if A is independent of B
P(A and B) = 0, if A and B are mutually exclusive
E(X) =Pall k k P(X = k)
E(X + ) = E(X) +
E( X) = E(X)
E(X + Y ) = E(X
PSTAT 120A
Winter 2016
Midterm 1
1/28/16
Time Limit: 75 Minutes
Name (Print):
Instructor:
Teaching Assistant:
Wade Herndon
This exam contains 6 pages (including this cover page) and 7 problems. Check to see if any pages
are missing. Enter all requested in
PSTAT 120A
More Counting Problems
Winter 2016
Problem 1: Each year starts on 1 of 7 days and each year is either a leap year or not a leap
year. How many possible calendars are there?
Multiplication rule for counting:
7(2) = 14.
Problem 2: Three different
PSTAT 120A
Midterm 2 Formulas
Binomial distribution
n x
f (x) =
p (1 p)nx , x = 0, 1, . . . , n
x
E [X] = np
Poisson distribution
f (x) =
e x
, x = 0, 1, 2, 3 . . .
x!
E [X] =
Geometric distribution
f (x) = (1 p)x1 p, x = 1, 2, 3, . . .
E [X] =
1
p
Exp
Transformations of Random Variables
Order Statistics
Sampling Distributions Related to the Normal Distribution
n m transformation
What do we mean by a transformation of a random variable?
Suppose:
I Y1 , Y2 , ., Yn
are n random variables.
I
The joint dist
Introduction
Review of Pstat 120A
Pstat 120B - Fall 2016
Jacob Lundbeck Serup
Department of Statistics and Applied Probability, UCSB
September 26. 2016
Jacob Lundbeck Serup
Pstat 120B - Fall 2016
Introduction
Review of Pstat 120A
Practical Information
My
Confidence Intervals
Definition
A confidence interval for a confidence level is an interval inside which
the true but unknown parameter is with probability 1 . There are 3
types of confidence intervals:
Lower Confidence Interval
A lower CI L , is an inter
Skip to main content
Log In
UCSB
UCSB Home
GOLD
U-Mail
BARC
GauchoSpace
Page path
Home /
Log in to the site
Log in
Your session has timed out. Please log in again.
again.
Your session has timed out. Please log in
Username
Password
Remember username
Statistics
22/09/2016
An ideal world given by probability;
A real world with data;
The Statisticians Objectives
1. Ask the right questions
2. Collect useful data
3. Summarize the data
4. Make decisions and generalizations based on the data
5. Turn the dat
-title: "STA 100 R Handout 5 - Categorical"
author: "Erin K. Melcon"
output: html_document
-*Note, the following is adding data to R, you do not need to do this step.
will read in the data from a .csv or .txt as usual*
`cfw_r,echo = FALSE
gender = rep(c("
-title: "STA 100 R Handout 4 - ANOVA"
author: "Erin K. Melcon"
date: "February 10, 2016"
output: html_document
-# 1. The data
For this handout, I will use a built in dataset that is already in R (so you do
not have to load a dataset to use this handout).
PSTAT 5A:
Week 2
Class Worksheet
Conditional Probability
A social science researcher went to a elementary school and asked every fourth and fth grader
what they thought was their most important goal: Get good grades, Be popular, or Do well
in sports. The
S. Konda
Department of Statistics and Applied Probability
UCSB
PSTAT 130 - Summer 2015 - Konda
Recap:
PROC TABULATE vs PROC REPORT
PSTAT 130 - Summer 2015 - Konda
Lecture Outline
Producing HTML output using the Output Deliver System
Summaring data with
PSTAT 130 - Summer 2015 - Practice Midterm2
Important notes: (i) This practice test will be updated Monday July 27th night. (ii) Answer key will be provided
same night. (iii) The real midterm2 will be combination of this practice test, homework 3 to 5, le
S. Konda
Department of Statistics and Applied Probability
UCSB
PSTAT 130 Summer 2015 - Konda
Lecture Outline
Combining Datasets
Concatenating Datasets (Appending)
The SET statement
Merging Datasets
The MERGE and BY statements
Types of Merging
Parent-Ch
S. Konda
Department of Statistics and Applied Probability
UCSB
PSTAT 130 Summer 2015 - Konda
2
Lecture Overview
Reading Data into SAS
List input
Formatted List input
Column input
More on INPUT statements: Pointer control
Informats, Formats and Labels
Sreenivas KONDA
Department of Statistics and Applied Probability
UCSB
Note: Slides are courtesy of several UCSB and UCB lecture notes
PSTAT 130 - Summer 2015 - Konda
1
PSTAT 130 - Summer 2015 - Konda
2
Objectives
Navigate the SAS programming environment
S. Konda
Department of Statistics and Applied Probability
UCSB
PSTAT 130 Winter 2015- Konda
2
Lecture Outline
Summarizing Your Data cont
PROC MEANS
PROC FREQ
PROC TABULATE
PROC REPORT
PSTAT 130 Winter 2015- Konda
3
Procedures for Summarizing Data
PR
S. Konda
Department of Statistics and Applied Probability
UCSB
PSTAT 130 Summer 2015 - Konda
Lecture Outline
Variable Lists
Using SAS functions
Parse text data
Truncate numeric data
Converting data
numeric to character
character to numeric
Do loop
Q1. Using the HEART data in SASHELP directory, for the subset of data with
condition WHERE STATUS=Dead and Sex=Male, answer the following questions.
Display contents of the SASHELP.HEART file first and check the variables.
a. Create a simple VBAR plot for
PSTAT 130 Summer 2015, Midterm1 Practice Test
Closed book and notes; No cheat sheet
(Regular time: 70mins without computer and last 10mins with computer)
(Answer key will be provided Monday; 80% of test will be similar to the practice test and rest comes
S. Konda
Department of Statistics and Applied Probability
UCSB
PSTAT 130 - summer 2015 - Konda
Lecture Outline
Learn another way to create a running total
Sum statement
Clarify First.Obs and Last.Obs variables
With Single and Multiple BY variables
Writi
1(5pts). Write a working SAS code to read the state.txt into
state.sas7bdat. The text data is space delimited form with the variables
STATE(postal code), RANK, POPULATION in sequence. Your SAS code
must have three variables STATE, RANK, and POP and datali
Sreenivas Konda
Department of Statistics and Applied Probability
UCSB
Summer 2015 PSTAT 130 - Konda
2
Parking Lot Issues
Homework is due in your registered section
PROC IMPORT
SET, KEEP, DROP, RENAME, etc.
SAS functions and operators
List of formats
PSTAT 5A
Quiz 5 Practice Problems
Spring 2015
Exercise 1: In this problem we will investigate the relationship between movie critic rating
and box oce revenue. In particular, we will try to use critic score to describe box oce
revenue. Box oce revenue is
PSTAT 5A
Worksheet 1
Spring 2015
Exercise 1. A die is loaded so that it only lands on a 1 or a 6 with equal probability.
Consider the random experiment in which we roll the die 3 times.
(a) Describe the sample space for this experiment.
Sample Space = All
PSTAT 5A
Quiz 2 Practice Problems
Spring 2015
Exercise 1. Some people claim that pets look like their owners. To study this you show
somebody a picture of the owner next to 3 pictures of cats, only one of which belongs to the
person, and you ask the perso
PSTAT 5A
Quiz 1 Practice Problems
Spring 2015
Exercise 1. Consider the random experiment where we ip a coin 4 times.
(a) Write out the sample space.
(b) Suppose we observe the rst three ips and they are all tails. Whats the probability
that we observe hea
PSTAT 5A
Quiz 4 Practice Problems
Spring 2015
Exercise 1: A label on a certain cereal package states that the true mean weight of the
packages is 16 ounces. A consumer group insists that the true mean weight is less than
stated. Suppose the population sta