Difference between revisions of "Recipe/Example/Cake"
Jump to navigation
Jump to search
(→Data) |
(→Data) |
||
Line 37: | Line 37: | ||
! Nutrient !! Flour !! Sugar !! Egg !! Butter | ! Nutrient !! Flour !! Sugar !! Egg !! Butter | ||
|- | |- | ||
− | | Fat || | + | | Fat || 1.18 || 0 || 9.83 || 82.9 |
|- | |- | ||
− | | Sat. Fat || | + | | Sat. Fat || 0.17 || 0 || 2.64 || 55.4 |
|- | |- | ||
− | | Carbohydrates || | + | | Carbohydrates || 73.2 || 99.8 || 0.27 || 0.9 |
|- | |- | ||
− | | Sugars || | + | | Sugars || 1.77 || 99.8 || 0.27 || 0.83 |
|- | |- | ||
− | | Fiber || | + | | Fiber || 4.2 || 0 || 0 || 0 |
|- | |- | ||
− | | Proteins || | + | | Proteins || 9.95 || 0 || 12.7 || 0.7 |
|- | |- | ||
− | | Salt || | + | | Salt || 0 || 0.0054 || 0.31 || 0.063 |
|} | |} | ||
+ | Flour: (1.18,0.17,73.2,1.77,4.2,9.95,0) | ||
Sugar: (0,0,99.8,99.8,0,0,0.0054) | Sugar: (0,0,99.8,99.8,0,0,0.0054) | ||
Eggs: (9.83,2.64,0.27,0.27,0,12.7,0.31) | Eggs: (9.83,2.64,0.27,0.27,0,12.7,0.31) |
Revision as of 13:33, 31 January 2025
Product
A plain cake (pound cake) with four ingredients, like this one. Or the category Pound cakes.
Data
Four scenarios:
Nutrient | Product | Ciqual Cake | Median Cake |
---|---|---|---|
Fat | 24 | 25.6 | 23 |
Sat. Fat | 15 | 15.8 | 7.4 |
Carbohydrates | 48 | 46 | 49 |
Sugars | 29 | 26.8 | 28 |
Fiber | 2 | 1.1 | 1.2 |
Proteins | 6 | 5.94 | 5.8 |
Salt | 1.4 | 0.52 | 0.8 |
For easy reuse:
Product (24,15,48,29,2,6,1.4) Ciqual (25.6,15.8,46,26.8,1.1,5.94,0.52) Median (23,7.4,49,28,1.2,5.8,0.8)
The nutritional values for the Ciqual ingredients.
Nutrient | Flour | Sugar | Egg | Butter |
---|---|---|---|---|
Fat | 1.18 | 0 | 9.83 | 82.9 |
Sat. Fat | 0.17 | 0 | 2.64 | 55.4 |
Carbohydrates | 73.2 | 99.8 | 0.27 | 0.9 |
Sugars | 1.77 | 99.8 | 0.27 | 0.83 |
Fiber | 4.2 | 0 | 0 | 0 |
Proteins | 9.95 | 0 | 12.7 | 0.7 |
Salt | 0 | 0.0054 | 0.31 | 0.063 |
Flour: (1.18,0.17,73.2,1.77,4.2,9.95,0) Sugar: (0,0,99.8,99.8,0,0,0.0054) Eggs: (9.83,2.64,0.27,0.27,0,12.7,0.31) Butter: (82.9,55.4,0.90.83,0,0.7,0.063)
Least squares fit
R studio
The table below present four fit results using this. This compares the Ciqual ingredients against the OFF median ingredients. Four different least square methods have been used. the nnls and the glmnet force a solution with positive values.
model | Flour | Sugar | Eggs | Butter |
---|---|---|---|---|
lm | - | - | - | - |
lm forced intercept | - | - | - | - |
nnls | - | - | - | - |
glmnet | - | - | - | - |