# New to Gaussian Processes question on single output and multiple inputs

**URL:** <https://discourse.pymc.io/t/new-to-gaussian-processes-question-on-single-output-and-multiple-inputs/12329>\
**Category:** General\
**Tags:** gaussian\_process, modeling\
**Created:** [June 16, 2023, 3:32pm UTC](https://discourse.pymc.io/t/new-to-gaussian-processes-question-on-single-output-and-multiple-inputs/12329 "2023-06-16T15:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wesley\_Young](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/wesley_young/32/6048_2.png) [@Wesley\_Young](https://discourse.pymc.io/u/Wesley_Young)\
**Post date:** [June 16, 2023, 3:32pm UTC](https://discourse.pymc.io/t/new-to-gaussian-processes-question-on-single-output-and-multiple-inputs/12329/1 "2023-06-16T15:32:35Z")

</div>

So please forgive my ignorance for this question but can a GP with a single output variable I want to predict take multiple input variables?

If so, does anyone have an example of this being implemented?

Also, if the inputs might interact with each other in some way, are there any special things I need to worry about beyond the normal things one idea with an OLS for example?

---

<div class="post-metadata">

**Author:** ![fonnesbeck](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/fonnesbeck/32/13_2.png) [@fonnesbeck](https://discourse.pymc.io/u/fonnesbeck)\
**Post date:** [June 17, 2023, 1:02am UTC](https://discourse.pymc.io/t/new-to-gaussian-processes-question-on-single-output-and-multiple-inputs/12329/2 "2023-06-17T01:02:58Z")

</div>

Absolutely. You can specify the `input_dim` for the covariance function to be 2 and it will expect two columns of input. [Here’s an example notebook.](https://www.pymc.io/projects/examples/en/latest/gaussian_processes/GP-Kron.html)

---

<div class="post-metadata">

**Author:** ![Wesley\_Young](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/wesley_young/32/6048_2.png) [@Wesley\_Young](https://discourse.pymc.io/u/Wesley_Young)\
**Post date:** [June 17, 2023, 1:47am UTC](https://discourse.pymc.io/t/new-to-gaussian-processes-question-on-single-output-and-multiple-inputs/12329/3 "2023-06-17T01:47:26Z")

</div>

Thank you and you are my favorite presenter on PYMC. 🙂

---

<div class="post-metadata">

**Author:** ![fonnesbeck](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/fonnesbeck/32/13_2.png) [@fonnesbeck](https://discourse.pymc.io/u/fonnesbeck)\
**Post date:** [June 17, 2023, 3:59pm UTC](https://discourse.pymc.io/t/new-to-gaussian-processes-question-on-single-output-and-multiple-inputs/12329/4 "2023-06-17T15:59:44Z")

</div>

Hey Thanks! @bwengals gave a [really nice talk on GPs in PyMC](https://www.youtube.com/watch?v=ri5sJAdcYHk) recently too/
