The OpenOffice Calc spreadsheet formula for square root is:
= sqrt ( A )
Where A = data
This can also be reformulated as:
= A^(1/2)
This reformulation is versatile as it can be extended to handle cube roots as follows:
= A^(1/3)
Monday, June 14, 2010
Harmonic Mean
The Harmonic Mean formula is:
HM = 1.5 / (0.5/A + 0.5/B + 0.5/C )
Where: A, B, and C = sample data
0.5 is the assigned weight for each sample
1.5 is the total assigned weight for all samples
Given only two samples, the formula becomes:
HM = 1 / ( 0.5/A + 0.5/B )
The manual calculation of Harmonic Mean becomes tedious as the number of samples increases.
OpenOffice Calc spreadsheet uses the following formula in calculating for the Harmonic Mean:
= harmean ( range of cells of the sample data )
HM = 1.5 / (0.5/A + 0.5/B + 0.5/C )
Where: A, B, and C = sample data
0.5 is the assigned weight for each sample
1.5 is the total assigned weight for all samples
Given only two samples, the formula becomes:
HM = 1 / ( 0.5/A + 0.5/B )
The manual calculation of Harmonic Mean becomes tedious as the number of samples increases.
OpenOffice Calc spreadsheet uses the following formula in calculating for the Harmonic Mean:
= harmean ( range of cells of the sample data )
Geometric Mean Formula
The geometric mean formula is:
GM = ( A * B * C ) ^ (1 / n )
Where: A, B, and C = sample data
n = is the number of samples, in this case 3
If there are only 2 sample data, the formula becomes:
GM = ( A * B ) ^ (1/2)
The calculation of the Geometric Mean becomes tedious as soon as the number of samples increases. Fortunately, modern spreadsheets can easily calculate this measure of central tendency. The OpenOffice formula for the Geometric Mean is:
=geomean( range of cells of the sample data )
GM = ( A * B * C ) ^ (1 / n )
Where: A, B, and C = sample data
n = is the number of samples, in this case 3
If there are only 2 sample data, the formula becomes:
GM = ( A * B ) ^ (1/2)
The calculation of the Geometric Mean becomes tedious as soon as the number of samples increases. Fortunately, modern spreadsheets can easily calculate this measure of central tendency. The OpenOffice formula for the Geometric Mean is:
=geomean( range of cells of the sample data )
Friday, October 2, 2009
What is omserv running on port 764?
There is not much information on omserv running on port 764. By doing trial and error and using the lsof command, I found that omserv is actually nfslock. If you want to turn off this service (I surely do, since I don't know and use this service), issue the command:
chkconfig --levels 2345 nfslock off
This will remove the autoexecute of the nfslock. Afterwards, issue the command to stop the process:
/etc/rc.d/init.d/nfslock stop
To verify if you have stopped the service, type the command:
nmap localhost
chkconfig --levels 2345 nfslock off
This will remove the autoexecute of the nfslock. Afterwards, issue the command to stop the process:
/etc/rc.d/init.d/nfslock stop
To verify if you have stopped the service, type the command:
nmap localhost
Monday, August 3, 2009
Installing Squid as a Service
To install the Squid Proxy Cache Server as a service under Windows, issue the command:
c:\squid\sbin\>squid.exe -f c:\squid\etc\squid.conf -i -n Squid
The name of the service is "Squid". To verify, type the command "services.msc" and look up the name of "Squid" under the name services column.
c:\squid\sbin\>squid.exe -f c:\squid\etc\squid.conf -i -n Squid
The name of the service is "Squid". To verify, type the command "services.msc" and look up the name of "Squid" under the name services column.
Installing PostgreSQL as a Service
To install the PostgreSQL database as a Service under Windows, issue the command the the PostgreSQL directory as follows:
c:\pgsql\bin> pg_ctl -D c:\pgsql\data register -N PostgreSQL
In the above example, PostgreSQL is the name of the PostgreSQL service. Type the command "services.msc" to verify the name "PostgreSQL".
c:\pgsql\bin> pg_ctl -D c:\pgsql\data register -N PostgreSQL
In the above example, PostgreSQL is the name of the PostgreSQL service. Type the command "services.msc" to verify the name "PostgreSQL".
Sunday, July 19, 2009
Yamane's Sample Size Formula
If you are at a lost as to how to determine your sample size, I suggest you use Taro Yamane's formula:
n = N /[1+N(e)^2]
where:
n = sample size
N = population size (the universe)
e = sampling error (usually .10, .05 and .01 acceptable error)
^ = raised to the power of
Note:
This particular formula has been called Slovin's formula here in the Philippines but I kind of doubt the attribution. I still cannot find the actual work of Slovin but Taro Yamane's work is set out clearly in his book referred below (I got a copy but this is already out of print) including the derivations of the formula. So while a lot of Statisticians here in the Philippines calls this Slovin's formula, I continue to assert that it is Yamane's formula until I can see the actual work of Slovin.
--------------------
Yamane, Taro. 1967. Statistics: An Introductory Analysis, 2nd Edition, New York. Harper and Row.
n = N /[1+N(e)^2]
where:
n = sample size
N = population size (the universe)
e = sampling error (usually .10, .05 and .01 acceptable error)
^ = raised to the power of
Note:
This particular formula has been called Slovin's formula here in the Philippines but I kind of doubt the attribution. I still cannot find the actual work of Slovin but Taro Yamane's work is set out clearly in his book referred below (I got a copy but this is already out of print) including the derivations of the formula. So while a lot of Statisticians here in the Philippines calls this Slovin's formula, I continue to assert that it is Yamane's formula until I can see the actual work of Slovin.
--------------------
Reference
Yamane, Taro. 1967. Statistics: An Introductory Analysis, 2nd Edition, New York. Harper and Row.
Subscribe to:
Posts (Atom)