Home » Uncategorized
Category Archives: Uncategorized
Frequency Table Using R Part2
How Do We Construct Frequency Distribution Tables Using R? Part 2 (Relative Frequeancy Distribution Table, Cumulative Frequency Distribution, and Cumulative Relative Frequency Distribution Table) We will use States Visited, (StatesV) variable included in first day class survey, Sur1. Upload Sur1.csv data set from your desktop to R NOTE: If case you did not save Sur1.csv […]
Frequency Tables Using R Part 1
How Do We Construct A Frequency Distribution Table Using R? Part 1 We will use States Visited, (StatesV) variables included in the first-day class survey, Sur1. Upload Sur1.csv data set from your desktop to R NOTE: In case you did not save Sur1.csv file correctly to your desktop, execute the following codeSur1 <-read.csv(read.csv(file.choose(),header = TRUE)) […]
Uploading a .csv file into R
Day 1: Using R as Calculator (We will not save files in R format for now!) Objective: How to upload a .csv file into R? Step 1 Prepare your workspace Whenever you begin/complete your work with R execute these two commands: rm(list=ls()) and ls() . Launch R and type into console panel: rm(list=ls()) press ENTER key, then check […]
Tutorial 2
Sampling Distribution of Sample Mean Example 1 (Data Set 21) Upload Data Set 21 to R in previously saved .csv format. Use Data Set 21 to construct a histogram of DEPTHS of 600 earthquakes. Select 10000 random samples of size=50 from the DEPTHS variable, calculate the mean of each and construct a histogram of the […]
Tutorial 1
Five fair dice were rolled once and the proportion of ODD outcomes was observed. Example 1 What is the proportion of ODD outcomes? Example 2 (Simulation) Replicate 100,000 five-dice rolls and record the proportion of ODD numbers for each roll. Here are the first six recorded proportions of ODD outcomes. Table of Proportions of ODD outcomes from […]
Assignment 3
Nonstandard Normal Distributions Here are nonstandard density curves with a mean equal to 15 and various standard deviations. Model Problem1 U.S. Air Force once used ACES-II ejection seats designed for men weighing between 140 lb and 211 lb. Given that women’s weights are normally distributed with a mean 171.1 lb and a standard deviation of […]
Assignment 2
The Normal Distribution Here is the Standard Normal Distribution Density Curve is also known as the Bell Curve. How do we find the area under the Standard Normal Density Curve? Example 1 We will use the following syntax: pnorm(0,mean=0,sd=1) ## [1] 0.5 Example 2 How do we find the area under the Standard Normal Density Curve […]
Recent Comments