Jump to content

Chemistry Calculations: Difference between revisions

From MedLabWiki
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 6: Line 6:
<math display="block">\bar{x}=\frac{x_1+x_2+...+x_n}{n}</math>
<math display="block">\bar{x}=\frac{x_1+x_2+...+x_n}{n}</math>


=== Sample Standard Deviation ===
=== Sample Standard Deviation (same unit as data) ===
Use standard deviation when the '''mean of two methods is the same.''' Report as +1 decimal place more than the data.
Use standard deviation when the '''mean of two methods is the same.''' Report as +1 decimal place more than the data.


Line 33: Line 33:
* 1-2s (one control value exceeds the mean ±2 SD)
* 1-2s (one control value exceeds the mean ±2 SD)
* R10x (ten consecutive values fall on one side of the mean)
* R10x (ten consecutive values fall on one side of the mean)
=== Specificity Calculation (%) ===
The specificity is the probability that a given person who does not have a condition (i.e., is healthy) would actually test negative.
<math display="block">Specificity=\frac{\mbox{True Negatives}}{\mbox{True Negatives }+\mbox{ False positives}}</math>
=== Sensitivity Calculation (%) ===
The sensitivity is the probability that a given person who has a condition (e.g., disease) would actually test positive.
<math display="block">Sensitivity=\frac{\mbox{True Positives}}{\mbox{True Positives }+\mbox{ False negatives}}</math>
=== Negative Predictive Value (%) ===
The negative predictive value (NPV) is a measure of how often someone who tests negative for a disease will not have the disease.
<math display="block">\mbox{Negative Predictive Value}=\frac{\mbox{True Negatives}}{\mbox{True Negatives }+\mbox{ False negatives}}</math>
=== Positive Preductive Value (%) ===
The positive predictive value (PPV) is a measure of how often someone who tests positive for a disease will actually have the disease.
<math display="block">\mbox{Positive Predictive Value}=\frac{\mbox{True Positives}}{\mbox{True Positives }+\mbox{ False positives}}</math>


== Blood pH & Respiration ==
== Blood pH & Respiration ==


=== Blood pH Calculations ===
=== Blood pH Calculations (unitless) ===
<math display="block">pH=6.1+log\frac{[HCO^-]}{0.03*P_{CO2}}</math>
<math display="block">pH=6.1+log\frac{[HCO^-]}{0.03*P_{CO2}}</math>


dCO2 = dissolved CO2
OR


PCO2 = partial pressure CO2
<math display="block">pH=6.1+log\frac{[HCO^-]}{dCO_2}</math>


[HCO-] = concentration of bicarbonate
dCO<sub>2</sub> = dissolved CO<sub>2</sub> (mmol/L)
 
PCO<sub>2</sub> = partial pressure CO<sub>2</sub> (mmHg)
 
[HCO<sup>-</sup>] = concentration of bicarbonate (mmol/L)
 
=== Conversion Between PCO<sub>2</sub> (mmHg) and dCO<sub>2</sub> (mmol/L) ===
<math display="block">dCO_2=PCO_2*0.03</math>
 
=== Calculation of HCO<sub>3</sub><sup>-</sup> (mmol/L) ===
Used when TCO<sub>2</sub> is measured via a wet or dry methodology.
 
<math display="block">[HCO_3^-]=T_{CO_2}-1.2 \mbox{ mmol/L}</math>


== Kidney Function Testing ==
== Kidney Function Testing ==
Line 78: Line 110:
== Electrolytes & Osmolality ==
== Electrolytes & Osmolality ==


=== Osmolar Gap ===
=== Osmolal Gap (Osm/kg) ===
Calculates difference between expected osmolality vs actual osmolality. High osmolar gap may be due to presence of volatile or osmotically active compounds like ethanol, methanol, etc.
Calculates difference between expected osmolality vs actual osmolality. High osmolar gap may be due to presence of volatile or osmotically active compounds like ethanol, methanol, etc.


Line 86: Line 118:


<math display="block">\mbox{Osmolar Gap}=\mbox{Measured Osmolality}-\mbox{Calculated Osmolality}</math>
<math display="block">\mbox{Osmolar Gap}=\mbox{Measured Osmolality}-\mbox{Calculated Osmolality}</math>
=== Freezing Point Depression (°C) ===
Calculates the freezing temperature based on osmolality.
<math display="block">\mbox{Osmolality (mmol/kg)}=\frac{\mbox{FP Depression}}{1.86\mbox{°C}}*100</math>
=== Anion Gap - North America (mmol/L) ===
The anion gap estimates the difference in cations vs. anions in blood. It can be used to help investigate acid-base disturbances and issues with electrolyte measurement. Potassium (K<sup>+</sup>) ions are not included in this calculation in North America.
<math display="block">\mbox{Anion gap}=(Na^+)-(Cl^-+HCO_3^-)</math>


== Dilutions & Concentrations ==
== Dilutions & Concentrations ==
Line 101: Line 143:


