Expected Value (10D) Young Won Lim 6/12/17

Similar documents
DFT Frequency (9A) Each Row of the DFT Matrix. Young Won Lim 7/31/10

Higher Order ODE's (3A) Young Won Lim 7/7/14

General CORDIC Description (1A)

Higher Order ODE's (3A) Young Won Lim 12/27/15

Fourier Analysis Overview (0A)

Relations (3A) Young Won Lim 3/27/18

Matrix Transformation (2A) Young Won Lim 11/10/12

Fourier Analysis Overview (0B)

Detect Sensor (6B) Eddy Current Sensor. Young Won Lim 11/19/09

Fourier Analysis Overview (0A)

Root Locus (2A) Young Won Lim 10/15/14

CT Rectangular Function Pairs (5B)

Background Trigonmetry (2A) Young Won Lim 5/5/15

Higher Order ODE's (3A) Young Won Lim 7/8/14

Introduction to ODE's (0A) Young Won Lim 3/9/15

Down-Sampling (4B) Young Won Lim 10/25/12

General Vector Space (2A) Young Won Lim 11/4/12

Separable Equations (1A) Young Won Lim 3/24/15

Line Integrals (4A) Line Integral Path Independence. Young Won Lim 10/22/12

Magnetic Sensor (3B) Magnetism Hall Effect AMR Effect GMR Effect. Young Won Lim 9/23/09

Capacitor Young Won Lim 06/22/2017

Matrix Transformation (2A) Young Won Lim 11/9/12

Down-Sampling (4B) Young Won Lim 11/15/12

Up-Sampling (5B) Young Won Lim 11/15/12

Signal Functions (0B)

Capacitor in an AC circuit

Complex Trigonometric and Hyperbolic Functions (7A)

Discrete Time Rect Function(4B)

Higher Order ODE's, (3A)

Audio Signal Generation. Young Won Lim 1/29/18

Phasor Young Won Lim 05/19/2015

Discrete Time Rect Function(4B)

Linear Equations with Constant Coefficients (2A) Young Won Lim 4/13/15

ODE Background: Differential (1A) Young Won Lim 12/29/15

Capacitor and Inductor

Capacitor and Inductor

Dispersion (3A) 1-D Dispersion. Young W. Lim 10/15/13

Bayes Theorem (10B) Young Won Lim 6/3/17

Group & Phase Velocities (2A)

Propagating Wave (1B)

The Growth of Functions (2A) Young Won Lim 4/6/18

Complex Series (3A) Young Won Lim 8/17/13

Line Integrals (4A) Line Integral Path Independence. Young Won Lim 11/2/12

Implication (6A) Young Won Lim 3/17/18

Complex Functions (1A) Young Won Lim 2/22/14

General Vector Space (3A) Young Won Lim 11/19/12

Hamiltonian Cycle (3A) Young Won Lim 5/5/18

Probability (10A) Young Won Lim 6/12/17

Definitions of the Laplace Transform (1A) Young Won Lim 1/31/15

Digital Signal Octave Codes (0A)

Audio Signal Generation. Young Won Lim 2/2/18

Sequential Circuit Timing. Young Won Lim 11/6/15

Differentiation Rules (2A) Young Won Lim 1/30/16

Bayes Theorem (4A) Young Won Lim 3/5/18

Digital Signal Octave Codes (0A)

Bandpass Sampling (2B) Young Won Lim 3/27/12

Group Delay and Phase Delay (1A) Young Won Lim 7/19/12

Introduction to ODE's (0P) Young Won Lim 12/27/14

FSM Examples. Young Won Lim 11/6/15

Surface Integrals (6A)

Digital Signal Octave Codes (0A)

Digital Signal Octave Codes (0A)

Undersampling (2B) Young Won Lim 4/4/12

Audio Signal Generation. Young Won Lim 2/2/18

Group Velocity and Phase Velocity (1A) Young Won Lim 5/26/12

