Madhav commited on
Commit
e94bac5
·
1 Parent(s): e1bf033

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -49,7 +49,10 @@ def run_linear_regression(X, y, alpha_prior, beta_prior, sigma_prior):
49
  # User Input
50
  st.write("# Bayesian Linear Regression")
51
 
52
- st.write(f"### Y = \u03B1 + \u03B2X + \u03C3")
 
 
 
53
  alpha_prior_option = st.selectbox("Choose an option for alpha prior:", ["Normal", "Laplace", "Cauchy"])
54
  if alpha_prior_option == "Normal":
55
  alpha_loc = st.slider("Select a mean value for alpha", -10.0, 10.0, 0.0, 0.1)
 
49
  # User Input
50
  st.write("# Bayesian Linear Regression")
51
 
52
+ st.latex(r'''p(\beta) = N(\mu_0, \Sigma_0)''')
53
+ st.latex(r'''p(y | X, \beta, \tau) = N(X\beta, \tau^{-1}I)''')
54
+ st.latex(r'''p(\beta | X, y, \tau) \propto p(y | X, \beta, \tau) p(\beta)''')
55
+ st.latex(r'''p(\tau | X, y, \beta) \propto p(y | X, \beta, \tau) p(\tau)$''')
56
  alpha_prior_option = st.selectbox("Choose an option for alpha prior:", ["Normal", "Laplace", "Cauchy"])
57
  if alpha_prior_option == "Normal":
58
  alpha_loc = st.slider("Select a mean value for alpha", -10.0, 10.0, 0.0, 0.1)