Questions tagged [javascript]

JavaScript is an interpreted computer programming language. Use this tag for any *on-topic* question that (a) involves JavaScript either as a critical part of the question or expected answer, & (b) is not *just* about how to use JavaScript.

Filter by
Sorted by
Tagged with
0 votes
0 answers
58 views

ADF (augmented Dickey-Fuller) in JavaScript without a library

ADF (Augmented Dickey-Fuller) test to check if an asset price is stationary or non-stationary using pure JavaScript without any library.
Heri Kaniugu's user avatar
1 vote
0 answers
15 views

R-squared function returns negative value [closed]

The following JavaScript code is supposed to calculate R2 based on two numerical arrays of equal length- yPred and yTrue. It is based on the formula R2=1-RSS/TSS. ...
Value_Investor's user avatar
2 votes
0 answers
61 views

A network has many conflicting edges. How to create a good visualization for it?

I'm having a network of belief system. It has ~100 nodes, 316 regular edges and 78 conflicting edges. (If belief B conflicts with belief A, then node B and node A share a conflicting edge. If belief B ...
Ooker's user avatar
  • 329
0 votes
0 answers
58 views

js-regression: intercept and betha coefficient

I am trying to run a simple logistic regression (response ~ stimulus, where responses are "f" or "s" and stimulus goes from 1 to 11). My main objective is to calculate the turning ...
marceletras's user avatar
0 votes
0 answers
83 views

Estimate contingency table entries from given marginal sums

I have got a table with known marginal sums: | | | | 7| | | | | 7| | | | | 6| | | | | 6| | | | | 5| | | | | 4| | | | | 3| +--+-+-+--+ |26|6|6|38| I want ...
ajo's user avatar
  • 101
1 vote
2 answers
641 views

how to generate random data based on simple statistical meassures

0 I currently have a test data set that has 500k data points. I have an algorithm that process that data and returns some information. In order to establish the statistical significance of the ...
lucas rodriguez's user avatar
3 votes
1 answer
263 views

Relating Chi Squared and Gamma Distributions using code?

How do we relate the chi squared and gamma distributions with code? For example if we have a chi squared distribution with cdf(x, k) and we calculate ...
Ole's user avatar
  • 177
0 votes
1 answer
107 views

prerequisites to algorithms and then to python and Machine Learning

I spent the last 5 months studying full-stack web development using the MERN stack, that is (MongoDB, Express, React and NodeJs). Now that I have seen the full picture of what I would be doing ...
MoSwilam's user avatar
  • 101
-1 votes
1 answer
300 views

Personal Names matching in JavaScript [closed]

According to this paper: A Comparison of Personal Name Matching: Techniques and Practical Issues several techniques are possibile in personal names matching, that ...
loretoparisi's user avatar
1 vote
1 answer
742 views

Time period diagram (bar chart) - what is its more precise/widely used name?

I want to make a diagram like this to display the career spans of several soccer players one below the next: I know it's basically a bar chart, but I was hoping this has a more specific name, because ...
Sridhar Sarnobat's user avatar
1 vote
2 answers
1k views

Eloquent Javascript - correlation and coefficient

Currently I'm reading Eloquent Javascript book and at chapter 4. This topic entitled 'The lycanthrope’s log ' is very confusing to me. How important is correlation and coefficient in real world ...
112233's user avatar
  • 113
1 vote
2 answers
5k views

Determine breakpoints in time series data where values change significantly

Given the following chart of data: which represents duration metrics gathered at absolute times, I am trying to determine when/if any of the values exhibit a jump in durations. In the example chart, ...
Eli's user avatar
  • 111
0 votes
1 answer
214 views

How can I get output data of a trained neural network?

My neural network, which uses the back-propagation technique and the sigmoid activation function, should 'learn' the sine function. This is the networks structure: The following code should train ...
Christoph Bühler's user avatar
1 vote
1 answer
2k views

How to verify implementation of SVD in Javascript

I have implemented the SVD algortihm for my Node.js project for collaborative filtering of a sparse dataset based on this paper by GroupLens. For calculating the SVD, I am using the package node-svd ...
akashg's user avatar
  • 111
0 votes
1 answer
132 views

Turning categorized output into continuous

I'm using a NaiveBayes algorithm that generates categorized probabilities as output instead of continuous values, which is what I need for this webapp I'm working on. Unfortunately I can't switch ...
ojosilva's user avatar
  • 101
0 votes
1 answer
199 views

JavaScript/PHP libraries for calculating common

I am looking for a JavaScript or a PHP library to calculate common business/statistical metrics (e.g. ...
1 vote
1 answer
10k views

How do you calculate the Ordinary Least Squares estimated coefficients in a Multiple Regression Model? [duplicate]

I recently began learning about OLS estimation of multiple regression models and came across the following formulas explaining the calculations: What would the formulas be for an OLS regression model ...
Jackmc1047's user avatar
7 votes
4 answers
3k views

Interpreting two-sided, two-sample, Welch T-Test

I’m writing some code (JavaScript) to compare benchmark results. I’m using the Welch T-test because the variance and/or sample size between benchmarks is most likely different. The critical value is ...
Mathias Bynens's user avatar
1 vote
0 answers
682 views

Adding Zoom & Pan for Protovis Dot Chart with GeoScale [closed]

...
Saneef's user avatar
  • 147