Digital Signal Octave Codes (0A)

Digital Signal Octave Codes (0A)

Signals and Spectra (1A) Young Won Lim 11/26/12

Implication (6A) Young Won Lim 3/12/18

Background ODEs (2A) Young Won Lim 3/7/15

Background Complex Analysis (1A) Young Won Lim 9/2/14

CT Correlation (2A) Young Won Lim 9/9/14

CLTI Differential Equations (3A) Young Won Lim 6/4/15

Resolution (7A) Young Won Lim 4/21/18

Signal Processing. Young Won Lim 2/20/18

Propositional Logic Resolution (6A) Young W. Lim 12/12/16

Hyperbolic Functions (1A)

Capacitor in an AC circuit

Propositional Logic Logical Implication (4A) Young W. Lim 4/11/17

Differentiation Rules (2A) Young Won Lim 2/22/16

Capacitor in an AC circuit

Propositional Logic Resolution (6A) Young W. Lim 12/31/16

Hilbert Inner Product Space (2B) Young Won Lim 2/7/12

Capacitors in an AC circuit

Background LTI Systems (4A) Young Won Lim 4/20/15

CLTI System Response (4A) Young Won Lim 4/11/15

Capacitor in an AC circuit

Spectra (2A) Young Won Lim 11/8/12

Second Order ODE's (2A) Young Won Lim 5/5/15

Capacitor in an AC circuit

Capacitor in an AC circuit

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Capacitor in an AC circuit

Surface Integrals (6A)

CMOS Inverter. Young Won Lim 3/31/16

Signal Processing. Young Won Lim 2/22/18

First Order Logic Implication (4A) Young W. Lim 4/6/17

Utility Functions Octave Codes (0A) Young Won Lim 1/24/18

Finite State Machine (1A) Young Won Lim 6/9/18

DFT Octave Codes (0B) Young Won Lim 4/15/17

Transcription:

Expected Value (10D)

Copyright (c) 2017 Young W. Lim. Permissios granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Please send corrections (or suggestions) to youngwlim@hotmail.com. This document was produced by using OpenOffice and Octave.

Expected Value Suppose random variable X can take value x 1 with probability p 1, value x 2 with probability p 2, and so on, up to value x k with probability p k. Then the expectation of this random variable X is defined as Since all probabilities pi add up to one ( p 1 + p 2 +... + p k = 1), the expected value can be viewed as the weighted average, with p i s being the weights: Expected Value (10D) 3

Arithmetic Mean 2 elements {a, b} 3 elements {a, b, c} A= a b 2 A= a b c 3 n elements {a 1, a 2,..., a n } A= a 1 a 2 a n = 1 n n n i=1 a i Expected Value (10D)

Arithmetic Mean - Example 2 3 3 2 = 3 3 =2 3=2 A same length Arithmetic Mean: A = 3 2 6 same length 2 6 = =3 =3 A Arithmetic Mean: A = Expected Value (10D) 5

Geometric Mean 2 elements {a, b} G= a b a 0, b 0 3 elements {a, b, c} G= 3 a b c a 0, b 0, c 0 n elements {a 1, a 2,..., a n } n G= a n 1 a 2 a n = i=1 1 n a i a i 0 Expected Value (10D) 6

Geometric Mean - Example 2 2 = = 2 =G 2 same area Geometric Mean: G = 2 same volume 2 = = 3 =G 3 Geometric Mean: G = Expected Value (10D) 7

Harmonic Mean 2 elements a, b 3 elements a, b, c H= 2 1 a 1 b = 2ab a b H= 3 1 a 1 b 1 = 3abc c ab bc ca n elements a 1, a 2,..., a n n H= 1 1 1 = n a 1 a 2 a n n 1 i=1 a i Expected Value (10D)

