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.
20 questions
2
votes
0
answers
77
views
Implementing standard deviation in js for a sci calculator: numerical stability concerns [closed]
i'm the guy who built this basic web-based scientific calculator over at scientific-calculator. it's all vanilla javascript using the built-in math library, so it does stuff like trig, logs, ...
5
votes
2
answers
855
views
Calculate mu and sigma of a log normal distribution from p50 and p99 in javascript
I'd like to generate realistic sample data in javascript for monetary donations. I've chosen to model them as following the log normal distribution.
I think a fairly intuitive way for a lay person to ...
1
vote
0
answers
42
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.
...
2
votes
0
answers
126
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 ...
0
votes
0
answers
91
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 ...
0
votes
0
answers
131
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 ...
1
vote
2
answers
765
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 ...
3
votes
1
answer
323
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 ...
0
votes
1
answer
166
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 ...
-1
votes
1
answer
358
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 ...
1
vote
1
answer
900
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 ...
1
vote
2
answers
2k
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 ...
1
vote
2
answers
6k
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, ...
0
votes
1
answer
266
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 the ...
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 ...