# Statistics functions in the CL

**URL:** <https://cl.desmos.com/t/statistics-functions-in-the-cl/702>\
**Category:** Questions\
**Tags:** aggregate\
**Created:** [February 10, 2020, 8:48am UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702 "2020-02-10T08:48:28Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Halliday](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_halliday/32/242_2.png) [@Simon\_Halliday](https://cl.desmos.com/u/Simon_Halliday)\
**Post date:** [February 10, 2020, 8:48am UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/1 "2020-02-10T08:48:28Z")

</div>

How can I calculate the mean in the computation layer of a set of values aggregated from a tables containing student inouts?

I tried using the funcntion ‘mean’ but it is not recognised in the CL.

Thanks

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [February 10, 2020, 4:30pm UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/2 "2020-02-10T16:30:23Z")

</div>

Did you use a double backslash before “mean”?

//mean

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [February 10, 2020, 5:58pm UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/3 "2020-02-10T17:58:46Z")

</div>

CL won’t do any computing on lists. If it’s coming in from an aggregated list, best move is to do it in a graph somewhere.

---

<div class="post-metadata">

**Author:** ![Simon\_Halliday](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_halliday/32/242_2.png) [@Simon\_Halliday](https://cl.desmos.com/u/Simon_Halliday)\
**Post date:** [February 10, 2020, 11:23pm UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/4 "2020-02-10T23:23:15Z")

</div>

Ok great. I want to take the average from student inputs then display in a cell in a table. How can I do this ?

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [February 11, 2020, 4:31pm UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/5 "2020-02-11T16:31:35Z")

</div>

As Jay said, move your student inputs to a graph somewhere, perform the average calculation there. Then, reference that into the table.

You need to name your graph, Graph1 for example, with a variable, say “a”, as your average.  
Then, in whatever table you want, something like

cellContent(1,1): “${Graph1.number(“a”)}”

---

<div class="post-metadata">

**Author:** ![Simon\_Halliday](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_halliday/32/242_2.png) [@Simon\_Halliday](https://cl.desmos.com/u/Simon_Halliday)\
**Post date:** [February 12, 2020, 2:14am UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/6 "2020-02-12T02:14:01Z")

</div>

Ok that’s great. How do I hide the graph in my DESMOS activity as I don’t want students to see it as they work through the activity?

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [February 12, 2020, 7:41am UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/7 "2020-02-12T07:41:02Z")

</div>

Use an introductory slide. Adding a note will remove visibility of any calculations. Insert an image into the graph to represent your lesson, and remove any graph lines, labels, etc. in the graph settings. There will be nothing visible or adjustable for the student, and you won’t have to worry about remembering to lock out slides by using Pacing.

---

<div class="post-metadata">

**Author:** ![Simon\_Halliday](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/simon_halliday/32/242_2.png) [@Simon\_Halliday](https://cl.desmos.com/u/Simon_Halliday)\
**Post date:** [February 12, 2020, 1:58pm UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/8 "2020-02-12T13:58:17Z")

</div>

That’s great. Thanks

---

<div class="post-metadata">

**Author:** ![tmonroe](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/tmonroe/32/1688_2.png) [@tmonroe](https://cl.desmos.com/u/tmonroe)\
**Post date:** [May 5, 2021, 9:11pm UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/9 "2021-05-05T21:11:11Z")

</div>

How do you move the inputs to the graph?

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [May 6, 2021, 12:35am UTC](https://cl.desmos.com/t/statistics-functions-in-the-cl/702/10 "2021-05-06T00:35:55Z")

</div>

Depends on the input, but here are a few examples:

```auto
number(`n`): input1.numericValue
function(`g`): simpleFunction(input2.latex)

```
