The Geometric Mean and the AM-GM Inequality

Total Page:16

File Type:pdf, Size:1020Kb

The Geometric Mean and the AM-GM Inequality The Geometric Mean and the AM-GM Inequality John Treuer February 27, 2017 1 Introduction: The arithmetic mean of n numbers, better known as the average of n numbers is an example of a mathematical concept that comes up in everday conversation. We hear about averages during weather reports and teachers tell us the class average on the most recent test. However, there are other means besides the arithmetic mean. A less commonly known mean is the geometric mean. Tonight we will investigate the geometric mean, derive the arithmetic mean-geometric mean (AM-GM) inequality and do challenging problems. 2 Review of the Arithmetic Mean and Introduc- tion to the Geometric Mean The arithmetic mean (AM) of n numbers, better known as the average of n numbers, is the most common type of mean and it is defined by a + a + + a AM(a , ..., a )= 1 2 ··· n . 1 n n The geometric mean (GM) of n numbers is the nth root of the product of n numbers; that is, GM(a , ..., a )=Ôn a a . 1 n 1 ··· n Example 2.1 Calculate the arithmetic and geometric mean of 2, 4, and 8. 1 2 + 4 + 8 14 AM(2, 4, 8)= = = 4.6. 3 3 GM(2, 4, 8)=Ô3 2 4 8 = Ô3 64 = 4. · · Problem 2.2 Fill in the missing blanks in the following table. In the last column write down whether the arithmetic mean or the geometric mean is greater. The first row of the table has been done as an example. Arithmetic Mean Geometric Mean AM or GM (AM) (GM) bigger? (8, 8) 8 8 Equal (4, 16) (2, 32) (4, 4, 4) (2, 4, 8) (1, 9) (2, 8) (5,5) (23, 33, 53) 2 We can learn a few interesting things from the previous table. For the means we calculated, the arithmetic mean was always bigger than the geometric mean except when all of the numbers being averaged were the same; in that case, the arithmetic mean and geometric mean were the same. Now, let’s show that the latter observation holds in general: Problem 2.3 Show that if a = = a = a, then GM(a , ..., a )=AM(a , ..., a ). 1 ··· n 1 n 1 n It is also true in general that for all positive numbers a1, ..., an (not necessarily equal) that GM(a , ..., a ) AM(a , ..., a ). This inequality is called the arithmetic mean- 1 n Æ 1 n geometric mean inequality and we will prove that it is true in the next section. In the previous table, you found that GM(23,33,53)=30. It is also true that GM(22 3, 32 5, 52 2)=30 because · · · (22 3)(32 5)(52 2)=23 33 53. · · · · · Problem 2.4 Can you come up with another set of numbers (a, b, c) so that GM(a, b, c)= 30? At this point you may be wondering what is so geometric about the geometric mean? Let’s give one possible explanation. 3 Problem 2.5 Consider the following rectangles. Write down the area, A, of the rectangles and the geometric means of the side lengths: 4 A = 2 A = 16 32 GM(4, 16) = GM(2, 32) = Problem 2.6 What is the side length of the square that has the same area as the rectangles in the previous problem? Write down the side length of the square and the area of the square below. A = 4 It looks like that given a rectangle, the geometric mean of the side lengths is the side length of the square that has the same area as the rectangle. Is this true? Is this also true for 3-dimensional rectangles (called rectangular prisms) and 3-dimensional squares (called cubes)? Problem 2.7 Given the rectangular prism shown below, show that the geometric mean of the side lengths equals the side length of the cube that has the same volume as the rectangular prism. 2 2 3 Normally, we only deal with 2-dimensional or 3-dimensional rectangles because hu- mans can only see in 3-dimensions. However, we can define an n-dimensional rectan- gle as a rectangle with side lengths a1, a2, ..., an. The volume of the n-dimensional rectangle is a a a . 1 · 2 ··· n Problem 2.8 Given an n-dimensional prism with side lengths a1, ..., an show that GM(a1, ..., an) equals the side length of the n-dimensional cube with the same n- dimensional area as the prism. 5 We now have a geometric meaning for the geometric mean; the geometric mean of a1, ..., an gives the side length of the square that has the same area/volume as the rectangle with side lengths a1, ..., an. Now let’s return to our previous question of why the geometric mean of n positive numbers is less than the arithmetic mean of the same n positive numbers. 3 AM-GM inequality In this section we will do some fun problems that use the AM-GM inequality and prove a simplified version of the inequality. The AM-GM inequality is stated below: AM-GM Inequality If a1, ...an are positive numbers, then a + + a Ôn a a 1 ··· n 1 ··· n Æ n and equality holds if and only if a = = a . 1 ··· n Use the AM-GM inequality to solve the following four problems. Problem 3.1 The condition that all of the an’s be positive is important. For n odd, give an example where some of the an’s are negative and the AM-GM inequality does not hold. a b Problem 3.2 Use the AM-GM inequality to show that for a, b>0, b + a 2. a/b+b/a Ø (Hint: Apply the AM-GM inequality to 2 first). 6 Problem 3.3 If xyz = 27 and x, y, z are all positive, then what is the minimum value of x + y + z. For what values of x, y, z does this minimum occur? Problem 3.4 Let r1, ..., rn be n positive numbers and let x>0. Show that n r1 + + rn (x + r1)(x + r2) (x + rn) x + ··· . ··· Æ 3 n 4 (Hint: Take the nth root of both sides first.) The AM-GM inequality allows us to do cool problems like the ones you just did. Now let’s investigate some proofs of the AM-GM inequality. When n = 2, we can give a geometric proof of the AM-GM inequality. For the next two problems you need to remember the Pythagorean theorem: If a, b, and c are the side lengths of a right triangle and c is the length of the hypotenuse of the triangle, then a2 + b2 = c2. Consider the two circles below with diameters a and b with a>bshown on the next page: 7 CLASSROOM CAPSULES Edited by Warren Page Classroom Capsules serves to convey new insights on familiar topics and to enhance pedagogy through shared teaching experiences Its format consists primarily of readily understood mathematics capsules which make their impact quickly and effectively Such tidbits should be nurtured, cultivated, and presented for the benefit of your colleagues elsewhere Queries, when available, will round out the column and serve to open further dialog on specific items of reader concern Readers are invited to submit material for consideration to: Warren Page Department of Mathematics New York City Technical College 300 Jay Street Brooklyn, NY Pythagorean11201 Theorem: b c a2 + b2 = c2 Behold! The Arithmetic-Geometric Mean Inequality Roland H. Eddy, Memorial University of Newfoundland, St. John's, Newfound? land, Canada a a + b > \fab , with equality if and only if a = b. O x B C Problem 208 3.5 Determine the length of OC, the length of BC, and OB = x in terms of a and b. Conclude that when a = b, that Ôab < a+b . ” 2 This content downloaded from 128.195.69.132 on Tue, 27 Dec 2016 06:26:48 UTC All use subject to http://about.jstor.org/terms 8 Now consider the following triangle inscribed in the semicircle with center O below: D d h c A a B O b C Problem 3.6 Let r be the radius of the semicircle. Express r in terms of a and b. Is h r or r h? Æ Æ Problem 3.7 There are three right triangles in the picture above. For each triangle, list the vertices and the corresponding Pythagorean equation in the chart below. An example has been done for you. Triangle Pythagorean Equation ABD a2 + h2 = d2 9 Problem 3.8 1) Using the three Pythagorean equations you found in the previous exercise, and the comparison between h and r in problem 3.6, solve for h in terms of a and b. Conclude that GM(a, b) AM(a, b). Æ 2)When does equality hold? (Think geometrically!) Why is it implied that this argu- ment only works for a, b 0. Ø We now have two proofs that if a and b are positive, then Ôab a+b . The next step Æ 2 is to show that for all n 2, Ø a + + a Ôn a a 1 ··· n . 1 ··· n Æ n Let’s look back at the first table you filled in at the beginning of this packet. You found that (a1, a2) GM(a1, a2) AM(a1, a2) (1, 9) 3 5 (2,8) 4 5 (5,5) 5 5 10 Notice that in the above table, as you go down the rows, a1 is increased by the same amount that a2 is decreased.
Recommended publications
  • Applied Biostatistics Mean and Standard Deviation the Mean the Median Is Not the Only Measure of Central Value for a Distribution
    Health Sciences M.Sc. Programme Applied Biostatistics Mean and Standard Deviation The mean The median is not the only measure of central value for a distribution. Another is the arithmetic mean or average, usually referred to simply as the mean. This is found by taking the sum of the observations and dividing by their number. The mean is often denoted by a little bar over the symbol for the variable, e.g. x . The sample mean has much nicer mathematical properties than the median and is thus more useful for the comparison methods described later. The median is a very useful descriptive statistic, but not much used for other purposes. Median, mean and skewness The sum of the 57 FEV1s is 231.51 and hence the mean is 231.51/57 = 4.06. This is very close to the median, 4.1, so the median is within 1% of the mean. This is not so for the triglyceride data. The median triglyceride is 0.46 but the mean is 0.51, which is higher. The median is 10% away from the mean. If the distribution is symmetrical the sample mean and median will be about the same, but in a skew distribution they will not. If the distribution is skew to the right, as for serum triglyceride, the mean will be greater, if it is skew to the left the median will be greater. This is because the values in the tails affect the mean but not the median. Figure 1 shows the positions of the mean and median on the histogram of triglyceride.
    [Show full text]
  • Comparison of Harmonic, Geometric and Arithmetic Means for Change Detection in SAR Time Series Guillaume Quin, Béatrice Pinel-Puysségur, Jean-Marie Nicolas
    Comparison of Harmonic, Geometric and Arithmetic means for change detection in SAR time series Guillaume Quin, Béatrice Pinel-Puysségur, Jean-Marie Nicolas To cite this version: Guillaume Quin, Béatrice Pinel-Puysségur, Jean-Marie Nicolas. Comparison of Harmonic, Geometric and Arithmetic means for change detection in SAR time series. EUSAR. 9th European Conference on Synthetic Aperture Radar, 2012., Apr 2012, Germany. hal-00737524 HAL Id: hal-00737524 https://hal.archives-ouvertes.fr/hal-00737524 Submitted on 2 Oct 2012 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. EUSAR 2012 Comparison of Harmonic, Geometric and Arithmetic Means for Change Detection in SAR Time Series Guillaume Quin CEA, DAM, DIF, F-91297 Arpajon, France Béatrice Pinel-Puysségur CEA, DAM, DIF, F-91297 Arpajon, France Jean-Marie Nicolas Telecom ParisTech, CNRS LTCI, 75634 Paris Cedex 13, France Abstract The amplitude distribution in a SAR image can present a heavy tail. Indeed, very high–valued outliers can be observed. In this paper, we propose the usage of the Harmonic, Geometric and Arithmetic temporal means for amplitude statistical studies along time. In general, the arithmetic mean is used to compute the mean amplitude of time series.
    [Show full text]
  • University of Cincinnati
    UNIVERSITY OF CINCINNATI Date:___________________ I, _________________________________________________________, hereby submit this work as part of the requirements for the degree of: in: It is entitled: This work and its defense approved by: Chair: _______________________________ _______________________________ _______________________________ _______________________________ _______________________________ Gibbs Sampling and Expectation Maximization Methods for Estimation of Censored Values from Correlated Multivariate Distributions A dissertation submitted to the Division of Research and Advanced Studies of the University of Cincinnati in partial ful…llment of the requirements for the degree of DOCTORATE OF PHILOSOPHY (Ph.D.) in the Department of Mathematical Sciences of the McMicken College of Arts and Sciences May 2008 by Tina D. Hunter B.S. Industrial and Systems Engineering The Ohio State University, Columbus, Ohio, 1984 M.S. Aerospace Engineering University of Cincinnati, Cincinnati, Ohio, 1989 M.S. Statistics University of Cincinnati, Cincinnati, Ohio, 2003 Committee Chair: Dr. Siva Sivaganesan Abstract Statisticians are often called upon to analyze censored data. Environmental and toxicological data is often left-censored due to reporting practices for mea- surements that are below a statistically de…ned detection limit. Although there is an abundance of literature on univariate methods for analyzing this type of data, a great need still exists for multivariate methods that take into account possible correlation amongst variables. Two methods are developed here for that purpose. One is a Markov Chain Monte Carlo method that uses a Gibbs sampler to es- timate censored data values as well as distributional and regression parameters. The second is an expectation maximization (EM) algorithm that solves for the distributional parameters that maximize the complete likelihood function in the presence of censored data.
    [Show full text]
  • Estimating the Mean and Variance of a Normal Distribution
    Estimating the Mean and Variance of a Normal Distribution Learning Objectives After completing this module, the student will be able to • explain the value of repeating experiments • explain the role of the law of large numbers in estimating population means • describe the effect of increasing the sample size or reducing measurement errors or other sources of variability Knowledge and Skills • Properties of the arithmetic mean • Estimating the mean of a normal distribution • Law of Large Numbers • Estimating the Variance of a normal distribution • Generating random variates in EXCEL Prerequisites 1. Calculating sample mean and arithmetic average 2. Calculating sample standard variance and standard deviation 3. Normal distribution Citation: Neuhauser, C. Estimating the Mean and Variance of a Normal Distribution. Created: September 9, 2009 Revisions: Copyright: © 2009 Neuhauser. This is an open‐access article distributed under the terms of the Creative Commons Attribution Non‐Commercial Share Alike License, which permits unrestricted use, distribution, and reproduction in any medium, and allows others to translate, make remixes, and produce new stories based on this work, provided the original author and source are credited and the new work will carry the same license. Funding: This work was partially supported by a HHMI Professors grant from the Howard Hughes Medical Institute. Page 1 Pretest 1. Laura and Hamid are late for Chemistry lab. The lab manual asks for determining the density of solid platinum by repeating the measurements three times. To save time, they decide to only measure the density once. Explain the consequences of this shortcut. 2. Tom and Bao Yu measured the density of solid platinum three times: 19.8, 21.4, and 21.9 g/cm3.
    [Show full text]
  • Business Statistics Unit 4 Correlation and Regression.Pdf
    RCUB, B.Com 4 th Semester Business Statistics – II Rani Channamma University, Belagavi B.Com – 4th Semester Business Statistics – II UNIT – 4 : CORRELATION Introduction: In today’s business world we come across many activities, which are dependent on each other. In businesses we see large number of problems involving the use of two or more variables. Identifying these variables and its dependency helps us in resolving the many problems. Many times there are problems or situations where two variables seem to move in the same direction such as both are increasing or decreasing. At times an increase in one variable is accompanied by a decline in another. For example, family income and expenditure, price of a product and its demand, advertisement expenditure and sales volume etc. If two quantities vary in such a way that movements in one are accompanied by movements in the other, then these quantities are said to be correlated. Meaning: Correlation is a statistical technique to ascertain the association or relationship between two or more variables. Correlation analysis is a statistical technique to study the degree and direction of relationship between two or more variables. A correlation coefficient is a statistical measure of the degree to which changes to the value of one variable predict change to the value of another. When the fluctuation of one variable reliably predicts a similar fluctuation in another variable, there’s often a tendency to think that means that the change in one causes the change in the other. Uses of correlations: 1. Correlation analysis helps inn deriving precisely the degree and the direction of such relationship.
    [Show full text]
  • Beating Monte Carlo
    SIMULATION BEATING MONTE CARLO Simulation methods using low-discrepancy point sets beat Monte Carlo hands down when valuing complex financial derivatives, report Anargyros Papageorgiou and Joseph Traub onte Carlo simulation is widely used to ods with basic Monte Carlo in the valuation of alised Faure achieves accuracy of 10"2 with 170 M price complex financial instruments, and a collateraliscd mortgage obligation (CMO). points, while modified Sobol uses 600 points. much time and money have been invested in We found that deterministic methods beat The Monte Carlo method, on the other hand, re• the hope of improving its performance. How• Monte Carlo: quires 2,700 points for the same accuracy, ever, recent theoretical results and extensive • by a wide margin. In particular: (iii) Monte Carlo tends to waste points due to computer testing indicate that deterministic (i) Both the generalised Faure and modified clustering, which severely compromises its per• methods, such as simulations using Sobol or Sobol methods converge significantly faster formance when the sample size is small. Faure points, may be superior in both speed than Monte Carlo. • as the sample size and the accuracy de• and accuracy. (ii) The generalised Faure method always con• mands grow. In particular: Tn this paper, we refer to a deterministic verges at least as fast as the modified Sobol (i) Deterministic methods are 20 to 50 times method by the name of the sequence of points method and often faster. faster than Monte Carlo (the speed-up factor) it uses, eg, the Sobol method. Wc tested the gen• (iii) The Monte Carlo method is sensitive to the even with moderate sample sizes (2,000 de• eralised Faure sequence due to Tezuka (1995) initial seed.
    [Show full text]
  • Incorporating a Geometric Mean Formula Into The
    Calculating the CPI Incorporating a geometric mean formula into the CPI Beginning in January 1999, a new geometric mean formula will replace the current Laspeyres formula in calculating most basic components of the Consumer Price Index; the new formula will better account for the economic substitution behavior of consumers 2 Kenneth V. Dalton, his article describes an important improve- bias” in the CPI. This upward bias was a techni- John S. Greenlees, ment in the calculation of the Consumer cal problem that tied the weight of a CPI sample and TPrice Index (CPI). The Bureau of Labor Sta- item to its expected price change. The flaw was Kenneth J. Stewart tistics plans to use a new geometric mean for- effectively eliminated by changes to the CPI mula for calculating most of the basic compo- sample rotation and substitution procedures and nents of the Consumer Price Index for all Urban to the functional form used to calculate changes Consumers (CPI-U) and the Consumer Price In- in the cost of shelter for homeowners. In 1997, a dex for Urban Wage Earners and Clerical Work- new approach to the measurement of consumer ers (CPI-W). This change will become effective prices for hospital services was introduced.3 Pric- with data for January 1999.1 ing procedures were revised, from pricing indi- The geometric mean formula will be used in vidual items (such as a unit of blood or a hospi- index categories that make up approximately 61 tal inpatient day) to pricing the combined sets of percent of total consumer spending represented goods and services provided on selected patient by the CPI-U.
    [Show full text]
  • Lecture 3: Measure of Central Tendency
    Lecture 3: Measure of Central Tendency Donglei Du ([email protected]) Faculty of Business Administration, University of New Brunswick, NB Canada Fredericton E3B 9Y2 Donglei Du (UNB) ADM 2623: Business Statistics 1 / 53 Table of contents 1 Measure of central tendency: location parameter Introduction Arithmetic Mean Weighted Mean (WM) Median Mode Geometric Mean Mean for grouped data The Median for Grouped Data The Mode for Grouped Data 2 Dicussion: How to lie with averges? Or how to defend yourselves from those lying with averages? Donglei Du (UNB) ADM 2623: Business Statistics 2 / 53 Section 1 Measure of central tendency: location parameter Donglei Du (UNB) ADM 2623: Business Statistics 3 / 53 Subsection 1 Introduction Donglei Du (UNB) ADM 2623: Business Statistics 4 / 53 Introduction Characterize the average or typical behavior of the data. There are many types of central tendency measures: Arithmetic mean Weighted arithmetic mean Geometric mean Median Mode Donglei Du (UNB) ADM 2623: Business Statistics 5 / 53 Subsection 2 Arithmetic Mean Donglei Du (UNB) ADM 2623: Business Statistics 6 / 53 Arithmetic Mean The Arithmetic Mean of a set of n numbers x + ::: + x AM = 1 n n Arithmetic Mean for population and sample N P xi µ = i=1 N n P xi x¯ = i=1 n Donglei Du (UNB) ADM 2623: Business Statistics 7 / 53 Example Example: A sample of five executives received the following bonuses last year ($000): 14.0 15.0 17.0 16.0 15.0 Problem: Determine the average bonus given last year. Solution: 14 + 15 + 17 + 16 + 15 77 x¯ = = = 15:4: 5 5 Donglei Du (UNB) ADM 2623: Business Statistics 8 / 53 Example Example: the weight example (weight.csv) The R code: weight <- read.csv("weight.csv") sec_01A<-weight$Weight.01A.2013Fall # Mean mean(sec_01A) ## [1] 155.8548 Donglei Du (UNB) ADM 2623: Business Statistics 9 / 53 Will Rogers phenomenon Consider two sets of IQ scores of famous people.
    [Show full text]
  • Wavelet Operators and Multiplicative Observation Models
    Wavelet Operators and Multiplicative Observation Models - Application to Change-Enhanced Regularization of SAR Image Time Series Abdourrahmane Atto, Emmanuel Trouvé, Jean-Marie Nicolas, Thu Trang Le To cite this version: Abdourrahmane Atto, Emmanuel Trouvé, Jean-Marie Nicolas, Thu Trang Le. Wavelet Operators and Multiplicative Observation Models - Application to Change-Enhanced Regularization of SAR Image Time Series. 2016. hal-00950823v3 HAL Id: hal-00950823 https://hal.archives-ouvertes.fr/hal-00950823v3 Preprint submitted on 26 Jan 2016 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. 1 Wavelet Operators and Multiplicative Observation Models - Application to Change-Enhanced Regularization of SAR Image Time Series Abdourrahmane M. Atto1;∗, Emmanuel Trouve1, Jean-Marie Nicolas2, Thu-Trang Le^1 Abstract|This paper first provides statistical prop- I. Introduction - Motivation erties of wavelet operators when the observation model IGHLY resolved data such as Synthetic Aperture can be seen as the product of a deterministic piece- Radar (SAR) image time series issued from new wise regular function (signal) and a stationary random H field (noise). This multiplicative observation model is generation sensors show minute details. Indeed, the evo- analyzed in two standard frameworks by considering lution of SAR imaging systems is such that in less than 2 either (1) a direct wavelet transform of the model decades: or (2) a log-transform of the model prior to wavelet • high resolution sensors can achieve metric resolution, decomposition.
    [Show full text]
  • “Mean”? a Review of Interpreting and Calculating Different Types of Means and Standard Deviations
    pharmaceutics Review What Does It “Mean”? A Review of Interpreting and Calculating Different Types of Means and Standard Deviations Marilyn N. Martinez 1,* and Mary J. Bartholomew 2 1 Office of New Animal Drug Evaluation, Center for Veterinary Medicine, US FDA, Rockville, MD 20855, USA 2 Office of Surveillance and Compliance, Center for Veterinary Medicine, US FDA, Rockville, MD 20855, USA; [email protected] * Correspondence: [email protected]; Tel.: +1-240-3-402-0635 Academic Editors: Arlene McDowell and Neal Davies Received: 17 January 2017; Accepted: 5 April 2017; Published: 13 April 2017 Abstract: Typically, investigations are conducted with the goal of generating inferences about a population (humans or animal). Since it is not feasible to evaluate the entire population, the study is conducted using a randomly selected subset of that population. With the goal of using the results generated from that sample to provide inferences about the true population, it is important to consider the properties of the population distribution and how well they are represented by the sample (the subset of values). Consistent with that study objective, it is necessary to identify and use the most appropriate set of summary statistics to describe the study results. Inherent in that choice is the need to identify the specific question being asked and the assumptions associated with the data analysis. The estimate of a “mean” value is an example of a summary statistic that is sometimes reported without adequate consideration as to its implications or the underlying assumptions associated with the data being evaluated. When ignoring these critical considerations, the method of calculating the variance may be inconsistent with the type of mean being reported.
    [Show full text]
  • Expectation and Functions of Random Variables
    POL 571: Expectation and Functions of Random Variables Kosuke Imai Department of Politics, Princeton University March 10, 2006 1 Expectation and Independence To gain further insights about the behavior of random variables, we first consider their expectation, which is also called mean value or expected value. The definition of expectation follows our intuition. Definition 1 Let X be a random variable and g be any function. 1. If X is discrete, then the expectation of g(X) is defined as, then X E[g(X)] = g(x)f(x), x∈X where f is the probability mass function of X and X is the support of X. 2. If X is continuous, then the expectation of g(X) is defined as, Z ∞ E[g(X)] = g(x)f(x) dx, −∞ where f is the probability density function of X. If E(X) = −∞ or E(X) = ∞ (i.e., E(|X|) = ∞), then we say the expectation E(X) does not exist. One sometimes write EX to emphasize that the expectation is taken with respect to a particular random variable X. For a continuous random variable, the expectation is sometimes written as, Z x E[g(X)] = g(x) d F (x). −∞ where F (x) is the distribution function of X. The expectation operator has inherits its properties from those of summation and integral. In particular, the following theorem shows that expectation preserves the inequality and is a linear operator. Theorem 1 (Expectation) Let X and Y be random variables with finite expectations. 1. If g(x) ≥ h(x) for all x ∈ R, then E[g(X)] ≥ E[h(X)].
    [Show full text]
  • Notes on Calculating Computer Performance
    Notes on Calculating Computer Performance Bruce Jacob and Trevor Mudge Advanced Computer Architecture Lab EECS Department, University of Michigan {blj,tnm}@umich.edu Abstract This report explains what it means to characterize the performance of a computer, and which methods are appro- priate and inappropriate for the task. The most widely used metric is the performance on the SPEC benchmark suite of programs; currently, the results of running the SPEC benchmark suite are compiled into a single number using the geometric mean. The primary reason for using the geometric mean is that it preserves values across normalization, but unfortunately, it does not preserve total run time, which is probably the figure of greatest interest when performances are being compared. Cycles per Instruction (CPI) is another widely used metric, but this method is invalid, even if comparing machines with identical clock speeds. Comparing CPI values to judge performance falls prey to the same prob- lems as averaging normalized values. In general, normalized values must not be averaged and instead of the geometric mean, either the harmonic or the arithmetic mean is the appropriate method for averaging a set running times. The arithmetic mean should be used to average times, and the harmonic mean should be used to average rates (1/time). A number of published SPECmarks are recomputed using these means to demonstrate the effect of choosing a favorable algorithm. 1.0 Performance and the Use of Means We want to summarize the performance of a computer; the easiest way uses a single number that can be compared against the numbers of other machines.
    [Show full text]