Random variables
Discrete Random Variables
Juana Sanchez
[email protected]
UCLA Department of Statistics
ccle.ucla.edu
J. Sanchez
Stat 100A Intro Probability
Outline
I. Definition of a discrete random variable
II. Definition of probability of the val
STATS 100A TA Session 1 Solutions
April 4, 2017
Problem 1
8! = 8 7 6 1 = 40320.
Problem 2
For any nonnegative integers n and k, the binomial coefficient
n
k
denotes the number of
ways of picking k elements from a set of n unordered elements. Mathematicall
Stat 100A/Sanchez TA session practice problems (1). Week 3
1. A gambling book recommends the following winning strategy for the game of roulette. It
recommends that a gambler bet $1 on red.
If red appears (which has probability 18/38), then the gamble
Stat 100 Intro Probability
TA Session week 3Additional practice problems
J. Sanchez
UCLA Department of Statistics
Question 1. Someone computed the probability of the event (E B)(E F)c as being 0.6. Which of the following
events has the same probability?
5
Stat 100A/Sanchez
Random number generation with R (4/5/2017)
LAST NAME _ FIRST NAME_ ID_
131
325
546
534
155
544
431
114
113
112
0
1
1
1
0
0
1
0
0
0
4
4/10
0.4
60
34
34/60
0.567
The proportion of successful trials is an estimate of the probability that
l
Stat 100NSanchez
LAST NAME: FIRST NAME: ID:
TA SESSION TIME:
Using R to generate Random numbers from families of pmfs and pdfs
Computing Probability and Percentiles for the same families
l. Many uses of our probability models.
The probability mass funct
Stat 100A/ Sanchez Practice problems
1. You arrive at a bus stop at 10 oclock, knowing that the bus will arrive at some time uniformly
distributed between 10 and 10:30.
(a) What is the probability that you will have to wait longer than 10 minutes
(b) If
Stat 100 Intro Probability
Homework 12
J. Sanchez
UCLA Department of Statistics
PROVIDE THE INFORMATION REQUESTED IN THIS BOX:
LAST NAME: FIRST NAME: ID:
TODAYs DATE:
TIME OF YOUR LECTURE ON MWF: ; TAs NAME:
Instructions
(1) YOU MUST WRITE YOUR ANSWER
Stat 100 Intro Probability
Continuous densities
J. Sanchez
UCLA Department of Statistics
PROVIDE THE INFORMATION REQUESTED IN THIS BOX:
LAST NAME: FIRST NAME: ID:
TODAYs DATE:
TAs NAME: , TIME OF YOUR TA SESSION:
Instructions
(1) Use the handout on In
Solutions 4
5.1.10
!
0 1
a) The coefficient matrix
has = 0, so the origin is a centre and it is
4 0
Liapunov stable. The origin is not asymptotically stable though, as it is not attracting.
c) In this system x is never changed. If we start at a point (x0
Chapter 1 : Units, Physical Quantities, and Vectors
1.3.
IDENTIFY: We know the speed of light in m/s. t = d/v. Convert 1.00 ft to m and t from s to ns.
SET UP: The speed of light is v = 3.00 108 m/s. 1 ft = 0.3048 m. 1 s = 109 ns.
EXECUTE: t =
0.3048 m
8
Equilibrium and Elasticity
11.13. IDENTIFY: Apply the first and second conditions of equilibrium to the strut.
(a) SET UP: The freebody diagram for the strut is given in Figure 11.13a. Take the origin of coordinates
at the hinge (point A) and
upward. Let
10
HW
chapter
11
Question
Discussion
solutions
&B
.
9fgw
11.7
Q
:#
:*
:L
III.
the
through
^
floor
will
not
support
otherwise
.
be
zero
point
on
torque
.
T.tt#$fy
"
Q
"
the
"
"
push
or
different
Q 11.19
"
"
push
result
will
a
lift
force
same
In
Torque
.

Memory Management
You dont understand the power
of the dark side Darth Vader
Stephen DeSalvo, UCLA 2014
Stack vs Heap size
comparison
The stack is a small amount of memory
that contains most of the variables
involved in running the program. Heap memory
Appendix Lecture:
Style Conventions
Variable Names
Variable names should be short, descriptive, NEVER abbreviations.
If a variable has no explicit meaning, or is being used almost solely
as a dummy variable, then it is customary to give it a name which
T and T&
(and how theyre different from T*)
You will never be the same after this
lecture
In the beginning
there was C, and everything in C was about
pointers.
And why not? Pointers are a very powerful
data type, they only take up one word of
memory, t
Welcome to PIC 10 _
Fill in the blank where appropriate
_ Programming
Enrollment note
If you are not already enrolled in the
course, you can only get into this class via
the waitlist. No PTE numbers.
Also, most of the questions sent to me I
cannot answe
PIC 10C HOMEWORK 1
Assignment
For this assignment we are going to model particles on a line. Every particle will have
a position. One type of particle (ThingA) will have a string private member variable and
another type of particle (ThingB) will have a pr
Stat 100 Intro Probability
Homework 5
J. Sanchez
UCLA Department of Statistics
PROVIDE THE INFORMATION REQUESTED IN THIS BOX:
LAST NAME: FIRST NAME: ID:
TODAYs DATE:
TAs NAME: , TIME OF YOUR TA SESSION:
Instructions
(1) YOU MUST WRITE YOUR ANSWERS IN
PIC 10C HOMEWORK 3
Assignment
Using Qt, create a GUI around the idea of Particles on a Board. Fix the size of the board
to be 20, and give each position on the board a number. An example is below,
This is a minimal example. 15 points are for simply recrea