File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,14 @@ This example demonstrates how to perform Bayesian inference for a linear regress
2525
2626Plant growth can be influenced by multiple factors, and understanding these relationships is crucial for optimizing agricultural practices.
2727
28+ Independent Variables:
29+ - Sunlight Hours: Number of hours the plant is exposed to sunlight daily.
30+ - Water Amount: Daily water amount given to the plant (in milliliters).
31+ - Soil Nitrogen Content: Percentage of nitrogen content in the soil.
32+
33+ Dependent Variable:
34+ - Plant Growth (y): Measured as the increase in plant height (in centimeters) over a certain period.
35+
2836``` python
2937import pymc as pm
3038
@@ -33,16 +41,6 @@ seed = 42
3341x_dist = pm.Normal.dist(shape = (100 , 3 ))
3442x_data = pm.draw(x_dist, random_seed = seed)
3543
36- # Independent Variables:
37- # Sunlight Hours: Number of hours the plant is exposed to sunlight daily.
38- # Water Amount: Daily water amount given to the plant (in milliliters).
39- # Soil Nitrogen Content: Percentage of nitrogen content in the soil.
40-
41-
42- # Dependent Variable:
43- # Plant Growth (y): Measured as the increase in plant height (in centimeters) over a certain period.
44-
45-
4644# Define coordinate values for all dimensions of the data
4745coords= {
4846 " trial" : range (100 ),
You can’t perform that action at this time.
0 commit comments