which is x and which is y?

Open
#111 0 comments 0 reactions 0 assignees View on GitHub

@Sinkleberg is already working on this.

Since Nov 6, 2026.

  • #153 by @Sinkleberg — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
20/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia
Domain
data

Research direction

The issue mentions the Julia kde entry point and the B1.x and B1.density fields, but names no source file or test. Start by locating the package documentation or implementation describing bivariate KDE axes and marginal integration; done would be a clear explanation or documentation clarification.

Written by the indexing model from the issue text.

Description

Hey, love this package, and want to make sure I'm understanding how it works.

For a bivariate kernel density, if you sum down a column, then multiply by the x step distance, does that equal the marginal probability of the x variable taking that sliver of range? For example:

$chf,eur \in R^n$

B1 = kde((chf,eur))

x_step = B1.x[2]-B1.x[2]

marginal_probability_1 = sum(B1.density[:,1] .* x_step)

Is the following statement true?

$$ \text{marginal probability 1}= P(X[1] \leq X \leq X[2]) $$

Or should I be using y_step to calculate marginal probability 1?

Sorry for the (maybe too simplistic) question. I appreciate any help you're willing to provide.

Dominant language
Julia
Stars
213
Forks
45
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaStats/KernelDensity.jl

All issues in JuliaStats/KernelDensity.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.