<math display="block">V_{diluent}=V_{total}-V_{solute}</math>
<math display="block">V_{diluent}=V_{total}-V_{solute}</math>
== Absorbance & Measurement ==
Determining Unknown Concentration by Absorbance
<math display="block">[Unknown]=\frac{Abs_u*[Standard]}{Abs_s}</math>
[[Category:Calculations]]
__NOEDITSECTION__
[[Category:Chemistry]]

Latest revision as of 19:07, 2 March 2025

Statistics & Quality Control

Mean/Average (unit)

The mean is the average of a series of numbers. Report to the same units and decimal places as the data.

x¯=x1+x2+...+xnn

Sample Standard Deviation (same unit as data)

Use standard deviation when the mean of two methods is the same. Report as +1 decimal place more than the data.

s=Σ(xx¯)2n1where x = data and x¯=Mean

Coefficient of Variation (%)

Use coefficient of variation when the mean of two methods is different. Report to 1 decimal place.

CV=SDMean100

Percent Error (%)

Report to 1 decimal place.

%Error=ActualTheoreticalTheoretical100%

Westgard Rules

There are 4 reject rules and 2 warning rules:

  • 1-3s (one control value exceeds the mean ±3 SD)
  • 2-2s (two consecutive control values exceed the mean ±2 SD)
  • R-4s (when one value exceeds the mean +2 SD and another value exceeds -2 SD within the same run so that the values are 4 SD different from each other)
  • 4-1s (four consecutive control values exceed the mean ±1 SD)

Warning Rules:

  • 1-2s (one control value exceeds the mean ±2 SD)
  • R10x (ten consecutive values fall on one side of the mean)

Specificity Calculation (%)

The specificity is the probability that a given person who does not have a condition (i.e., is healthy) would actually test negative.

Specificity=True NegativesTrue Negatives + False positives

Sensitivity Calculation (%)

The sensitivity is the probability that a given person who has a condition (e.g., disease) would actually test positive.

Sensitivity=True PositivesTrue Positives + False negatives

Negative Predictive Value (%)

The negative predictive value (NPV) is a measure of how often someone who tests negative for a disease will not have the disease.

Negative Predictive Value=True NegativesTrue Negatives + False negatives

Positive Preductive Value (%)

The positive predictive value (PPV) is a measure of how often someone who tests positive for a disease will actually have the disease.

Positive Predictive Value=True PositivesTrue Positives + False positives

Blood pH & Respiration

Blood pH Calculations (unitless)

pH=6.1+log[HCO]0.03PCO2

OR

pH=6.1+log[HCO]dCO2

dCO2 = dissolved CO2 (mmol/L)

PCO2 = partial pressure CO2 (mmHg)

[HCO-] = concentration of bicarbonate (mmol/L)

Conversion Between PCO2 (mmHg) and dCO2 (mmol/L)

dCO2=PCO20.03

Calculation of HCO3- (mmol/L)

Used when TCO2 is measured via a wet or dry methodology.

[HCO3]=TCO21.2 mmol/L

Kidney Function Testing

Creatinine Clearance (mL/s)

Creatinine clearance is (U*V)/S and the corrected creatinine clearance uses BSA to correct for size/muscle mass.

CC=UVS1.73BSA

CC=[Urine Creatinine]Urine flow][Serum creatinine]1.73Body surface area

Convert mmol/L to mmol/day:

24h excretion=24h urine volume  [Analyte]1000

U = urine creatinine (μmol/L)

S = serum creatinine (μmol/L)

V = urine flow rate (mL/s) - this is the 24h volume (mL) divided by 86 400 seconds per 24h

BSA = body surface area (m2) - calculate using height and weight on nomogram

Creatinine (mmol/d)

Used as measure of creatinine levels from 24h urine.

Creatinine=Vc1000

=Urine volume [Creatinine]1000

eGFR Estimated Glomerular Filtration Rate

Complicated calculation using standardized serum creatinine and many correction factors for age and gender.

Electrolytes & Osmolality

Osmolal Gap (Osm/kg)

Calculates difference between expected osmolality vs actual osmolality. High osmolar gap may be due to presence of volatile or osmotically active compounds like ethanol, methanol, etc.

Calculated Osmolality=2[Na2+]+[Urea]+[Glucose]

From this, the osmolar gap can be calculated:

Osmolar Gap=Measured OsmolalityCalculated Osmolality

Freezing Point Depression (°C)

Calculates the freezing temperature based on osmolality.

Osmolality (mmol/kg)=FP Depression1.86°C100

Anion Gap - North America (mmol/L)

The anion gap estimates the difference in cations vs. anions in blood. It can be used to help investigate acid-base disturbances and issues with electrolyte measurement. Potassium (K+) ions are not included in this calculation in North America.

Anion gap=(Na+)(Cl+HCO3)

Dilutions & Concentrations

Calculating Dilutions Using Dilution Factors and Total Volume

You can determine the amount of solute required for a dilution with a given dilution factor and final (total) volume.

DF=VtotalVsolute

Vsolute=VtotalDF

DF = dilution factor (e.g., in a 1:250 dilution, the DF is 250)

You can then determine the amount of diluent/solvent needed from the calculated volume of solute required.

Vdiluent=VtotalVsolute

Absorbance & Measurement

Determining Unknown Concentration by Absorbance

[Unknown]=Absu[Standard]Abss