Harmonic Mean same distance = D same duration = T A 60 km/hr B 60 km/hr 0 km/hr 0 km/hr A B C Average Speed total distance = total time = 2 D D 60 D = 2 60 0 60 0 =km/hr 0 Average Speed total distance = total time = 60 T 0 T 2T =50km/hr Harmonic Mean: H = Arithmetic Mean: A = 50 Expected Value (10D) 9

Absolute Frequency # of students 0 ~ 50 1 50 ~ 60 60 ~ 70 70 ~ 0 5 0 ~ 90 2 Total 20 16 12 0 50 60 70 0 90 Average Score? 5 1 55 65 75 5 5 2 1 5 2 = 66.5 Expected Value (10D) 10

Absolute Frequency & Average - Rectangles 16 16 12 12 10 20 30 0 50 60 70 0 90 100 10 20 30 0 50 60 70 0 90 100 5 55 65 75 5 5 55 65 75 5 20 5 x 1 1 student cumulative 16 12 55 x 65 x students students 75 x 5 5 students 5 x 2 2 students 10 20 30 0 50 60 70 0 90 100 Expected Value (10D) 11

Absolute Frequency & Average Absolute Frequency 16 16 12 12 0 50 60 70 0 90 10 20 30 0 50 60 70 0 90 100 5 55 65 75 5 20 20 5 x 1 1 student cumulative 16 12 66.5 x 20 cumulative 16 12 55 x 65 x students students 75 x 5 5 students 10 20 30 0 50 60 70 0 90 100 Avg = 66.5 5 x 2 2 students 10 20 30 0 50 60 70 0 90 100 Expected Value (10D) 12

Comparison of Histograms Absolute Frequency Group A # of students 0 ~ 50 1 50 ~ 60 60 ~ 70 70 ~ 0 5 0 ~ 90 2 absolute 16 12 Group A Total 20 0 50 60 70 0 90 Group B # of students 0 ~ 50 1 50 ~ 60 2 60 ~ 70 70 ~ 0 9 absolute 16 12 Group B 0 ~ 90 5 Total 25 0 50 60 70 0 90 Expected Value (10D) 13

Normalization Group A (20 students) 1 5 2 Total 20 student counts 1.0 Normalization A common scale makes comparison convenient f i = N = k n k f i N relative count (absolute) count total counts = j n j 1.0 1 2 9 5 Total 25 student counts Group B (25 students) Expected Value (10D) 1

Relative Frequency Normalization f i = N = i Group A f i Group B f i absolute relative 0 ~ 50 1 1/20 = 0.05 50 ~ 60 /20 = 0.20 60 ~ 70 /20 = 0.0 70 ~ 0 5 5/20 = 0.25 0 ~ 90 2 2/20 = 0.10 Total 20 20/20 = 1.00 N = i = 20 absolute relative 0 ~ 50 1 1/25 = 0.0 50 ~ 60 2 2/25 = 0.0 60 ~ 70 /25 = 0.32 70 ~ 0 9 9/25 = 0.36 0 ~ 90 5 5/25 = 0.20 Total 25 25/25 = 1.00 N = i = 25.05.20.0.25.10.0.0.32.36.20 i f i = 1.00 i f i = 1.00 Expected Value (10D) 15

Comparison of Histograms Relative Frequency Group A f i 0 ~ 50 1 1/20 = 0.05 50 ~ 60 /20 = 0.20 60 ~ 70 /20 = 0.0 70 ~ 0 5 5/20 = 0.25 0 ~ 90 2 2/20 = 0.10 Total 20 20/20 = 1.00 Group B absolute absolute N = i = 20 f i relative relative 0 ~ 50 1 1/25 = 0.0 50 ~ 60 2 2/25 = 0.0 60 ~ 70 /25 = 0.32 70 ~ 0 9 9/25 = 0.36 0 ~ 90 5 5/25 = 0.20 Total 25 25/25 = 1.00 N = i = 25 relative relative 1.0..6..2 1.0..6..2 Group A.20.05 0 50 60 70 0 90 Group B 0 50 60 70 0 90 Expected Value (10D) 16

