# Quantitative Finance in Julia

**URL:** https://discourse.julialang.org/t/quantitative-finance-in-julia/119734
**Category:** Finance and Economics
**Tags:** question
**Created:** [September 23, 2024, 8:51am UTC](https://discourse.julialang.org/t/quantitative-finance-in-julia/119734 "2024-09-23T08:51:29Z")
**Posts on this page:** 1
**Page:** 2

<div class="post-metadata">

### Author: ![Pascal\_Buhler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pascal_buhler/32/45582_2.png) [@Pascal\_Buhler](https://discourse.julialang.org/u/Pascal_Buhler)
#### Post date: [October 28, 2024, 7:20am UTC](https://discourse.julialang.org/t/quantitative-finance-in-julia/119734/21 "2024-10-28T07:20:18Z")

</div>

How do i make a matrix with different lenghts for correlation

DimensionMismatch: inconsistent lengths

1. **corm** (::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false}, ::Float64, ::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false}, ::Float64)@_Statistics.jl:703_
2. **cor** (::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false}, ::SubArray{Float64, 1, Vector{Float64}, Tuple{Vector{Int64}}, false})@_Statistics.jl:747_
3. **top-level scope** @_[Local: 1](http://localhost:1234/edit?id=0d7f9830-94fc-11ef-2364-a960f8f21cdb#)_ [inlined]

1

cor([CHFadj](http://localhost:1234/edit?id=0d7f9830-94fc-11ef-2364-a960f8f21cdb#CHFadj)[(“CHFAUD”,)].adjclose,[CHFadj](http://localhost:1234/edit?id=0d7f9830-94fc-11ef-2364-a960f8f21cdb#CHFadj)[(“CHFBRL”,)].adjclose)

* * *

type Array has no field adjclose

1. **getproperty** @_Base.jl:37_ [inlined]
2. **top-level scope** @_[Local: 1](http://localhost:1234/edit?id=0d7f9830-94fc-11ef-2364-a960f8f21cdb#)_ [inlined]

1

[Previous page](https://discourse.julialang.org/t/quantitative-finance-in-julia/119734.md?page=1)
