# Get the r^2 value for an exponential regression in a note

**URL:** <https://cl.desmos.com/t/get-the-r-2-value-for-an-exponential-regression-in-a-note/4098>\
**Category:** Questions\
**Created:** [February 25, 2022, 9:21pm UTC](https://cl.desmos.com/t/get-the-r-2-value-for-an-exponential-regression-in-a-note/4098 "2022-02-25T21:21:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kathryn\_D](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@Kathryn\_D](https://cl.desmos.com/u/Kathryn_D)\
**Post date:** [February 25, 2022, 9:21pm UTC](https://cl.desmos.com/t/get-the-r-2-value-for-an-exponential-regression-in-a-note/4098/1 "2022-02-25T21:21:02Z")

</div>

Hi all! I’m trying to find a way to pull out the r^2 value from an exponential regression in a graphing component.

After students write an exponential equation (in the full-screen graph or in a math input), I want to be able to create a variable for their equation’s r^2 value. Then, I’d use that to 1) show them the r^2 value in a note and 2) aggregate the r^2 values so I could compare different students’ models (and ID the model with the highest r^2)

I don’t believe the workaround for linear regressions works here. ie. Using A= (corr(x1,y1))^2

Here are the relevant slides: [Exponential Regression Test • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/6219480ddbc4496aadc1720b)

---

<div class="post-metadata">

**Author:** ![Kathryn\_D](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@Kathryn\_D](https://cl.desmos.com/u/Kathryn_D)\
**Post date:** [March 1, 2022, 9:50pm UTC](https://cl.desmos.com/t/get-the-r-2-value-for-an-exponential-regression-in-a-note/4098/2 "2022-03-01T21:50:50Z")

</div>

In case someone encounters the same issue: I found a workaround. It’s not the most elegant, but I believe it works.

I defined a new variable in the graphing calculator using the r^2 formula.  
 ![Screen Shot 2022-03-01 at 1.49.45 PM](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/e/ec76535f50e5a301724b022d2badb7ce5fd08fd7.png)
