home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Press 1997 July
/
Sezamfile97_1.iso
/
msdos
/
database
/
pdx_ti2.arj
/
TI1064.ASC
< prev
next >
Wrap
Text File
|
1992-08-12
|
4KB
|
199 lines
PRODUCT : Paradox NUMBER : 1064
VERSION : 3.5 & up
OS : DOS
DATE : August 12, 1992 PAGE : 1/2
TITLE : Computing Weighted Averages in Reports
Intended Audience:
This Technical Information sheet is intended for all levels of
Paradox users who need to know how to compute weighted averages.
Prerequisites:
The reader of this document should be able to create tables,
forms, and reports in Paradox. In addition, the user should have
a basic understanding of how to use calculated fields in reports.
Purpose:
The purpose of this sheet is to familiarize the user with the
weighted averages equation and how to incorporate it in a report.
The basic idea of a Weighted Average comes from the Center of
Mass problem in Physics. The Center of Mass equation determines
where along a particular line (e.g., the X axis) the Center of
Mass is located. The location of the Center of Mass corresponds
to the Weighted Average of the system.
Here is an example of how to compute a Weighted Average for a
group of test scores. Let us say there are two scores that
appear for a particular test. Each score varies in occurrence;
for example, test score #1 will occur 3 times, and test score #2
will occur 2 times.
1. Determine how many times each test score occurs, e.g.;
M1=3, M2=2 etc.
2. Enter the value of each test score, e.g.;
X1=2, X2=9 etc.
3. Use the following equation to compute the Weighted Average
of the test scores:
Xc = ((M1*X1) + (M2*X2))\(M1+M2)
PRODUCT : Paradox NUMBER : 1064
VERSION : 3.5 & up
OS : DOS
DATE : August 12, 1992 PAGE : 2/2
TITLE : Computing Weighted Averages in Reports
Xc can be regarded as the Weighted Average of X1 and X2. The
Weighted Average equation can be used for any number of values.
For example, here is an equation that computes the Weighted
Average for four test scores:
Xc = ((M1*X1) + (M2*X2) + (M3*X3) + (M4*X4))\(M1+M2+M3+M4)
Each value's quantity provides the "weight" when the average is
calculated.
The following is an example of how to use Weighted Averages in a
report.
From the main menu choose Create and type in Weight and press
<ENTER> (or the equivalent). The first field should be
designated "X" of type N (numeric). The second field should be
designated "Quantity" of type N (numeric). Press <F2> to create
the table "Weight".
Choose Modify | DataEntry to enter the values; 1,2,3,4, and 5 in
the "X" field and 2,3,4,5, and 6 in the "Quantity" field. Press
<F2> upon completion of data entry.
From the main menu choose Report | Change and type in Weight.
Select the table's Standard Report and press <ENTER>. Press
<ENTER> when the Report's description appears on screen. The
message; "Changing Report R for Weight table" will be displayed
at the top left of the screen. Press <F10> for the Report
Generator Menu. Choose Field | Place | Calculated and place the
following field:
Round((Sum([X]*[Quantity]))/(Sum([Quantity])),2)
Press <F2> to save the report and return to the main menu.
Choose Report | Output; type in Weight and press <ENTER>. Choose
Screen and look at where the calculated field was placed on the
report. The calculated field will return the value "3.5". The
above equation can calculate the Weighted Average for any group
of numeric values.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
PRODUCT : Paradox NUMBER : 1064
VERSION : 3.5 & up
OS : DOS
DATE : August 12, 1992 PAGE : 3/3
TITLE : Computing Weighted Averages in Reports
you received with the Borland product to which this information
pertains.