Relative Frequency & Average Relative Frequency Group A relative 1.0..6. relative 1.0..6..2.2 0 50 60 70 0 90 10 20 30 0 50 60 70 0 90 100 5 55 65 75 5 cumulative relative 1.0..6. 66.5 cumulative relative 1.0..6. 5 x.05 55 x.20 65 x.0 1/20 /20 /20.2.2 75 x.25 5/20 10 20 30 0 50 60 70 0 90 100 Avg = 66.5 5 x.10 2/20 10 20 30 0 50 60 70 0 90 100 Expected Value (10D) 17

Average Group A absolute f i relative 0 ~ 50 1 1/20 = 0.05 50 ~ 60 /20 = 0.20 60 ~ 70 /20 = 0.0 70 ~ 0 5 5/20 = 0.25 0 ~ 90 2 2/20 = 0.10 Total 20 20/20 = 1.00 N = i = 20 absolute 16 12 Group A relative 0 50 60 70 0 90 1.0..6..2 Group A.20.05 0 50 60 70 0 90 Average Score? 5 1 55 65 75 5 5 2 1 5 2 = 5 1 20 55 20 65 20 75 5 20 5 2 20 = 5 1 20 55 20 65 20 75 5 20 5 2 20 = 66.5 Expected Value (10D) 1

Accumulative Frequency Group A absolute accumulative absolute 0 ~ 50 1 1 50 ~ 60 5 60 ~ 70 13 70 ~ 0 5 1 0 ~ 90 2 20 Total 20 20 N = i = 20 accumulative absolute 20 16 12 Group A 5 1 1 0 50 60 70 0 90 2 20 1 13 5 Group A f i relative accumulative relative 0 ~ 50 0.05 0.05 50 ~ 60 0.20 0.25 60 ~ 70 0.0 0.65 70 ~ 0 0.25 0.90 0 ~ 90 0.10 1.00 Total 1.00 1.00 1.0 = i f i = 25 accumulative relative 1.0..6..2 Group A.05.20.0.25.10 1.0.90.65.25.05 0 50 60 70 0 90 Expected Value (10D) 19

Relative Frequency & Ratio Absolute Group A f i 2 student absolute relative 0 ~ 50 1 1/20 = 0.05 50 ~ 60 /20 = 0.20 60 ~ 70 /20 = 0.0 70 ~ 0 5 5/20 = 0.25 0 ~ 90 2 2/20 = 0.10 Total 20 20/20 = 1.00 5 students N = i = 20 students Relative.10..25.6.0 students..2.20 1 students.05.1.2.3..5.6.7..9 1.0 20 Expected Value (10D) 20

Normalization Equations (1) f i = N N = f i = N f i relative = count total count total count = count relative freq count = total count relative fraction = part total total = part fraction part = total part 0.xxx = = 0.xxx = 0.xxx Expected Value (10D) 21

Normalization Equations (2) f n i N f i = N n N = i f i = N f i 1. 0 f i = slope N i n n f i = slope i f i = slope i 1. 0 N 1. 0 N Expected Value (10D) 22

Binomial Probability Distribution n k n k p p p p p q q q q q C (n, k) Expected Value (10D) 23

Expected Value of the Binomial Distribution k k P(X=k) ( n k) = n! k!(n k )! ( n 1 k 1) = = n (n 1)! (n k)!k! (n k) = (n 1) (k 1) (n 1)! (k 1)!((n 1) (k 1))! m ( m ) l =0 l pl (1 p) m l = ( p+(1 p)) m Expected Value (10D) 2

Expected Value (10D) 25

References [1] http://en.wikipedia.org/ [2] https://upload.wikimedia.org/wikiversity/en/6/60/sequence.1.a.pdf [3] https://upload.wikimedia.org/wikiversity/en/b/bf/histogram.1.a.pdf