Java Program for Standard Normal Distribution (SND)


Following is the Java program for Standard Normal Distribution −

Example

 Live Demo

import java.io.*;
import java.util.*;
public class Demo{
   public static void main(String[] args){
      double std_dev, val_1, val_3, val_2;
      val_1 = 68;
      val_2 = 102;
      val_3 = 26;
      std_dev = (val_1 - val_2) / val_3;
      System.out.println("The standard normal deviation is: " + std_dev);
   }
}

Output

The standard normal deviation is: -1.3076923076923077

A class named Demo contains the main function, where certain double values are defined, and the formula for standard deviation is applied ((val_1 - val_2) / val_3) on these values and the resultant output is displayed on the console.

Updated on: 13-Jul-2020

255 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements