# DESMOOTHRETURNS

## Description

For certain time series, analysts may need to employ an autoregressive model to adjust or desmooth its returns. The first-order autoregressive model assumes that the return in a given period is a linear function of the return in the previous period plus an intercept and an error term.

## Syntax

The following describes the function signature for use in Microsoft Excel's formula bar.

```excel-formula
=DESMOOTHRETURNS(assetReturns, solveEndValueOnly)
```

### Input(s)

| Argument              |                                                                                                                                                                                        |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **assetReturns**      | Required. Time series or matrix of asset returns.                                                                                                                                      |
| **solveEndValueOnly** | Optional. Logical to indicate whether to only solve for an end of time series value, or to adjust and return all observations. If you do not enter the argument, it defaults to FALSE. |

### Output(s)

Time series or matrix of adjusted (desmoothed) returns.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://excelhelp.windhamlabs.com/functions/return-models/desmoothreturns.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
