%
%
%
%
%
%
%
%
inclass1a.m: In-class 1 script
This is a simple script to help familiarize us with Matlab.
When working, this program will prompt for a radius. It will then plot
a circle using the spe
Microquiz 12
a) Consider Z, a standard
normal RV. Compute
P[Z<2].
b) How does the answer to
part a differ from
P[X<+2]?
c) Now suppose and are
estimated from n=50 sample
values. Estimate
P[X<Xbar+2S]
Microquiz 13
The "error" in a statistic is the
difference between its sample
value and the true value of the
population parameter estimated
by the statistic.
Use Monte Carlo to estimate the
distributi
Microquiz 14
An experiment yields these 5
measurements of an
environmental variable:
cfw_2.7, 3.8, 4.0, 4.5, 6.1
a) Use the sample mean to
compute a point estimate of ,
the mean of the variable.
b) Es
Microquiz 19
a) Consider a random
2
variable X ~ N(100,2 ).
Compute
P[94<X<106].
b) Compare this result
to P[-3 < Z < +3].
Solution
a) Cumulative Distribution Function
Normal with mean = 100 and stand
Microquiz 11
Use Monte Carlo simulation with
200 replications to solve the
following problem.
You will collect 40 measurements
on an exponential RV, but your
data collection system will only
record th
Microquiz 04
Consider a system made of 2
subsystems in series. Each
subsystem has 2 identical
components in parallel.
The reliabilities of the
components in the subsystems
are p and q, respectively.
W
Microquiz 03
A machine sometimes fails
abruptly. Its field history shows
that the chance it fails in any
particular use is 5%. It is
acoustically monitored to see if it
is making a particular high
fre
Microquiz 17
a) Drawing freehand, plot the
distribution of Student's t when
the null hypothesis Ho is true.
b) Determine the critical values
for testing Ho against a 2-sided
alternative hypothesis. As
Microquiz 15
An experiment yields these 5
measurements of an
environmental variable:
cfw_2.7, 3.8, 4.0, 4.5, 6.1
a) Use the sample mean to
compute a point estimate of ,
the mean of the variable.
b) Es
Microquiz 22
Read in the TRW dataset
AAL001deviations.mtw
from the course web site.
Use regression to predict "actual
air time" from "actual distance
flown".
a) Report the estimated
regression equatio
% in_class_2 gets the zeros of a cubic and plots it.
%
% Programmed by R. Lindsay Todd
% Clear everything.
clear
clc
% Get the zeros
p = input('Enter the first zero: '); % 4
q = input('Enter the secon
% inclass5.m implements the main program.
%
% Programmed by: Joel Ahearne-Ray
%
% This script will get the parameters needed for a superellipse, and the
% number of points that need to be plotted. It
%
% Programmed by Joel Ahearne-Ray
% This section initialize the program and get input values for the simulation.
% You don't want to change anything in this code section.
clear
clc
L = input('Length
Joel Ahearne-Ray
% in_class_2 gets the zeros of a cubic and plots it.
%
% Programmed by R. Lindsay Todd
% Clear everything.
clear
clc
% Get the zeros
p = input('Enter the first zero: ');
q = input('En
10/4/2017
CSCI-1190
Beginning Programming for Engineers
Lecture 6
MATLAB Symbolic Math Toolbox
In-class exercise
No homework
Quiz 3 will be given next class
Watch the projects due date
RPI CSCI-1
Microquiz 18
In your own words,
briefly describe
a) the concept of
"sampling variability"
b) the concept of a
"standard error"
c) the concept of a
"confidence interval".
Solution
a) Sampling variabili
Microquiz 21
Read in Minitab dataset
Data\Mcapa.MTW.
Make Xbar and S charts
using subgroup size n=2.
a) Is the mean in control?
b) Is the std dev in
control?
c) Compute a point
estimate of the coeffic
Microquiz 20
Read in Minitab dataset
Data\Camshaft2.MTW.
Make an Xbar chart for
Supplier 1, using
subgroup size n=4.
Report:
Estimated mean=?
UCL=?
LCL=?
1.
2.
3.
4.
Is process mean in
control?SOLUTIO
Microquiz 02
a) Your system has 3
subsytems, with 2, 5, and 4
choices of vendors,
respectively. How many total
vendor choices are there?
b) P(A)=0.6 and P(B)=0.2.
What more information do
you need to
Microquiz 10
Here is the observed joint distribution
of daily demand for 2 spare parts,
"RING" and " PACKING":
Rows=RING
Columns=PACKING
01
2 All
0
71
4
12
1
44
4
12
2
30
2
5
All
14 5 10
29
Cell Conte
Beginning Programming for Engineers
Quiz 1
Name:
Do both sides of this quiz!
1. (10 points) The Robotic Brain Surgeons group uses sophisticated computer programs to guide
robotic devices
% inclass6.m implements the main program.
%
% This script will get the parameters needed for a superellipse, and the
% number of points that need to be plotted. It will then plot the rst
% quadrant. I
% homework2.m
%
% Homework assignment 2
% CSCI-1190 Beginning Programming for Engineers
% Fall 2014
%
% This program computes the trajectory of a projectile over Mars taking
% atmospheric drag into co
Use MATLAB to program such that each of the initials of your name will come up in the
corners of the triangle you draw.
function studyteam_logo(corner_x, corner_y, scale_x, scale_y )
tudyteam_logo plo
9/28/2017
CSCI-1190
Beginning Programming for Engineers
Lecture 5
Quiz 2 review
Numerical Solutions to Differential Equations
In-class Exercise
HW_5
CSCI-1190 BP Dr. Liu
Lecture 5
What are numeri
9/20/2017
CSCI-1190 Beginning Programming for Engineers
o Quiz 2
o Lecture 4
o In class exercise
o HW 4 assignment
o Onramp due
1
CSCI-1190 Liu
Lecture 4
Program Flow Control: Iteration
o for loop
o